Вы находитесь на странице: 1из 7

Mat 217 Brief Calculus

Dr. Firoz
Chapter 8 Random Variables and Statistics
Section 8.1 Random variables and distributions

In probability theory, a probability distribution is called discrete if it is characterized by a


probability mass function. Thus, the distribution of a random variable X is discrete, and X
is then called a discrete random variable, if p( X ) 1

A random variable X is a rule that assigns a number, or value, to each outcome in the
sample space of an experiment. As an example: roll a die twice, find the random variable
X that the sum is a prime number. In this case the random variable X has the following
values: 2, 3, 5, 7, 11 with probabilities 1/12, 1/6, 1/3, 1/2, and 1/6.

The probability distribution table for the random variable X is

X 2 3 5 7 11
P(X = x) 1/12 1/6 1/3 1/2 1/6

Types of random variables:

Mutual fund, X is the number of companies in the portfolio: discrete and infinite
Length, X is the measure of length in cm: continuous
Roll a die twice, X is the sum: discrete and finite
In the share market, X is the profit to the nearest dollar: discrete and finite
A bag contains four red and three green marbles. Select 4 marbles from the bag.
Write the random variable X, number of red marbles: X = 1, 2, 3, 4.

Section 8.2 Bernoulli trials and the Binomial random variables

A Bernoulli experiment is a random experiment, the outcome of which can be classified


in but one of two mutually exclusive and exhaustive ways, say, success or failure (life or
death, head or tail, 3 or not 3 etc. The pmf of a Bernoulli trail is
f ( x) p x (1 p)1 x , x 0,1 and we say that the random variable x has Bernoulli
distribution. The mean of Bernoulli trial is given as
1
E( X ) xp x (1 p)1 x
p , verify.
x 0
The variance of Bernoulli trial is
1
2
Var ( X ) (x p) 2 p x (1 p)1 x
p(1 p) pq, q 1 p
x 0

1
Example 1. In the instant lottery with 20% winning tickets, if X is equal to the number of
winning tickets among n = 8 that are purchased, the probability of purchasing two
8
winning tickets is f (2) P( X 2) (0.20) 2 (1 0.2)6 0.2936 29.36%
2
One may use calculator as follows (TI)
2nd DISTR 0 (binompdf) (8, 0.20, 2) will display 0.29360128

Example 2. In the instant lottery with 20% winning tickets, if X is equal to the number of
winning tickets among n = 8 that are purchased, the probability of purchasing at best 6
winning tickets is
8 8
P( X 6) 1 f (7) f (8) 1 (0.20)7 (1 0.2)1 (0.2)8 0.99991552
7 8
One may use calculator as follows (TI)
2nd DISTR A (binomcdf) (8, 0.20, 6) will display 0.99991552

Example 3. In the instant lottery with 20% winning tickets, if X is equal to the number of
winning tickets among n = 8 that are purchased. Find the probability of purchasing at
least 6 winning tickets.
Hint. Find P( X 6) P( X 6) P( X 7) P( X 8) or
P( X 6) 1 P( X 5) 1 binomcdf (8,.2,5)

Example 4. A quiz consists of 24 multiple choice questions. Each question has 5 possible
answers, only one of which is correct. If you answer the questions completely based on
guessing, what is the probability that

a) You will answer exactly 4 wrong?


b) You will answer exactly 4 correctly?
c) You will answer at least 20 correctly?
d) You will answer at most 3 wrong?
e) You will answer at most 3 correctly?

4
Solution: The probability that you will answer one question wrong is 0.8 .
5
a) The probability of answering exactly 4 wrong is a binomial probability of
24
B(24, 0.8, 4), which is P( X 4) B(24, 0.8, 4) (0.8) 4 (0.2) 20 4.56 10 11
,
4
which is almost zero.
If you use TI calculator use binompdf (24, 0.8, 4). Check your calculator using the
following code:

2nd DISTR 0 binompdf (24, .8, 4)

b) The probability that you will answer exactly 4 correct is B(24, 0.2, 4) = 0.196
c) At least 20 correct P( X 20)

2
= 20 correct + 21 correct + 22 correct + 23 correct + 24 correct = 4.79 10 11 .

It is easy to use calculator with binomcdf as follows:


P( X 20) 1 binomcdf (24, 0.2,19) 4.79 10 11

12
d) At most three wrong: P( X 3) binomcdf (24, 0.8,3) 2.25 10
e) At most three correct: P( X 3) binomcdf (24,0.2,3) 0.264

Example 5. A computer manufacturer tests a random sample of 28 computers. The


probability that a computer is non defective is 91.3%. What is the probability that:
a) Exactly 7 computers are defective? Answer: 0.006605
b) At least two computers are defective? Answer: 0.7131689
c) At most two computers are defective? Answer: 0.555224

Example 6. A quiz consists of 10 multiple choice questions, each with 4 possible


choices. For someone who makes random guesses for all of the questions, find the
probability of passing if the minimum passing grade is 90%.

5
Solution: P( X 9) 1 binomcdf (10, 0.25,8) 2.95639 10

Example 8. A student claims that he has extrasensory perception (ESP). A coin is flipped
25 times, and a student is asked to predict the outcome in advance. He gets 20 out of 25
correct. What was the probability that he would have done at least this well if he had no
EPS?

Solution: P( X 20) 1 binomcdf (25,0.5,19) 0.002038658

Exercise 1. Toss a fair coin 12 times. How many possible outcomes do you have? What
is the probability of getting a) exactly 7 heads, b) at least 7 heads, c) at most 7 heads?

Exercise 2. A student claims that he has extrasensory perception (ESP). A coin is flipped
30 times, and a student is asked to predict the outcome in advance. He gets 25 out of 30
correct. What was the probability that he would have done at least this well if he had no
EPS?
Exercise 3. A quiz consists of 20 multiple choice questions, each with 5 possible choices.
For someone who makes random guesses for all of the questions, find the probability of
passing if the minimum passing grade is 80%.
Example 4. A computer manufacturer tests a random sample of 30 computers. The
7
probability that a computer is defective is 7 %. What is the probability that:
8
a) Exactly 7 computers are defective?
b) At least two computers are defective?
c) At most two computers are defective?

3
Exercise 5. In the instant lottery with 10% winning tickets, if X is equal to the number of
winning tickets among 20 tickets that are purchased, find the probability of purchasing
a) at best 7 winning tickets,
b) at least 7 winning tickets,
c) no more than 6 winning tickets,
d) no less than 6 winning tickets
Exercise 6. The rates of on-time flights for commercial jets are continuously tracked by
the U.S Department of transportation. Recently, Southwest Air had the best rate with
80% of its flights arriving on time. A test is conducted by randomly selected 16
Southwest flights and observing whether they arrive on time. Find
a) the probability that exactly 4 flights arrive on time
b) The probability that at least 4 flights arrive on time
c) At best 4 flights arrive on time

Section 8.5 Random variable of the continuous type: The Normal Distribution
A random variable is a function X that assigns to each element s in the outcome space S
one and only one corresponding real number X(s) = x. The space of X is the set of real
numbers S {x : X (s) x, s S} is an interval. In discrete case the S is the set of discrete
points.

2
A normal distribution of a random variable X with mean and variance is a statistic
distribution with probability density function (pdf)

(1)

on the domain . While statisticians and mathematicians uniformly use the term
"normal distribution" for this distribution, physicists sometimes call it a Gaussian
distribution and, because of its curved flaring shape, social scientists refer to it as the
"bell curve."

4
Important Information: All normal density curves satisfy the following property which
is often referred to as empirical rule:
1. 68.26% of the observations fall within 1 standard deviation of mean.
2. 95.44% of the observations fall within 2 standard deviation of mean
3. 99.74% of the observations fall within 3 standard deviation of mean
Note: Within 5 standard deviation of mean we assume 100% data points.

Example 1. Find the mean and standard deviation of the normal distribution whose pdf is
1 ( x 7)2
given as f ( x) exp
128 128
Solution: Compare with the standard formula of pdf for the normal distribution and find
that 8, 7.

Example 2. Write the pdf of a normal distribution with mean 3 and variance 16.

Solution: We have 4, 3 , the pdf of the normal distribution is given as


1 ( x 3)2
f ( x) exp
4 2 32

Example 3. Find the area under the normal curve with mean zero and standard deviation
one for the standard variate z 1.24 .

Solution: From table 5a:

P( z 1.24) 0.8925 89.25%


For this value choose row with 1.2 and column 0.04.

0 1.24
Using calculator: P( z 1.24) 0.8925 89.25%
The calculator code:

2nd DISTR 2 normalcdf (-5, 1.24) =0.8925120

Example 4. Find the area under the normal curve with mean zero and standard deviation
one for the standard variate z 1.24 .

Solution: From table 5a:

P( z 1.24) 1 0.8925 10.75%


For this value choose row with 1.2 and column 0.04.

0 1.24

5
Using calculator: P( z 1.24) 0.1075 10.75%
The calculator code: 2nd DISTR 2 normalcdf ( 1.24, 5) =0.1074875

Example 5. Find the area under the normal curve with mean zero and standard deviation
one for 0.12 z 1.24 .

Solution: From table 5a:

P( 0.12 z 1.24) P( z .12) P( z 1.24) 1 44.03%

-0.12 0 1.24
Using calculator: P( 0.12 z 1.24) 0.4402707 44.03%
The calculator code:

2nd DISTR 2 normalcdf (-0.12, 1.24) =0.4402707

Example 6. Suppose x is a normally distributed random variable with mean 10.2 and
standard deviation 1.5. Find each of the following probabilities.
a) P(6.1 x 13.3) .
b) P(9.4 x 13)
c) P(15.5 x 13.1)
d) P( x 11.6)
e) P( x 14.4)
Draw normal curve and show the region bounded by the normal curve and the x values.

Solution: from calculator a)


P(6.1 x 13.3) normalcdf 6.1,13.3,10.2,1.5 0.9774824 97.75%
try similar way for b), and c),

11.6 10.2
a) P( x 11.6) normalcdf ,5 17.53%
1.5
Try for e).
6.1 10.2 13.3
Exercise Set
1. The physical fitness of an athlete is often measured by how much oxygen the
athlete takes in (which is recorded in millimeters per kilogram, ml/kg). The
maximum oxygen uptake for elite athletes has been found to be 80 with a standard
deviation 9.2. Assume that distribution is approximately normal.
a) What is the probability that an elite athlete has a maximum oxygen uptake of
at least 75 ml/kg? Answer: 70.66%
b) What is the probability that an elite athlete has a maximum oxygen uptake of
65 ml/kg or lower? Answer: 5.15%

6
c) Consider someone with a maximum oxygen uptake of 26 ml/kg. Is it likely
that this person is an elite athlete? Answer: No

2. The combined score of SAT – 1 test are normally distributed with mean of 998
and a standard deviation of 202. If a college includes a minimum score of 800
among its requirements, what percentage of students do not satisfy that
requirement? Answer: 16.35%

3. IQ score are normally distributed with mean of 100 and a standard deviation 15.
Mensa is an international society that has one – and only one qualification for
membership, a score in the top 2 on an IQ test.

a) What IQ score should one have in order to be eligible for Mensa?


Answer: hint: (x-100)/15 = invnorm(0.98), x = 130.81
b) In a typical region of 90,000 people, how many are eligible for Mensa?
Answer: 90,000 (0.02) = 1800

4. Using diaries for many weeks, a study on the lifestyle of visually impaired
students was conducted. The students kept track of many lifestyle variables
including how many hours of sleep obtained on a typical day. Researchers found
that visually impaired students averaged 9.6 hours of sleep, with a standard
deviation of 2.56 hours. Assume that the number of hours of sleep for these
visually impaired students is normally distributed.
a) What is the probability that a visually impaired student gets less than 6.1
hours of sleep? Answer: 8.58%
b) What is the probability that a visually impaired student gets between 6.3 and
10.35 hours of sleep? Answer: 51.65%
c) Forty percent of students get less than how many hours of sleep on a typical
day? Answer: 8.95 hours

5. Healthy people have body temperatures that are normally distributed with a mean
of 98.20 degree Fahrenheit and a standard deviation of 0.62 degree Fahrenheit.
a) If a healthy person is randomly selected, what is the probability that he or she
has a body temperature above 98.9 degree Fahrenheit? Answer: 12.94%
b) A hospital wants to select a minimum temperature for requiring further
medical tests. What should that temperature be, if we want only 1% of healthy
people to exceed it? Answer: hint: (x-98.2)/.62 = invnorm(0.99), 99.64

6. The heights of a large group of people are assumed to be normally distributed.


Their mean height is 68 inches, and the standard deviation is 4 inches. What
percent of these people are taller than 73 inches? Answer: 10.56%

7. Suppose a population is normally distributed with a mean of 24.6 and a standard


deviation of 1.3. What percent of the data will lie between 25.3 and 26.8?
Answer: 24.91%

Вам также может понравиться