Mod 1 Statistics and Probability
Mod 1 Statistics and Probability
Mod 1 Statistics and Probability
Axioms of Probability
1. The probability of an impossible event is 0.
2. The probability of an event that is certain to occur is 1.
3. For any event A, the probability of A is between 0 and 1 inclusive.
Approaches to Probability
1. Classical approach to probability
…uses sample spaces to determine the numerical probability that an event will
happen.
…assumes that all outcomes in the sample space are equally likely to occur.
This probability of any event A is denoted by
n( A)
P(A) =
n (S)
Example. In rolling a balance die, what are the probability of getting
a. an odd number? Answer: (1,3, & 5) = 3/6 = 1/2
b. an even number? Answer: (2, 4, & 6) = 3/6 = 1/2
c. a perfect square number? Answer: (1 & 4) = 2/6 = 1/3
2
15
3 32 4
56 5
19 6
5 7
3. Subjective probabilities
… uses a probability value based on an educated guess or estimate, employing
opinions and inexact information.
…a person or group makes an educated guess at the chance that an event will
occur based on the experience and evaluation of a solution.
Example. 1. A financial analyst claim that there is 80% probability that peso dollar
exchange rate will decreased by 3 pesos.
2. A physician might say that, on the basis of her diagnosis, there is a 30% chance
the patient will need an operation.
3
N = 500 1.000
N=
Acrivity 3
5
The sum of the probabilities of all the events in the sample space must be
equal to 1.
The probability of each event in the sample space must be between or equal
to 0 and 1. That is, 0 ≤ P(X) ≤ 1.
Dice 1 1 2 3 4 5 6
2
1 2 3 4 5 6 7
2 3 4 5 6 7 8
3 4 5 6 7 8 9
4 5 6 7 8 9 10
5 6 7 8 9 10 11
6 7 8 9 10 11 12
Let x represent the sum of two dice. Then the probability distribution as follows:
x 2 3 4 5 6 7 8 9 10 11 12
1 2 3 4 5 6 5 4 3 2 1
P(x) 36 36 36 36 36 36 36 36 36 36 36
or .0 or .0 or .0 or .1 or .1 or . or . or . or . or . or .
28 56 83 11 39 167 139 111 083 056 028
Mean: μ=∑ [ x • P( x )]
7
Rolling a Dice
0.18
0.16
0.14
0.12
0.1
P(x) 0.08
0.06
0.04
0.02
0
1 2 3 4 5 6 7 8 9 10 11 12
Applying the concepts from the activity given, let us complete the table
below.
Mean: μ=∑ [ x • P( x )]
= 0 + 0.25 + 0.5 + 0.5
=1
8
Tossing a Coins
0.6
0.5
0.4
P(x)
0.3
0.2
0.1
0
0 1 2
Example 3. There are 8 balls in a jar, 3 blue balls and 5 red balls, choose 3 blue
balls at random. Find the mean, variance, standard deviation and its probability.
Let x = number of blue balls
x = 0, 1, 2, 3
(¿ 5 C 3) 10
P(x = 0) = (¿3 C 0) ¿¿ =
(¿8 C3 ) ¿ 56
(¿5 C 2) 30
P(x = 1) = (¿3 C 1) ¿¿ =
(¿8 C3 )¿ 56
(¿ 5 C 1) 15
P(x = 2) = (¿3 C 2) ¿¿ =
(¿8 C3 )¿ 56
(¿5 C 0) 1
P(x = 3) = (¿3 C 3) ¿¿ =
(¿8 C3 )¿ 56
Mean: μ=∑ [ x • P( x )]
= 0 + 0.536 + 0.536+ 0.054
= 1.126
9
= 0.504
Standard deviation: σ = √ σ 2
= √ .50 4 = 0.71
Probability Histogram
Binomial Distribution
A binomial distribution is a probability distribution with only two possible
outcomes: success and failure.
10
Binomial Probability Distribution
P (x) = nCx • px • q n – x .
Where:
p(x) = probability of x (successes)
p = probability of a “success” on a single trial
q=1–p
n = number of trials
x = number of “successes) in n trial
(x = 0, 1, 2, 3, …n)
n – x = number of failures in n trials
Examples: 1. You toss 1 coin 5 times in a row. Note the number of tails, what is
the probability of getting exactly 3 tails.
n=5 p = .5 q = .5 x=3
P(x) = nCx • px • q n – x .
P(x=3)= 5C3 (.50)3 (.50) 5 – 3
= 10 (.125) (.25)
= 0.3125
2. x = 5 p = .30 q = .70 n = 10
x n–x
P(x) = nCx • p • q .
P(x=5) = 10C5 (.30)5 (.70) 10 – 5
= 252 (.002) (.168)
= 0.085
x = 0, 1, 2 p = .50 q = .50 n = 20
P(x) = nCx • px • q n – x .
P(x=0)= 20C0 (.50)0 (.50) 20 – 0
= 1 (1) (.0000009)
= .0000010
P(x) = nCx • px • q n – x .
P(x=1)= 20C1 (.50)1 (.50) 20 – 1
= 20 (.50) (.000002)
= .00002
P(x) = nCx • px • q n – x .
P(x=2)= 20C2 (.50)2 (.50) 20 – 2
= 1 (1) (.00003)
= .00003
P(x) = nCx • px • q n – x .
P(x=1)= 15C1 (.50)1 (.50) 15 – 1
= 15 (.50) (.00006)
= .00045
P(x) = nCx • px • q n – x .
P(x=2)= 15C2 (.50)2 (.50) 15 – 2
Hypergeometric Experiment
It is a statistical experiment that has the following properties:
a. A sample size n is randomly selected without replacement from a population
of N items.
b. In the population, K items can be classified as successes and N – k items
can be classified as failure.
Example: 1. You have an URN of 10 marbles, 5 red and 5 green. You can randomly have
selected a marble/s without replacement.
a. What is the probability of selecting a red marble in 1 st and 2nd trial?
Ans: 1st trial = 5/10 or ½, and 2nd trial 5/9
b. In your first trial, you get 1 red marble. What is the probability to get
another red marble in 2nd trial?
Ans: 4/9
c. What is the probability of selecting a green marble in 1st to 4th trial in
every trial you get a red marble?
Ans: 1st trial = 5/10 or ½, 2nd trial = 5/9,
3rd trial 5/8, an 4th trial 5/7
Hypergeometric Distribution
It is a probability distribution of hypergeometric random variables.
Formula:
( kCx ) [ ( N −k ) C ( n−x ) ]
p(x) =
NCn
12
where:
N = number of items in a population
K = number of items in the population that are classified as successes
n = number of items in the sample
x = number of items in the sample that are classified as successes
nk
= N ²=
k ( N−k ) n (N−n)
N ²(N −1) =
√ k ( N −k ) n( N −n)
N ²( N −1)
Example: 1. Suppose we randomly select 5 cards without replacement from ordinary deck
of playing cards. What is the probability of getting exactly 2 red cards, it’s mean, variance
and standard deviation?
N=52 n=5 x=2 k=26
nk 5(26) 130
= N = 52 = 52 = 2.5
=
√ k ( N −k ) n( N −n)
N ²(N −1)
=
√
26 ( 52−26 ) 5(52−5)
52²(52−1)
=
158,860 =
137 , 904 √
√ 1.152 = 1.07
(¿26 C 3) 325(2600)
= (325) ¿= = 0.3251
2,598,960 2,598,960
2. Suppose we select 5 cards from an ordinary deck of playing cards. What is the
probability of obtaining 2 or fewer hearts?
N=52 n=5 x= 0, 1, 2 k=13
nk 5(13) 65
= N = 52 = 52 = 1.25
=
√ k ( N −k ) n( N −n)
N ²(N −1)
=
√
26 ( 52−26 ) 5(52−5)
52²(52−1)
=
119,145 =
137 , 904 √
√ .86 = .93
13
(¿ 39 C 5) 575,757
= (1) ¿= = 0.2215
2,598,960 2,598,960
(¿ 39 C 4) 13(82,251) 1,069,263
= (13) ¿= = = 0.4114
2,598,960 2,598,960 2,598,960
14