5 Probability Distributions
5 Probability Distributions
2
Cont…
• Cumulative frequency 4
Properties of Probability Distribution:
1. P ( x) 0, if X is discrete.
f ( x) 0, if X is continuous.
2. PX x 1 ,
x
if X is discrete .
f ( x)dx
x
1 , if is continuous .
Note:
•If X is a continuous random variable then
b
P ( a X b)
a
f ( x ) dx
•Probability of a fixed value of a continuous random
variable is zero.
P ( a X b) P ( a X b) P ( a X b) P ( a X b)
•If X is discrete random variable the
b 1
P ( a X b) P ( x )
x a 1
b 1
P ( a X b) p ( x )
xa
b
P ( a X b) P ( x )
x a 1
b
P ( a X b) P ( x )
xa
7
cont.…
P(X = 3) = 0.031
P (X ≤ 1) = P(X = 0) + P(X = 1)
= 0.671 + 0.229
= 0.900
8
cont.…
9
cont.…
• If a random variable is able to take on a large
number of values, then a probability mass
function might not be the most useful way to
summarize its behavior
10
Definition:
•Let a discrete random variable X assume the values X1,
,then E ( X ) x f ( x)dx
a
Variance of X var( X ) E ( X ) [ E ( X )]
2 2
Where:
n
E ( X ) xi P( X xi ) , if X is discrete
2 2
i 1
x f ( x)dx ,
2
if X is continuous .
x
There are some general rules for mathematical expectation.
Let X and Y are random variables and k is a constant.
RULE 1 E (k ) k
RULE 2 Var (k ) 0
RULE 3 E (kX ) kE ( X )
14
Discrete cont.…
15
Cont…
• E(X)=0(.129)+1(.264)+2(.271)+3(.185)+4(.095)+5(.039)+6(.0
17)=2.038
defined by
Biostatistics 17
cont.…
18
1. Binomial Distribution
19
Binomial cont.…
Example:
• We are interested in determining whether a newborn
infant will survive until his/her 70th birthday
• Let Y represent the survival status of the child at age 70
years
• Y = 1 if the child survives and Y = 0 if he/she does not
20
Binomial cont.…
21
Binomial cont.…
22
Binomial cont.…
23
Binomial cont.…
25
Binomial cont.…
• P (X=x) = , x = 0, 1, 2, ..., n
26
Binomial cont.…
Example:
• Suppose we know that 40% of a certain population are
cigarette smokers. If we take a random sample of 10
people from this population, what is the probability that
we will have exactly 4 smokers in our sample?
28
Binomial cont.…
• P(X=4) =10C4(.4)4(1-.4)10-4
= 10C4(.4)4(.6)6 = 210(.0256)(.04666)
= 0.25
• Or the probability of obtaining exactly 4 smokers in the
sample is about 25%
29
Binomial cont.…
31
Binomial cont.…
Exercise
• Each child born to a particular set of parents has a
probability of 0.25 of having blood type O. If these
parents have 5 children.
• What is the probability that?
a. Exactly two of them have blood type O
b. At most 2 have blood type O
c. At least 4 have blood type O
d. 2 do not have blood type O.
32
Binomial cont.…
5 2 5-2
P(x 2) = (0.25) (0.75)
2
0.2637
33
Binomial cont.…
34
Binomial cont.…
Example:
• 70% of a certain population has been immunized for
polio. If a sample of size 50 is taken, what is the
“expected total number”, in the sample who have been
immunized?
µ = np = 50(.70) = 35
35
Binomial cont.…
36
Exercise
• Suppose that in a certain malarious area past experience indicates that
the probability of a person with a high fever will be positive for malaria is
0.6. Consider 4 randomly selected patients (with high fever) in that same
area.
• 1) What is the probability that no patient will be positive for malaria?
2) What is the probability that exactly one patient will be positive for
malaria?
3) What is the probability that exactly two of the patients will be positive for
malaria?
4) What is the probability that all patients will be positive for malaria?
5) Find the mean and the SD of the probability distribution given above.
37
B. Continuous Probability Distributions
38
Continuous cont.…
40
Continuous cont.…
• We calculate:
Pr [ a < X < b], the probability of an interval of values
of X.
41
The Normal distribution
42
Normal cont.…
• Distribution of weights of 57 children; the frequency
distribution consists of intervals with a width of 10 lb.
43
Normal cont.…
44
Normal cont.…
45
Normal cont.…
46
Normal cont.…
47
Normal cont.…
48
Normal cont.…
• π (pi) = 3.14159
• e = 2.71828, x = Value of X
• Range of possible values of X: -∞ to +∞
• µ = Expected value of X (“the long run average”)
• σ2 = Variance of X
• µ and σ are the parameters of the normal distribution —
they completely define its shape
49
Normal cont.…
• The normal distribution plays an important role in
statistical inference because:
1. Many real-life distributions are approximately normal.
2. Many other distributions can be almost normalized by
appropriate data transformations (e.g., taking the log).
When log X has a normal distribution, X is said to have
a lognormal distribution.
3. As a sample size increases, the means of samples
drawn from a population of any distribution will
approach the normal distribution. This theorem, when
stated rigorously, is known as the central limit
theorem.
50
Normal cont.…
51
Normal cont.…
52
Normal cont.…
53
Normal cont.…
54
Normal cont.…
6. Perpendiculars of:
± SD contain about 68%;
±2 SD contain about 95%;
±3 SD contain about 99.7%
of the area under the curve.
55
Normal cont.…
56
Standard Normal Distribution
57
SND cont.…
Z= x-
• Z represents the Z-score for a given x value
58
SND cont.…
Value x
50 65 80 95 110 125 140 155 170
-4 -3 -2 -1 0 1 2 3 4
SDs from mean using
(x-110)/σ = (x-μ)/σ
59
SND cont.…
60
SND cont.…
3. Read the value of the area (P) from the body of the
table where the row and column intersect. Values of P
are in the form of a decimal point and four places.
61
SND cont.…
62
SND cont.…
65
SND cont.…
• The answer is the area to the right of the line; found by subtracting
table value from 1.0000; P(z > 1.96) =1.0000 - .9750 = .0250
66
67
Applications of the Normal Distribution
68
Applications cont.…
Example:
• The diastolic blood pressures of males 35–44 years of age
are normally distributed with µ = 80 mm Hg and σ2 = 144
mm Hg2
σ = 12 mm Hg
69
Applications cont.…
70
Applications cont.…
Z = 110 – 80 = 2.50
12
71
Applications cont.…
72
Applications cont.…
74
Exercise cont.…
75
Exercise cont.…
76
Exercise cont.…
77
Example2: Suppose that total carbohydrate intake in
79
• P(X<90)= P(Z<)= P(Z< -1.7)=1-P(Z>1.7)
80
a) What proportions of diabetics have levels
between 90 and 125 mg per 100 ml?