Probability / pages /Random Variable.py
abhijeetarjun1996's picture
Update pages/Random Variable.py
44b628c verified
Raw History Blame Contribute Delete
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")