Hipotese Toetse: Eensteekproef Hypothesis Testing: One Sample
Hipotese Toetse: Eensteekproef Hypothesis Testing: One Sample
Eensteekproef
Hypothesis Testing:
One Sample
Hipotese Toetse
Hypothesis Testing
1
Nulhipotese en Alternatiewe Hipotese
Null Hypothesis and Alternative Hypothesis
H0: µ = 50 f(50)
H0: σ = 10 f(10)
H0: µ = 34 f(34)
2
H0 het dus altyd ‘n = teken in: =, ≥, of ≤
H0 wil always have = sign in it: =, ≥, of ≤
Toetsstatistiek
Test Statistic
X 0
TS
S/ n
3
9-2) Vir µ, σ bekend
For µ, σ known
9-4) Vir σ2 en σ
For σ2 and σ
9-5) Vir π
For π
Kritieke Waarde
Critical Value
4
X ~ Nor(0,n2 )
0
Indien die waarde wat ons uit ons steekproef kry “naby”
die middel van die verdeling is, dan kan die hipotese oor
μ0 moontlik waar wees.
If the value we get from our sample is “close” to the
middle of the distribution, then the hypothesis about μ0
could be true.
?? 0 =R75 ??
Z-tabel / table
t-tabel / table
χ2-tabel / table
F-tabel / table
5
Verwerpings en Nie-Verwerpingsgebiede
Rejection and Nonrejection Regions
Tweekantig
Two-Sided H0: 50
H1: 50
KW / CV 50 KW / CV
Verwerpingsgebied Nie-Verwerpingsgebied Verwerpingsgebied
Rejection Region Non-Rejection Region Rejection Region
Regseenkantig
Right One-Sided H0: 50
H1: 50
50 KW / CV
Nie-Verwerpingsgebied Verwerpingsgebied
Non-Rejection Region Rejection Region
6
Linkseenkantig
Left One-Sided H0: 50
H1: 50
KW / CV 50
Verwerpingsgebied Nie-Verwerpingsgebied
Rejection Region Non-Rejection Region
Betekenispeil
Significance Level
Daar is twee tipe foute wat ons kan maak indien ons ‘n
hipotesetoets doen.
There are two different types of errors we can make when
doing a hypothesis test.
7
Tipe I Fout / Type I Error
8
H0 : Tweekantig
H1: Two-Sided
0.05
0.025 0.025
KW / CV Z0.025 0 KW / CV Z0.975
H0 : Tweekantig
H1: Two-Sided
0.10
0.05 0.05
KW / CV Z0.05 0 KW / CV Z0.95
H0 : Links Eenkantig
H1: Left One-Sided
0.05
0.05
KW / CV Z0.05 0
9
H0 : Regs Eenkantig
H1: Right One-Sided
0.07
0.07
0 KW / CV Z0.93
KW KW
10
TS1 Nie Verwerp
Not Reject
TS2 Verwerp
Reject
TS3 Verwerp, maar baie naby ???
Reject, but very close ???
TS4 Verwerp, maar vergelyking met TS2 ???
Reject, but compared to TS2 ???
11
TS = 2.76 H1: µ ≠
p = 2 x P(Z > |2.76|)
= 2 x {1 – P(Z < 2.76)} = …
= 0.0058
Power = 1- β
Waarskynliheid ons verwerp H0, indien dit verkeerd
is, dus H1 waar is.
Probability we reject H0 if it is false, thus H1 is true.
n = f(α, β, …)
Stappe in ‘n hipotesetoets
Steps in a hypothesis test
12
5) Kry die data en bereken die toetsstatistiek.
Get the data and calculate the test statistic.
Los steekproefgrote
Leave sample size
13
Hipotesetoets vir μ, σ onbekend
Hypothesis Test for μ, σ unknown
Indien ons ‘n hipotese toets oor µ wil doen en ons weet nie
wat σ is, is die toetsstatistiek wat ons gaan gebruik:
If we want to do a hypothesis test about µ and σ is
unknown, out test statistic is:
x 0
TS t ~ tn1
S
n
Hierdie toetsstatistiek volg ‘n t-verdeling en dus gaan ons
ons kritieke waarde in die t-tabel opsoek.
This test statistic has a t-distribution and we will look up
our critical value in the t-table.
Hipotesetoets vir σ2
Hypothesis Test for σ2
TS 2 (n 1)s ~ n21
2
2 0
Hierdie toetsstatistiek volg ‘n chikwadraat verdeling en dus
gaan ons ons kritieke waarde in die χ2-tabel opsoek.
This test statistic has a chi-squared distribution and we will
look up our critical value in the χ2-table.
14
Hipotesetoets vir p
Hypothesis Test for p
gebruik (9-41) as TS
use (9-41) as TS
15
16