Week 9+10+11
Week 9+10+11
• Estimation:
Inferential Approximating the actual
Statistics values of parameters
Population • Hypothesis Testing:
Confirm or disprove about the
population parameters
Random Sample
Population
parameters Sample
statistics
Sampling
OUTLINE
Hypothesis
Probability Estimation
Testing
• Probability of • Point • Hypothesis
discrete variable Estimation testing for a
• Probability of • Interval population
continuous Estimation mean
variable • Hypothesis
• Normal testing for a
distribution population
proportion
TYPE OF STATISTICS
PROBABILITY
0 0.5 1
0% 50% 100%
½
• When a meteorologist states that the chance of rain is 50%
• If the chance of rain rises to 80%
• If the chance drops to 20%
CLASSICAL DEFINITION
.25
H H
0 1 2 x
DISCRETE PROBABILITY DISTRIBUTION
...
DISCRETE PROBABILITY DISTRIBUTION
PROBABILITY OF CONTINUOUS VARIABLE
Uniform
Continuos Normal
Probability
Distributions Exponential
...
PROBABILITY OF CONTINUOUS VARIABLE
x
PROBABILITY OF CONTINUOUS VARIABLE
NORMAL DISTRIBUTION
X ~ N(μ,σ 2 )
➢ Bell-shaped
➢ Symmetrical: Mean = Median = Mode
➢ Never touches the x-axis
➢ Total area under curve is 1.00
➢ Probability of any single value = 0
NORMAL DISTRIBUTION
Changing σ increases or
decreases the spread.
σ
μ x
STANDARDIZING
20
STANDARDIZED NORMAL VARIABLE
0.5
0.4
• 𝑋~𝑁 𝜇, 𝜎 2
0.3
𝑋−𝜇
•𝑍 = 0.2
𝜎
0.1
• 𝑍~𝑁(0,1) 0
-4 -3 -2 -1 0 1 2 3 4
•𝑃 𝑍 < 1 =
• 𝑃 𝑍 < 1.15 =
•𝑃 𝑍 > 3 =
• 𝑃 −1 < 𝑍 < 1.3 =
-2.5
1.5
3.5
2
-3.5
-3
4
1
2.5
-4
-1.5
0.5
-2
-1
-0.5
Z TABLE
P (Z<0,72) = 0,7642
THREE SIGMA RULE
THE STANDARDIZED NORMAL TABLE
𝑋~𝑁 100,16
• 𝑃 𝑋 < 104 =
• 𝑃 𝑋 > 92 =
• 𝑃 94 < 𝑋 < 102 =
• Probability that X differ from the mean not more than
standard deviation =
• P(X>a)=0.2 => a=?
CENTRAL LIMIT THEOREM
We know that
Bell-shaped
Symmetric
𝑡0.025 9 = 2,262
HINTS FOR USING THE T-TABLES
Note:
(i) The population must follow normal distribution to get t-statistic
(ii) Use t-table to find t-value
EXAMPLE 3
𝑆 𝑆
𝑥ҧ ± 𝑧𝛼/2 𝑥ҧ ± 𝑡𝛼/2
𝑛 𝑛
CONFIDENT INTERVAL
FOR PROPORTION
𝑝(1
ҧ − 𝑝)ҧ 𝑝(1
ҧ − 𝑝)ҧ
𝑧𝛼/2 × 𝑧𝛼/2 ×
𝑛 𝑛
Width of
confidence interval
EXAMPLE
▪ Level of significance
Actual Situation
Decision Rain (H0 True) Not rain (H0 False)
Umbrella
No Error Type II Error
(Not Reject (1 - ) (β)
H0 )
No umbrella Type I Error No Error
(Reject H0) ( ) (1-β)
Significance level () = The probability of Type I Error
= The probability of rejecting a true null hypothesis
TEST STATISTICS
σ known σ unknown
𝐱ത − 𝛍𝟎 𝐱ത − 𝛍𝟎
𝐳= 𝛔 𝐳=
ൗ 𝐧 𝐒ൗ
𝐧
• Rejection rule:
Left tail Right tail Two tail
𝐱ത − 𝛍𝟎 𝐱ത − 𝛍𝟎
𝐭= 𝛔 𝐭=
ൗ 𝐧 𝐒ൗ
𝐧
• Rejection rule:
Left tail Right tail Two tail
t < -tα, n-1 t > tα, n-1 |t| > tα/2, n-1
COMPARING WITH CRITICAL VALUE
H0: μ ≥ 3
H1: μ < 3
Lower-tail test 0
COMPARING WITH CRITICAL VALUE
CONCLUDING
• Reject H0
• Not reject H0
conclude that…..
SUMMARY OF TEST STATISTICS
Yes No
n > 30 ?
No
Ϭ known ? Popul.
Yes
approx.
Yes normal
Use s to
estimate Ϭ No ?
Ϭ known ?
No
Yes Use s to
estimate Ϭ
x − x − x − x − Increase n
z= z= z= t=
/ n s/ n / n s/ n to > 30
EXERCISE
EXAMPLE
Hypothesis:
• Two tail:
H0: p = p0
H1: p ≠ p0
• Left tail:
H0: p = p0
H1: p < p0
• Right tail:
H0: p = p0
H1: p > p0
TEST STATISTICS
ഥ − 𝐩𝟎
𝐩
𝐳=
𝛔𝐩ഥ
𝑝0 (1− 𝑝0 )
where: 𝜎𝑝ҧ =
𝑛
• Rejection rule
Left tail Right tail Two tail
• Hypothesis
H0: p = .5
Ha: p .5
• Test Statistic
p0 (1 − p0 ) .5(1 − .5)
p = = = .045644
n 120
p − p0 (67 /120) − .5
z= = = 1.278
p .045644