Chapter-6-Random Variables & Probability Distributions
Chapter-6-Random Variables & Probability Distributions
distributions
CHAPTER 6
6. RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS
Definition: A random variable is a numerical description of the outcomes of the
experiment or a numerical valued function defined on sample space, usually
denoted by capital letters.
Example: If X is a random variable, then it is a function from the elements of the
sample space to the set of real numbers. i.e.
X is a function X: S R
Example: Flip a coin three times, let X be the number of heads in three
tosses.
X = {0, 1, 2, 3, 4,
5}
Examples:
Page 1 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
2. Continuous random variable: are variables that can assume all values
between any two give values.
Examples:
Example: Consider the experiment of tossing a coin three times. Let X be the
number of heads. Construct the probability distribution of X.
Solution:
0 1 2 3
1.
Page 2 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
2.
Note:
Page 3 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
Introduction to expectation
Definition:
1. Let a discrete random variable X assume the values X1, X2, ….,Xn with
the probabilities P(X1), P(X2), ….,P(Xn) respectively. Then the expected
value of X ,denoted as E(X) is defined as:
Examples:
Solution:
0 1 2 3
Page 4 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
Solution:
Page 5 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
Where:
Examples:
Solutions:
2. Two dice are rolled. Let X be a random variable denoting the sum of the
numbers on the two dice.
i) Give the probability distribution of X
ii) Compute the expected value of X and its variance
Solution (exercise)
Page 6 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
RULE 1
RULE 2
RULE 3
RULE 4
RULE 5
Page 7 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
1. Binomial Distribution
When using the binomial formula to solve problems, we have to identify three
things:
The number of trials ( )
The probability of a success on any one trial ( ) and
The number of successes desired ( ).
Page 8 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
Examples:
1. What is the probability of getting three heads by tossing a fair con four
times?
Solution:
Let X be the number of heads in tossing a fair coin four times
Solution
Let X = the number of correct answers that the student gets.
Page 9 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
a)
Thus, we may conclude that if 30% of the exam questions are answered
by guessing, the probability is 0.071 (or 7.1%) that more than four of the
questions are answered correctly by the student.
b)
c)
d)
Exercises:
1. Suppose that 4% of all TVs made by A&B Company in 2000
are defective. If eight of these TVs are randomly selected
from across the country and tested, what is the probability
that exactly three of them are defective? Assume that each
TV is made independently of the others.
2. An allergist claims that 45% of the patients she tests are
allergic to some type of weed. What is the probability that
a) Exactly 3 of her next 4 patients are allergic to
weeds?
b) None of her next 4 patients are allergic to weeds?
3. Explain why the following experiments are not Binomial
Rolling a die until a 6 appears.
Asking 20 people how old they are.
Drawing 5 cards from a deck for a poker hand.
Page 10 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
2. Poisson Distribution
- A random variable X is said to have a Poisson distribution if its
probability distribution is given by:
Examples:
2. On the average, five smokers pass a certain street corners every ten
minutes, what is the probability that during a given 10minutes the
number of smokers passing will be
a. 6 or fewer
b. 7 or more
Page 11 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
Note:
Example:
Solution:
1. Normal Distribution
A random variable X is said to have a normal distribution if its probability
density function is given by
Page 12 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
Mean is zero
Variance is one
Standard Deviation is one
Page 13 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
- Areas under the standard normal distribution curve have been tabulated in
various ways. The most common ones are the areas between
Mean
Note:
Examples:
1. Find the area under the standard normal distribution which lies
a) Between
Solution:
b) Between
Solution:
Page 14 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
c) To the right of
Solution:
d) To the left of
Solution:
e) Between
Solution:
f) Between
Solution:
Page 15 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
Solution
Solution
Solution
Page 16 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
a)
b)
c)
Page 17 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
Solution
Solution
6. Of a large group of men, 5% are less than 60 inches in height and 40%
are between 60 & 65 inches. Assuming a normal distribution, find the
mean and standard deviation of heights.
Solution (Exercise)
Page 18 of 19
Lecture notes on Introduction to Statistics (Stat 201) Chapter 6: Random Variables & Prob.
distributions
Page 19 of 19