Random Variables Intro
- 21Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is a random variable in probability and statistics?
A variable that can take on a given set of values, where a probability can be assigned to each possible value of X.
Or swipe the card
21 cards
What is a random variable in probability and statistics?
A variable that can take on a given set of values, where a probability can be assigned to each possible value of X.
In the example of flipping a fair coin four times, define the random variable X. What values can it take?
X is the number of heads in four flips, taking integer values 0, 1, 2, 3, or 4.
What is the sample space for flipping a coin four times? How many outcomes are there?
All sequences of H and T of length 4; 24=16 outcomes.
What is the probability that X = 0 (no heads) in four fair coin flips?
161
What is the probability distribution of X (number of heads) in four fair coin flips? Give all probabilities.
P(X=0)=1/16, P(X=1)=4/16, P(X=2)=6/16, P(X=3)=4/16, P(X=4)=1/16.
What is a discrete random variable? Give an example.
A random variable that can only take a discrete (countable) set of values, e.g., number of heads in N coin flips.
What is a continuous random variable? Give an example.
A random variable that can take any value in a continuous range, e.g., height of Americans.
What is a probability distribution of a random variable?
A function that assigns a probability to each possible value (or range of values) of X.
How can you visualize the probability distribution of a discrete random variable?
With a histogram (bar chart) where the x-axis shows values of X and the y-axis shows probabilities.
In the coin flip example, what is the shape of the probability histogram for X?
Symmetric around 2, with highest bar at X=2 (probability 6/16).
What is a probability density function (PDF)?
A function that describes the probability distribution for a continuous random variable; the area under the curve gives probabilities.
What distribution does the number of heads in N coin flips follow?
The binomial distribution.
What distribution does the height of Americans approximately follow?
A normal (Gaussian) distribution.
As the number of coin flips N becomes large, what does the binomial distribution approximate?
The normal (Gaussian) distribution.
Why are random variables useful? (Give three reasons from the lecture)
- Concise summary of all probabilities. 2. No need to count all outcomes when a function exists. 3. Allows hypothesis testing, parameter estimation, visualization, and calculus.
What is a probability density function (PDF) considered in modeling?
A model of a random process—a mathematical approximation, not perfect reality.
How can a PDF be used for hypothesis testing?
By comparing observed data to the assumed distribution; e.g., if you flip 10 heads in a row, you can test if the coin is fair.
How can a PDF be used for parameter estimation?
From a sample, you can estimate the parameters of the distribution (e.g., mean and standard deviation of height) to describe the larger population.
How do you compute the probability that a continuous random variable X lies between a and b?
Integrate the PDF from a to b: P(a<X<b)=∫abp(x)dx.
What is the cumulative distribution function (CDF)?
The function F(x)=P(X≤x), giving the probability that X is less than or equal to a value.
What are some functions that can be built on a random variable X?
Expected value E[X], variance Var(X), standard deviation, distribution of X2, etc.

Ask anything
We've read this whole study set, so questions about it get the best answers.