lecture 6
lecture 6
Examples:
• Toss a coin n time and count the number of heads.
Examples:
• Height of students at certain college.
• Length of garment
X=x 0 1 2 3
P(X=x) 1/8 3/8 3/8 1/8
5
Properties of discrete probability distribution
1. P X xi
1
i 1
2. PX xi 0 or 0 PX
xi 1
6
Pr o perties of continuous probability
1 .
distribution
3. PX 0
4. PX a 0
5. Pa X b Pa X b P(a
X b) P(a X b)
b
P(a x b) f(x) dx
a
7
Introduction to expectation
Definition: the expected value (also
known as the mean) of a
random variable is a measure
of the
center location for the random variable. n
2. Continuous R.V
X .PX i
b i
X .PX
2 2
E(X ) i if X is
i
1
i
discrete
if X is
X f 2
continuous 9
Example
Let X be a continuous R.V with distribution
1 0x
x 2
f (x) 2
a) P (1<x<1.5)
b) E(x)
c) Var(x)
d) E(3x2
2x)
10
Common Types of Probability
Distributions (Discrete)
a) Binomial distribution
• Lies on Bernoulli-trials. Conditions are:
b) The experiment should be repeated n number
of times, where n>1.
c) Each trial should result in only two possible
out comes named as success (p) or failure (1-p)
arbitrarily.
d) The probability of success (p) remains constant from
trial to trial.
e) All the n trials are independent.
11
Examples of binomial experiments
Tossing a coin 20 times to see how many tails occur.
12
Binomial distribution cont’d…
• In general, let the probability success be “p” and
the trials be repeated n times.
• Then, the total number of successes (S or X) is a
random variable and is said to have a binomial
distribution, bin (n, p). We can calculate each of
the probabilities for the possible outcomes 0 to n
by;
P(x-successes) = ncx px (1-p)n-x = ncx px (q)n-x ;
where x= 0, 1, 2, …, n.
13
Binomial distribution cont’d…
14
Binomial distribution cont’d…
Example 1: Suppose that in a certain population 52% of
the all recorded births are males. If we randomly
select five birth records from this population, what is
the probability that exactly three of the records are
male births?
Solution: n=5 x=3 (success), p=0.52
15
Exercise
16
Binomial distribution cont’d…
Example 3: Suppose that it is known that 30% of a certain
population is immune to a given disease. If a random
sample of size ten is selected from the population, what
is the probability that it will contain exactly four immune
persons?
Solution: n=10, X= 4, P (immune persons) = p = 0.3 and
therefore, (1-p) =q= 0.7
17
2. Poisson Distribution
• The Poisson distribution is used to model discrete events
that occur infrequently in time and space i.e. rare events that
occur in constant rate,
• The Poisson Distribution is a discrete distribution which takes
on the values X = 0, 1, 2, 3, and so on.
• It is often used as a model for the number of events in a
specific time period.
• It is determined by one parameter, lambda.
18
The Poisson distribution
20
The Poisson distribution is used as a distribution of
rare events, such as:
• Number of misprints.
• Accidents.
21
Example 1
a factory contains a large number of similar machines
which stops randomly at an average rate of 4.2 per day.
What is the probability if number of stop pages per day will
be 7?
Solution:
4.2 7
P( X 7) e 4.2
0.0686 7!
22
The Poisson distribution cont’d…
Example 2: In a study of suicides, the monthly distribution
of adolescent suicides in an area for ten years interval
closely followed a Poisson distribution with parameter λ =
2.75. Find the probability that a randomly selected month
will be one in which three adolescent suicides occurred.
23
The Poisson distribution cont’d…
24
Probability Distribution for continuous Variables
25
Probability distribution of continuous variables
26
Probability distribution of continuous variables
31
Normal Curve
• The graph of the normal distribution depends on two factors:
the mean and the standard deviation.
• The mean of the distribution determines the location of the center of
the graph, and the standard deviation determines the height and width of
the graph.
• When the standard deviation is large, the curve is short and wide; when
the standard deviation is small, the curve is tall and narrow.
• All normal distributions look like a symmetric, bell-shaped curve.
32
Standard Normal Distribution
• It makes life a lot easier for us if we standardize our normal curve, with a mean
of zero and a standard deviation of 1 unit.
• We can transform all the observations of any normal random variable X with
mean μ and variance σ to a new set of observations of another normal random
variable Z with mean 0 and variance 1 using the following transformation:
33
• Areas under the standard normal distribution curve have
been tabulated in various ways. The most common ones are
the areas between Z=0 and a positive value of Z.
a X b
P a X b P
a
P
Z b
34
Standard Normal Curve: Z ~ N (0, 1)
35
Standard Normal Distribution cont’d…
• To find the probability that z takes on a value between any
two points on the z-axis, say z0 and z1, we must find the area
bounded by the perpendiculars erected at these points, the
curve, and the horizontal axis.
• We can find these areas from the standard normal (Z) table
that contains the areas under the curve between and the
specified values of z (say z0) shown in the leftmost column of
the table.
36
z 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09
0.0 0.0000 0.0040 0.0080 0.0120 0.0160 0.0199 0.0239 0.0279 0.0319 0.0359
0.1 0.0398 0.0438 0.0478 0.0517 0.0557 0.0596 0.0636 0.0675 0.0714 0.0753
0.2 0.0793 0.0832 0.0871 0.0910 0.0948 0.0987 0.1026 0.1064 0.1103 0.1141
0.3 0.1179 0.1217 0.1255 0.1293 0.1331 0.1368 0.1406 0.1443 0.1480 0.1517
0.4 0.1554 0.1591 0.1628 0.1664 0.1700 0.1736 0.1772 0.1808 0.1844 0.1879
0.5 0.1915 0.1950 0.1985 0.2019 0.2054 0.2088 0.2123 0.2157 0.2190 0.2224
0.6 0.2257 0.2291 0.2324 0.2357 0.2389 0.2422 0.2454 0.2486 0.2517 0.2549
0.7 0.2580 0.2611 0.2642 0.2673 0.2704 0.2734 0.2764 0.2794 0.2823 0.2852
0.8 0.2881 0.2910 0.2939 0.2967 0.2995 0.3023 0.3051 0.3078 0.3106 0.3133
0.9 0.3159 0.3186 0.3212 0.3238 0.3264 0.3289 0.3315 0.3340 0.3365 0.3389
1.0 0.3413 0.3438 0.3461 0.3485 0.3508 0.3531 0.3554 0.3577 0.3599 0.3621
1.1 0.3643 0.3665 0.3686 0.3708 0.3729 0.3749 0.3770 0.3790 0.3810 0.3830
1.2 0.3849 0.3869 0.3888 0.3907 0.3925 0.3944 0.3962 0.3980 0.3997 0.4015
1.3 0.4032 0.4049 0.4066 0.4082 0.4099 0.4115 0.4131 0.4147 0.4162 0.4177
1.4 0.4192 0.4207 0.4222 0.4236 0.4251 0.4265 0.4279 0.4292 0.4306 0.4319
1.5 0.4332 0.4345 0.4357 0.4370 0.4382 0.4394 0.4406 0.4418 0.4429 0.4441
1.6 0.4452 0.4463 0.4474 0.4484 0.4495 0.4505 0.4515 0.4525 0.4535 0.4545
1.7 0.4554 0.4564 0.4573 0.4582 0.4591 0.4599 0.4608 0.4616 0.4625 0.4633
1.8 0.4641 0.4649 0.4656 0.4664 0.4671 0.4678 0.4686 0.4693 0.4699 0.4706
1.9 0.4713 0.4719 0.4726 0.4732 0.4738 0.4744 0.4750 0.4756 0.4761 0.4767
2.0 0.4772 0.4778 0.4783 0.4788 0.4793 0.4798 0.4803 0.4808 0.4812 0.4817
2.1 0.4821 0.4826 0.4830 0.4834 0.4838 0.4842 0.4846 0.4850 0.4854 370.4857
2.2 0.4861 0.4864 0.4868 0.4871 0.4875 0.4878 0.4881 0.4884 0.4887 0.4890
Example 1:
Find the area under the standard normal distribution which lies
a) Between Z=0 and z= 0.96
Solution:
Area = P(Z > - 0.35) = P(- 0.35 < Z < 0) + P(Z > 0)
= P(0 < Z < 0.35) +P(Z > 0)
= 0.1368+0.5 = 0.6368 39
Example 1
d)To the left of
Z=0.35 Solution:
Area = P(- 0.67 < Z < 0.75) = P(-0.67 < Z < 0) + P(0 < Z < 0.75)
= P(0 < Z < 0.67) + P(0 < Z < 0.75) = 0.2486 + 0.2734 = 0.52
40
Example 2
Given the standard normal distribution, find P (z>2.71)
Solution: We obtain the area to the right of z=2.71 by
subtracting the area between and +2.71 from 1. Thus, P
(z>2.71) = 1-P (z <2.71) = 1-0.9966= 0.0034.
Example 3: Suppose it is known that the heights of a certain
population of individuals are approximately normally
distributed with a mean of 70 inches and a standard
deviation of 3 inches. What is the probability that a person
picked at random from this group will be between 65 and 74
inches tall? I.e. P (65x74)?
41
Standard Normal Distribution cont’d…
Solution: First use z- transformation to change this into standard
normal distribution:
43