Spaces:
Sleeping
Sleeping
Download pages/Random Variable.py from abhijeetarjun1996/Probability: direct link, hf CLI and curl.
- Browser
- Download file 889 Bytes
-
https://huggingface.co/spaces/abhijeetarjun1996/Probability/resolve/main/pages/Random%20Variable.py
- Command line
-
hf download 'hf://spaces/abhijeetarjun1996/Probability/pages/Random Variable.py'
-
curl -L -o 'Random Variable.py' https://huggingface.co/spaces/abhijeetarjun1996/Probability/resolve/main/pages/Random%20Variable.py
889 Bytes
| import streamlit as st | |
| st.title(":rainbow[Random Variable]") | |
| st.write("A random variable is a numerical outcome of a random process or experiment. It's a way to quantify the possible results of that process in a mathematical form. ") | |
| st.header(":blue[Discrete Random Variable]") | |
| st.write("A random variable that can take on a countable number of distinct values. These values are typically integers.") | |
| st.write("Ex: The number of heads obtained when flipping a coin three times (possible values: 0, 1, 2, 3). Another example could be the number of students in a class.") | |
| st.header(":blue[Continuous Random Variable]") | |
| st.write("A random variable that can take on an infinite number of values within a given range. These values are typically real numbers.") | |
| st.write("Ex: The height of individuals in a population.") | |
| st.write("Ex: The time taken for a car to travel a certain distance") | |