μ
μ
CIs and Hypothesis Tests for Means
Central himit Theorem
conditioh
여러
are
:
In
,
mean = G
near normal condition : n 3- 30
-
sample size
-
,
standaod eorov
of the total population s withoutmeplancemeht
=
P , SE
leaves a/ 2
s
Ls uses population
=
2
confidence interval : FUE
when
P 뉴
:
SE
to the miadle of
estimaate p
체
-
ME = +a 2.
α= 0 5 ( 95%)⇒ 20
,
α= 6
.
δ |
contains p
mostly
.
distribution
degmee of freealoos
,
:
n
m
급
+
-1
- 1 =
12 . 7
?
CI = ←Itg/z
,
>1
-
뉴
<
-1
tail Hol = tho Ha l FMo
:
:
|
:
. HaM 7 Mo
d
Mo Holl
a
-
ll
typel error false positive ( a) type false egative [B )
for a
samBle size reducing a will inchease β
:
0251 a 6 )
:
[993 > ⇒ 20005 = 2 576
.
.
given
increasing thesasmplesize willreduseboth and
ascuraay
test statistic t sh
to be nery centain
Tnterval , whenCI widtht accauranay p preci
captaring Bopulation parameter
↓
value as ettreme as on
ifawant to increase accuaray precision imcorease the sample size
P value ,theprobabicity of observing
$
comButesEthenchoose CIanch build CI
o
=
,
a
us precision
③
:
P
use wider
on
sion
diminishing aeturn of samplesizes
as shmplebecomes 빛
v
assaming the ho is corwrect
,
deviation (s3 1 39
mean
:
(53 37 32 standavd
Two Tail
extheme tham t
mome
thesamplesize must
idebizincreae
e 은 = )(씁
Choosingsample
n
*
)
P( 1- ☆
Ez
by facto
a
'
-
s
:
.
Ho 9 38 Ha 1438
13 state Ho and Ha
U
) significance level
2
:
tn (
2, statisticp
value
Proportion
ex) Ho : P = 0 30
mefhod 2
specifis
.
:
or smaller
sighificance Level
, Hok ? po
Ha : papo
a
confidence leve l
, if a = oog
TyPell Epror fail to nejeet
Ho even
:
Cex) a = O . 1 : weak evidrequined
aget P first p *
예
= 200 ,
Y
( ☆)= 0 = 0 . 3 , P ( P ) =δ
p
,
=
=
,
2 0 . on.
strong
=
,
00054
, 1t/
=
0
.
00108
지이
, 1 1
Ha : u ? 90
0
업=
.t 1
=
=
. 834
0
:
verystro
P =O
.
3 then
,
PNN
0,
2
78 ) usetthe 2 scove
-
.
means : two samplef test
-
randomly independentlyselecfed from two popelations
Ccalgary
sizes anh hawe different Variance
samples Eam be different
s
α 0 , 00 l
=
=
table
it canbe written as Ho : U
µ
2
lo lli - lr
Ha U - M2 # 0 cam also be wriffem as Ha 1 , F µ
within each sample
random sampling
) in dependence
than 10 % of
without
:
rule
replacement , should be less
population
23101
sampling
:
=
o
,
=
2
:
(
0
.
3,
0
. 0324
) 3)
.
nearly normal condition : h
( . 30
2
H
andnz= 30
mast
4 ) Independent group assumption the two samples
:
beindependent from each other
the observation in ore saomple should
.
the other
not
influence theobservations in
satmple
pooled t fest lequal Variance)
one sided
-
-
=
sgetβ= firstP
2
윙
Ho p ≤ 0 4
Ha : P 7 0 4
prx ( β . ,
금
δ
s
0
=
. 17939
n =
,
s test whether two
165
β0
)
☆= 838
039 -
samples
⇒
population means ane equal
can be diffenent sizes
assumespopulafion variance ave equal
pained t fest
.
.
=
.
.
.
2
0
.
,
P ( 2 ≤ 2 78) 0 - 00272 | 000272+ 2 0 00544
I if p - ralue < a -reject Hoor 413ka 2 reject
:
-
.
,
.
=-
-
.
:
음
- 0324 giveh :
⑳
β 24
2 - score
2
05 is | T 1 Nv (a( a , af ]
S . 22 . 68 α= . 05 M : 96 , SE
exvan$
'
=
=
meject Ho a 0 . Os mad
to
Λ
?
{
Two sided
어리 !
.
=
3 47
s tw o sarmplesare
thougn Ho is actrally false
probability of omosking tybe cerrov , lomara givessucellcheaence of type l error
⑳=
0
H . : µ= 90
.
comparingthwo independent
.
,
=
=
00054 pralae
-
Compare two mean numerical
=
.
p
x
.
0
=
s
.
:
47
.
=
,
.
t . 93
951
3 959 of the intervals would contain the treepopuldetion paratmeter
tru
Type l Errom mejecting Ho ementhough tHois actucaelly
confidence level t -
2
3
)
than a
value
ex) Ho : p ≤ Po Ha : 3
p Bo
-
Ore sample Ex
Ha : P # 0 3 ⇒ Ho should celrays aqual
,
t=
:
1
,
1
: t :
hypothesized lo is out of 95 % CI arounad I s heject ho
,
Proportion One sided Ho allows the population parameten to be largen
-
,
은유=3791050
↑
~☆ .
X
3
sidead : has speiEis valdefor populsetiom parameter
.
n
0 197
]SE( ← )- teststatistic
.
-
-
=
T DIST ( - . 47 , 50 -
j) nejest Ho if prakhe is small enough , or fail
to neject Ha if the p ral ue is not small enoaghh
Two
음
.
test
-
:
"
「 se (t, afi )
-
:
38 , s ε=
=
.
.
.
a = 0 oS
:
:
α
,
α= 8 O 5
:
Ee
Hypothesis Tests for proportions
-
how thick is the tail ,
=
,
confidencelewe l
**for α= 01 ( 90 %(I ) ⇒ 201121645
λ
-
I degrees t
df thicker tail
one - tail . Ho : ll . Mo Hau <
,
use to
criticalralne
*
sample size
a 12 ,
=
two
NB
,
p
- valkme with am -
is
m
,
17 G is known
=
=
,
,
2 alz chificalvalkee cormespond
SE
,
in each tail
:
6 is umknowh , use s and t
:
t
lf increase standaud mormaal distribution
d8 n - |arcelfunction .+
1 . 1nV (α
proportion ( py
=
Margin of error ( eE]= a,a 쁨
M-
,
=
used to estimate population parameter
,
yEritical
유 조감
23 novomal onnothormal but ha 30
precise shape of the distribution , feamer
Confidence lnterwas for proportion
p point estimate
2 significame lemal
,
ta/z
=δ
끔 ] for Eategorical data
and m ( l -133 ≥ 1
T 12 α 12
** ta (2 m - 1 조전
suffciemtly largel population is approk large
.
.
sOEcess / fail condition : M☆ 2- 10
이
⇒
=
.
shoulke nof exceech 1 od
GLT sample propontion , ☆ nN (mean
-
confidence interval
sample
모음
observationsemear independentH
fornumericalspread
appr
)
(
:
CLT samp
-
(0. 4
=
O - aSP
2
디
서
높
4) ( ,
,
0
.
=
( 리스 ( D . 225 )는( A
04
0
. 030814)
dom ' t maltiply by 2
if we haue too sets of data but they me actuallypairs from a single
'
,
sample , we use a paired test
data mast
paired data assurption the
acthally be paired
You can t just decide that the observations seem to
go tgt
:
'
TISOeaIOze
P. = 0 4
.
P
=6
.
29
ex ] ran 2024
Compare
2
-
van 2025
,
two proporfions ⇒ cafegorical [two cafegovies)
test
Fx
dramaticcharacte,r * s
.
y
m "
Ho
:
P
=
P2
sampl
e impact osided
psthere
proportion
=
?,
Ha P , F β
:
2
1
Ex does p 2 attract 10 %mone than P ?
.
Ho Pr P , = 101
:
-
.
if Do
:
0 = pooled
Ha
2
-
:
P=
fest
-
P , 410 %
Ho : Pe ≤ P , Ha Pe 7
:
P
,
=
one
-
sided
Chisquare test
chi squane test of independence
-
test statistic : k (
alc
cald
K : Eo8 cells
d8 [R -1 ) ( C -
도t
=
categovical
are two
cals
to
expected
,
E
Ovenall proportion
elatioashipexis
Hosignifance F F test pvalue
-
=
significant
,
of students whose dveam
employer
F if there is pattewn in tinceseriesdata
constantrariance equal spread conditionis satisfied⇒ usevesidual plof
)
histogram
hearly
Mulfiple Linear Regression
I
95325 efotal
=
, linear
0
?)
imearity independent observatioh Crandomization
violafed
-
in sample ?
gaogle
is
,
Assumptions
-
:
tha : B , #
,
Jis it statistically
( '
P - value = P (+≥ xaa )= Chidisf e calc , df) ⇒ onesided
p value a a
no linear relationship
Ho 13
F testysmall p value → vejest
-
,
1
kherplained
:
J R #of row Cfof column
=
to
E
0
=
-
for each cell
.
= ratio of explained
F - test
inabependentr
var
observed , expected
,
,
:
nowma ! ⇒
regression eq botb, , fbrtzt… + bktF
e lIf n K - Amainly for comparisom
*
usidualialways
←
=
.
=
,
-
yrease ang yaviable is added , added vaviable doesn t provide new info
'
adjusthd Rai
P whem
1K ↑ n - K k,
R ad; 다 - ( 1 R )β
씀
,
2
-
s
⇒
n is
carge
βadj≈ R 2
0R
H 0 B , Br B 3 B O Ha at least one of the slope is zevo
4
8= f
=
:
=
F stats
P value
4 A
-
:
=
SE
=n - - 1
a
]SST [ F, K ( n - - 13 p
=
-
k
- walue
K
=
significant
F
ca
,
just mean at least one coeffcient is nou
chi square goodness of fit fest
follow a claimeddistributioun ?
-
cafegorical
One
o
var
of that variable
variable
4 non
Ho the distribution of the categorical var matches a specific dis
Ho B ;
:
is die 16 fair ?
=
expected sount
Ealc더
=
z
P lalue P ( ( ( 3 df) > 32 84)
-
y
ore t
Y
Regnession
Bo + 13 , It ε Bo 13 ,
=
-
,
hhknown Bop . parca I
.
.
impust variable
,
,
t fest for the
:
,
,
=
55 if p ralke < a
or
-
'
.
0
rent = 3096
-
t 2 05 ←
.
panf= 1732 +1 . 929 s 9
121 는
f+
bedroom
abathroo wn
3081
BT
20 distanse from
poreferableto bigmodel
-
*
It ( 7 t 26 a
i
m
,
(
비
( df
p value
-
=
β
으
,
lfffll
pvalue
) /,
is
1
t
t
Jin this
B
.
presliction inteveraal
y 2 botb , x
*
23 pradiction inferval Y** I 2Se ⇒ / *
R - squared
*
:
=
-
← I ↑ ⇒ (M EP ⇒
, SS TEsum of sqnames totanly : totenl
SST = SSIM +SS
)
[
E
eplainedtunetBlaived
acEUracy ↓
ralrisution iony
SS 1 Emodel3 varsoation explained by the moahel (the magwession lime )
:
SSE (Errow) : variation notexplaimed by themodel hnesiduallerwom)
R2 = SSM ( 5 St sproportion of total vaviation eeplained by tha sbahel
ANOVA in regnession
mean square
SSSM - * ] ofhow ehfs
explainhby themodeftotal regression ) 8=
2
?
Eea
measanes spred
much variation
Yavfknd its
df=
(
n
-d
1
how much wavicationmemains unexplaime ah (hedisual 3lf = n
:
.
case
e
Eyes ( no )
x 2 : view
Pyes
" ,
,
out 2 eq
17 dummies
=
:
59 ft
.
y
=
- 135 , 292 + b 5
.
,
- bot b , x x* given t
2
:
-
point estimate
17 point estionate
2
0
saf +
π= 135 292 t 650 sqft + 78466
Multipl limear regression with Categovical var
if there is 8 possibility
ts2n - 2 + SE (b 2
s ( ope[ . 3 = bi #
(
really ratter
.
ifyeso
don ' tneed variablumny Ear
dueto ifhocollinearity
wrife
ㅇ
reguession
'
Var
Iusedumny
)
,
-
yask price h
to 9 sy is
n
e'
maltip le p value same tiome since its conditional s remove worse one first
of intercept don t
Categorical
SE
,
ay them raject tH
-
can t remove
Backward elinination:startwithfull remove each uanti
parsinsonious model is reached
traluet - com that
tasy
corresponds
middlel . lyvcorors ut ko
iealthe
=
=
nefit model
Model selection
α= 5 %
'
easy to interpret
comparing Models
the true population slope
,
b. )
.
Y]
-
,
value
E
: observeh hypothesszed
(
4) p- value = 2 ( - T . D ㆍ STC
-
*
(tl 2 t
:
-
Ha B 4 O
23 2 3 ) tesf stafisfic
(y
ov
bslightly lomer B
Multicollinear ify explanatory variables ane strongly
corvelafed (t or 3 with each offer
4 build comrelation table if high than consilew
distribution with n zdf
hequession slopeB
-
I
-
seasiertounderstandan a vequines cess odatoaioaput
cestirmate intercept $ slope)
=
p valee < a
-
13 centered at
-
.
SSEE 또 ( y
( 3)
avoid
- 30 ]
small moadel is
=
,
( y - YJ
,
고
omas sElb ,3 follow a t
CI fow
0
-
,
.
model[ R 2
=
,
t
of b 4 similar to CLT
sampling distribution
B
to estimate
i
.
/
big
predicted walye of Y
sample estimate of Bo, 13 ,
DHo : B , = 0
T DIST ( H ( , df
,
R
s
susing b
-
sig melatiounskipbto var dand 본
simple andeconomical
model (
=
:
=
.
,
=
'
)
eeplaived part + holse
Xesmall xiy is aataset
fifted regression line f ysonservedvalueof
bo , b ,
2 [1
avoidersmaloverfitting
ymu ticollineavity
saff
293
E : raundom noise
oufcome
=
.
.
Simple linear
value
Parsimony being
chidisf ( 32 84 , 3) < 0001
=
=
;
=
)
pencentage fexpected
total e
-
Ha : B, 4 0 when all other variables ave incdudeal
0,
reje at tho
=
-
=
(b ]P -
F=
2
p value p ( x >←βcasc )
-
strong evidence
not provide
-
'
df R 1
zero
t test sindividual test
.
Hasdiffers
.
significaut
-
F test does not mean Ho istrue
-
do
that
togof
expalining Yether they
:
ex
-
means
claimed or hypothesized distribution
a
,
categorgcal
does one
:
-
-
vejestho
test does hot mean the model fits the data well :
-
=
5
comparing two mean
compaving twoproportions
Ho µ d
:
=
o
Ha MaFo
:
simple Linear Reg
inputh
asl of the value adds up
mean (tJ :
median
=ll
어
Odd
:
(s outliers im
'
average of twolt s
midladle # even :
-
poast :mea -heavilyinflmenced mealian :
Variance (Sa) :
2
faimlky constasnt
s
exymeam
=
n
tandand deviation (sJ
plot
of
=
'
s
□
2
[
)
2
Q3
| QR :
Q
b,
,
-
amealing
h
samBle proportion EpP
Y 3 = r ( y , ←)
,
ahauge n
is sensitine to change
yr
y - ErEl b ,
4 ilfercept
r by Is Mow much
G meak
turning t
$p
SE
P
=
)
ei
pratn
predicted
y - x, the sumofallresidualg
Bf
to tmean : if walue is autremk , Mext vankle of the santhe variablae
,
=
맘
, Pv
-
=
,
iEe
2
n
-
an, alr estimated Bo and b
nonmaldistribution
SB 는
II number → 2 scave
2) 2
-
2 scove
t
Ea) 2 scove
2
α/2
Ib3
percentile
→
istmie/student
wnatpernt
step 13 calc
4//l,
l있
.
=
Find
a
P (E: 7 5)
.
step 2) 2 fable
-
-
riticalvalue
PEA ≤ . 2) = β(2 ≤ 12) = 0 8849
0
.
)
btor 2 a
=
-
score
P(
s either suscess or fail
,
G MP
=
6 =
MBE
hi s
o 1
atleast90 3
p =
i
- p ,ofsucess , hnbinamcnip)
.
.
level (α= 6 65) and
-
using
estimate P
=
0 .
n .
5
7
n=
=
13 stafemall cHo ] $ alternative EHa] p 0 30
.
.
confidence lenel
L 2 scove of po = 0 3
.
-
,
assume
nr
E
.
1 a
-
-
-
,
enough
Ho and Ha ane msthallgerdusins and collestiaelay comer all possibilituy
equal sign hans
to
ho
-
1
-
conthims
thethwe populaation parameter
aidedNn
p raswe
β valme
p
NGIMAHII
t
-
:
-
:
- valee aa
sicked test : Ho : B
=
Ho : (3
=
mightrsided rest
p a Pr )
-
on
1
=
=
-
1
iEa ≤ 2 )
p (z ≤←>
7 ☆ - vabue
.I
1 -P ( 2 ≤ R 1
[
equivalenfly
:
Po
Po
Ha
:
$ 2132212Ctwo)
B # Bo
2
scare
)
153
[끝
,
asshming that
and nnknown
51 .
←
-
-
.
:
β= p
Ha : p aBo
o
za( 2 는고
actually trae
2 <
leff sided fest to
Ha Pa po
veject H . eneh
utype II ervov : fail
is astuaslyfals
Ho
though
is corract)
if P value is small enough
fail to rejest Ho ifthe P value is notsmall
Ho is the surrent belief
=
22 p
confichent that
left sided ( ha
type I epnon heject Ho enen though
thoi sconmect )
,Pasue tto
43 P vatkle Cetfreme o r momeextreme thean
conclusion: rejecttHo
.
neaning that
captuhe p and 95 % we will
get the P
→ 7 =k
2
right sided [ Ha pspo)
(
0w
to
p # 6 30
-
53
P (-
[
Ho is
,
PECV SE
'
-
-
:
33 test statistic
-
conmert to r scomh comly proviades from laft)
HyBotresis testing
Elaim muull mypothesis (tho )
significamce
using i
he are to
this so it s
ofintamest
b 2 sided
/
$
= impr
23
E$
lenll α
어
condition: atleastdif tHo istrae che
piral Po oor anccessfalinre
MB 21 O Maa
$p isnot tolose to
= up 6
a=
thwe
G hee ame estimating
6
:
3usey
9
↑
crights
2222
1
,
.
-
9=
conficendencelevel ytooe
significuncet
2SEPF
4 wh are 959
the intarval
2 576
.s
E 1 - P] m9 accnvafe
α:
.
twa sided ( Ha : BFP. ]
if you hanetarget PYoucaancalaualate
.
or
=
1 96
veject Harif :
too
,
scove =
=
-
,
verycarge
22
fon 951 confidence
2)
01
.
ME ⇒ G ↑
condifion of normal approtimation :
=
0
99 %
-
,
-
⇒ 95 % of the tima p
1
s !.
B vallke cals .
nef ofthial P=possibility of saccess
2
M : gamplesize
,
f
T
n
independent , p is sarne every trial
conanytrials
P
-
0
s whenitsat
itis
mostO
; n
o
uncertain
exhmple ? : proportion = ee
/
1
Am
의 -Λ
mmsone
asc awats β
(
inv (ala) f
teststatistics
12 s cove of β )
llllllly
//
l//
!
*
PEz ≤ 1 53
Bernoalli Trial leach triall
IME
.
.
.
1
'
Lexg
α
scomel) lo 0 k at the a tabler Zas
Bercentange
( a vy
proportion of chathaboue 1 5
=
□ 니니 e
n - 80 o ,
-
.
-
.,
size
8 P is within 2SE o8 p
Lofidence interval = β 크조∞
-
2
.
-
ex finl proportiom
Bimoslial
I norm S
.
i3 s wariontioons
et .
=
α O O5
1
PCK =+] 0 90
?
me /
percentice i sZuscohe
goth percentile
heon
eeutzcaomed
,
,
넘대
어 ≤ 30
suppose test scove . N ( 70 , ( ∞ )
ex)
, 24 .
슬야
nwlig
scome s percentile
-
-
2 - s cone s umer
nng
⇒ bigger
Isuccessofal
sample
.
ha 1 oo
?
G sawmple distribution
marginoferror za/ r
WithZSE
95 % thiswill Capfue p
4 951 confidence interval of
p
왜를
bell shaped distribution
When
and
부
i
☆( Nim☆
=
when p is unknown :
-
o
samphe
distribution
sasmpre ip
→ anewaage 인럴l 어용
I
2
na
R
=
r
rbleofthumb : sB
cescore ofe
-
=
:
EMN C1 , δ ]
4
variability
.
몸
to
좋
.
4
.
sBe
P,
[
ppecampling
= turming pspointestimate 염
into zoscore
///
/
wy mecean
will tend to be closer to the ang
b * bo t b , s s the heast neguession line goes through [t y]
=
4
)
p = population portion , P sample proportion
regression
-
nomma! >
p
)×↑= n
=
1
=
nsr 30
astimatornovmauldistribentions
it cam be not limear and quaontitativeI causation : onevariabbr calesethe otherconfidence Interva
= O3
bo y
sample size # mormal them
=
move then I wariable : correlation tabl.
Association :
=
samplesize
sp is very close to Oor 1 , lavgen
popalation proportion Cp) trhe parameter
r (k
samphe
'
popubationr normzal [t
s
s
I0
:
it doesu t changethe valwe mweh
succes/failuheComdifion: MPa 1 O and µ E ( - p3 고 10
Ass 3 linear traansformaatiom doesm 'f
aslope
choose
:
10 ppl out of 2000
=
,
,
sample size 2000
Ex)
fake
we
of time t will se within
.
⇒ U will be within I을
oftotalpopulation to be indepenaleert
Q⑪
-
Eorrelation : linean $ quantitatine ehcel func . cormel
the dinection ho units
properties - 는 w 수 I the sign fells
%
meqarloy horsmal condifion
moat
3
if
even
1
=
µ±
sM ≤
10 % .11
:
i botbir
68. 1
…
oufliev Q - . 51 QR / Q 3 + 1. 51 QR
4
4
-
data im eachsample= will closer to L (TM)
meanc← ] = le
.
not exceech 10
로
sas
bed
an
Ss: 1 . 2 , 13 , 4
fors 2 5 mone clusterea $ fight smalle와
B
2
-
smin
a
moe
wachsaumple
101 wule : if sample w 1 o eplacemmut your samplesize
$
4
:
:
of
independent (with replacement)
.
1 -2) f [
freedom
sadegmee
어
ts
-
s
meds meau ⇒ right
Ʃ (ki
y
samphe size
assumption and condition fon CLTl proportion
b skewness : median 4 mean s distributionis stkewed
med s mean leftI
os original std
6
SBCI]= he
-
αα Lleff)
stat
# practical
sig
key nemindens
does not mean tHo is
failing to hejest Ho
:
-
trle
-
bath type I ana fypeI
n
largermeducesennors
도
,
99 %
삐
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )