Random Variables Practice Problems
Last Updated :
14 Aug, 2024
Random variables are fundamental concepts in probability and statistics, playing a crucial role in data analysis and decision-making processes. Understanding random variables is essential for students as it lays the groundwork for advanced topics such as statistical inference, regression analysis and machine learning.
There are two main types of random variables: discrete and continuous. Discrete random variables take on a countable number of distinct values, while continuous random variables take on an infinite number of possible values within a given range.
This article aims to provide practice problems on random variables, enhancing students' comprehension and application skills.
What are Random Variables?
A random variable is a numerical outcome of a random phenomenon. It is a function that assigns a real number to each possible outcome in a sample space. Random variables can be classified into two main types:
- Discrete Random Variables: These take on a countable number of distinct values. Examples include the number of heads in a series of coin tosses or the number of students in a class.
- Continuous Random Variables: These can take on any value within a given range or interval. Examples include the height of students in a class or the time it takes to run a marathon.
Random variables are fundamental in probability and statistics as they allow us to quantify and analyze the outcomes of random events. They form the basis for statistical inference, modelling real-world phenomena, and making predictions based on data.
Sample Space (S): All possible outcomes of the experiment.
Probability Distribution: Describes the probability of each value the random variable can take.
- Discrete Case: Often expressed as a probability mass function (PMF) which assigns a probability to each specific value.
- Continuous Case: Often expressed as a probability density function (PDF) which describes the probability over a range of values.
Expected Value (Mean): The average value you expect to get if you were to repeat the experiment many times.
- Discrete Case: E(X) = Σ(x × P(X = x)) for all possible values x.
- Continuous Case: E(X) = ∫ x × f(x) dx (integral over the range of X).
Variance: Measures how spread out the values of the random variable are from the expected value.
Expected Value (Mean) E(X)
- Discrete: E(X) = ∑[x⋅P(x)]
- Continuous: E(X) = ∫-∞∞x⋅f(x) dx
Variance Var(X)
- Discrete: Var(X) = ∑[(x-μ)2 × P(x)] or Var(X) = E(X2)-(E(X))2
- Continuous: Var(X) = ∫-∞∞ (x-μ)2 × f(x)dx or Var(X) = E(X2)-(E(X))2
Probability Density Function (pdf) and Cumulative Distribution Function (CDFa random variable):
- FX(x) = P(X≤x)
- fX(x) = d/dx FX(x) (for continuous random variables)
Standard Deviation σ
Random Variables Practice Problems with solution
Problem 1: Let X be a random variable with the following probability mass function (pmf): P(X = 1) = 0.2, P(X = 2) = 0.5, and P(X = 3) = 0.3. Find the expected value E(X).
Solution:
E(X) = 1×0.2 + 2×0.5 + 3×0.3
= 0.2 + 1 + 0.9 = 2.1
Problem 2: A fair six-sided die is rolled. Let X be the outcome of the roll. Find the variance Var(X).
Solution:
E(X) = 1 + 2 + 3 + 4 + 5 + 6/6
= 3.5
E(X2) = 12 + 22 + 32 + 42 + 52 + 62
= 15.667
Var(X) = E(X2) - (E(X))2
= 15.667 -3.52
= 2.9167
Problem 3: Let Z be a random variable with the following probability mass function (pmf): P(Z = -1) = 0.3, P(Z = 0) = 0.4, and P(Z = 1) = 0.3. Find the expected value E(Z)and the variance Var(Z).
Solution:
E(Z) = (-1)×0.3 + 0×0.4 + 1×0.3
= 0
E(Z2) = (-1)2×0.3 + 02×0.4 + 12×0.3
= 0.6
Var(Z) = E(Z2)-(E(Z))2 = 0.6-0
= 0.6
Problem 4: A random variable W follows a uniform distribution on the interval [2, 4]. Find the expected value E(W) and the variance Var(W).
Solution:
E(W) = 2 + 4/2
= 3
Var(W) = (4-2)2 /12 = 4/12
= 1/3
Problem 5: Let X be a Bernoulli random variable with parameter p = 0.4. Find the expected value E(X) and the variance Var(X).
Solution:
E(X) = p = 0.4
Var(X) = p(1-p) = 0.4⋅(0.6)
= 0.24
Problem 6: Suppose X and Y are independent random variables with X following a normal distribution with mean 2 and variance 1, and Y following a normal distribution with mean 3 and variance 4. Find the distribution of Z = X + Y.
Solution:
Z∼N(μX + μY,σX2 + σY2)
= N(2 + 3,1 + 4)
= N(5,5)
Problem 7: A random variable X follows a geometric distribution with parameter p = 0.3. Find the expected value E(X).
Solution:
E(X) = 1/p
= 1/0.3
= 10/3≈3.33
Problem 8: If Z is a standard normal random variable, find P(Z > 1.96).
Solution:
Using standard normal distribution table:
P(Z > 1.96)
= 1 - P(Z ≤ 1.96)
= 1-0.975 = 0.025
Problem 9: Let X be a random variable with the following probability mass function (pmf): P(X = 0) = 0.4, P(X = 1) = 0.3, and P(X = 2) = 0.3. Find the expected value E(X) and the variance Var(X).
Solution:
E(X) = 0⋅0.4 + 1⋅0.3 + 2⋅0.3
= 0.9
E(X2) = 02×0.4 + 12×0.3 + 22×0.3 = 0 + 0.3 + 1.2
= 1.5
Var(X) = E(X2)-(E(X))2 = 1.5-0.92 = 1.5-0.81
= 0.69
Problem 10: If Z is a standard normal random variable, find P(-2 ≤ Z ≤ 2).
Solution:
Using standard normal distribution table
P(-2 ≤ Z ≤ 2 )
= P(Z ≤ 2) - P(Z ≤ -2)
= 0.9772 - 0.0228
= 0.9544
Random Variables Practice Problems
Q1. Let X be a discrete random variable with the following pmf: P(X = 1) = 0.1, P(X = 2) = 0.3, P(X = 3) = 0.4, and P(X = 4) = 0.2. Find the expected value E(X).
Q3. If Z is an exponential random variable with rate parameter λ = 2, find the probability that Z is less than 1.
Q4. Let X be a normal random variable with mean μ = 4 and variance σ2 = 9. Find P(1 ≤ X ≤ 7).
Q5. A fair coin is flipped 10 times. Let X be the number of heads obtained. Find the probability that X equals 5.
Q6. Let Y be a continuous random variable with the pdf fY(y) = 1/2sin(y) for 0 ≤ y ≤ π. Find the expected value E(Y).
Q7. A random variable Z follows a Poisson distribution with parameter λ = 6. Find the probability that Z equals 4.
Q8. Let X be a Bernoulli random variable with parameter p = 0.7. Find the expected value E(X) and the variance Var(X).
Q9. A random variable X follows a binomial distribution with parameters n = 8 and p = 0.4. Find the probability that X is at least 6.
Q10. If Z is a standard normal random variable, find P(Z ≤ -1.28).
Also Check:
Similar Reads
Practice Problems on Probability (Hard)
Probability is an important chapter for the students of Class 9, 10, 11, and 12. The Probability Questions, with their answers included in this article, will help you understand the basic concepts and formulas through a number of solved and unsolved questions. These questions cover concepts like Sam
9 min read
Practice Problems on Probability (Medium)
Probability is an important chapter for the students of Class 9, 10, 11, and 12. The Probability Questions, with their answers included in this article, will help you understand the basic concepts and formulas through the number of solved and unsolved questions. These questions cover concepts like S
8 min read
Practice Problems on Probability | Class 9 Maths
Probability, in simple words, is the prediction of the happening of an event before it has already happened. We predict many things in our day-to-day lives, like: Predict the weather before going for a picnic.Predict who is going to win the election.Predict the outcome of the toss.In all these situa
11 min read
Statistics Practice Questions
Statistics Questions are provided to give you a basic idea of the concepts. It is important to learn Statistics as it helps you to draw conclusions and make sense of the raw data. The questions listed here cover a range of topics from mean, median, and mode to other complex formulas in probability.
10 min read
Top Probabilty Interview Questions [ Updated 2025 ]
This article presents 15 practical and thoughtfully designed case studies that simulate scenarios typically encountered in interviews. Each case is based on real-world challenges across logistics, e-commerce, and digital payment systems. These problems are structured to test your problem-solving ski
15+ min read
Class 11 RD Sharma Solutions - Chapter 33 Probability - Exercise 33.3 | Set 1
Chapter 33 of RD Sharma's Class 11 Mathematics textbook focuses on the concept of probability a fundamental area in both mathematics and statistics. In Exercise 33.3, Set 1, students will explore various problems that help them understand and apply the principles of probability laying a strong found
15+ min read
Class 12 RD Sharma Solutions - Chapter 31 Probability - Exercise 31.5 | Set 3
Question 24. X is taking up subjects - Mathematics, Physics, and Chemistry in the examination. His probabilities of getting a grade A in these subjects are 0.2, 0.3, and 0.5 respectively. Find the probability that he gets.(i) Grade A in all subjects (ii) Grade A in no subject (iii) Grade A in two su
14 min read
Class 11 RD Sharma Solutions- Chapter 33 Probability - Exercise 33.4 | Set 2
Question 15. From a pack of 52 cards, 4 cards are drawn at random. Find the probability that cards drawn are of the same color? Solution: From a pack of 52 cards, 4 cards are drawn Hence, Sample space, n(S) = 52C4 -(1) Let A be the event of getting cards of same color, Since there are two sets of sa
9 min read
Probability Class 10 Important Questions
Probability is a fundamental concept in mathematics for measuring of chances of an event happening By assigning numerical values to the chances of different outcomes, probability allows us to model, analyze, and predict complex systems and processes. Probability Formulas for Class 10 It says the pos
4 min read
Probability in Maths
Probability deals with events and quantifies the likelihood of occurring an event. Its value ranges from 0 to 1. Higher probabilities indicate a greater chance of the event happening. It is mainly a ratio of favorable outcomes to total outcomes. What are the chances of the following events when we p
3 min read