24 BMEN E4110 Lecture8
24 BMEN E4110 Lecture8
24 BMEN E4110 Lecture8
Left-handed Right-handed
two subclasses
Population data Xn = 0
Xn = 1
• N = total datapoints in the population
• M = number of in population 1
• N-M = number in population 2
Left-handed Right-handed
Analysis of proportions: Summary statistics for population data
Population data
Xn = 0
Xn = 1
Loading…
•
•
N = total datapoints in the population
M = number of in population 1
• N-M = number in population 2
Left-handed Right-handed
Analysis of proportions: Summary statistics for population data
Population data
Xn = 0
Ex. 1
Left-handed Right-handed
Analysis of proportions: Summary statistics for population data
Ex. 2
P =
O=
200 ts
poin 100 Loch
N 100 • N = total datapoints in the population
For :GS • M = number of in population 1
• N-M = number in population 2
Left-handed Right-handed
Analysis of proportions: Summary statistics for population data
Ex. 3
Left-handed Right-handed
scan change p to
highestpossiblenumbe
a
Analysis of proportions: Summary statistics for population data
Xn = 0
G
=
Xn = 1 Xn = 0
Xn = 1 Xn = 1 Xn = 0
ex3 Loading…
Highest variability
(equal chance of left-handed and right-handed)
I
No variability No variability
(no uncertainty) (no uncertainty)
ex1p
Hypothesis testing for proportions
• Now that we understand how to use an analysis of proportions to learn about Claire’s data
(e.g., proportions of left-handed vs right-handed patients our BCI experiment)
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
Left-handed Right-handed
Hypothesis testing for proportions
• Now that we understand how to use an analysis of proportions to learn about Claire’s data
(e.g., proportions of left-handed vs right-handed patients our BCI experiment)
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
• Now that we understand how to use an analysis of proportions to learn about Claire’s data
(e.g., proportions of left-handed vs right-handed patients our BCI experiment)
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
Left-handed Right-handed
Hypothesis testing for proportions
• Now that we understand how to use an analysis of proportions to learn about Claire’s data
(e.g., proportions of left-handed vs right-handed patients our BCI experiment)
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
• Now that we understand how to use an analysis of proportions to learn about Claire’s data
(e.g., proportions of left-handed vs right-handed patients our BCI experiment)
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
Improved Same
-
E datu
must inchoe another colleges
Hypothesis testing for proportions
• Now that we understand how to use an analysis of proportions to learn about Claire’s data
(e.g., proportions of left-handed vs right-handed patients our BCI experiment)
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
Improved Same
Hypothesis testing for proportions
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
How should Sandra plan data collection for this new experiment?
Sandra’s sample data
Left-handed data Right-handed data
(n = 100) (n = 100)
plan
data
collection
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
How should Sandra plan data collection for this new experiment?
Sandra’s sample data
Left-handed data Right-handed data
(n = 100) (n = 100)
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
• H0: pleft-handed = pright-handed
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
• H0: pL = pR
thesame.
& ask isproportion improvence
of
Sandra’s sample data
Left-handed data Right-handed data
(n = 100) (n = 100)
sound
Hypothesis testing for proportions: Case study 2 (USA)
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
• H0: pL = pR
• Sandra: Do left-handed patients experience a greater chance of improvement with our BCI
system?
• H0: pL = pR
• Is the difference in the Sandra’s Thailand sample big enough to infer a difference in the
underlying population?
• Is the difference in the Sandra’s Thailand sample big enough to infer a difference in the
underlying population?
• Two tests we can use:
• Z-test
• Chi-squared test
• Is the difference in the Sandra’s Thailand sample big enough to infer a difference in the
underlying population?
• Two tests we can use:
• Z-test
• Chi-squared test
• H0: pL = pR us
results are
similar
Case study 2 (Thailand): Z-test
• H0: pL = pR
Loading…
I t
• Compute z-value: pp
a
Case study 2 (Thailand): Z-test
• H0: pL = pR
• Compute z-value:
Case study 2 (Thailand): Z-test
• H0: pL = pR
• Compute z-value:
Sample-wide
proportion
Case study 2 (Thailand): Z-test
• H0: pL = pR
Sample-wide
proportion
Case study 2 (Thailand): Z-test
Sample-wide
proportion
t-distribution
d
dage
Frieden
impacts
distribute
wikipedia.org
normal distribution
z-distribution is a t-distribution with infinite degrees of freedom
wikipedia.org
Case study 2 (Thailand): Z-test
Sample-wide
proportion
we can locker critical z value
Case study 2 (Thailand): Z-test
Sample-wide
proportion
z-distribution is a t-distribution with infinite degrees of freedom
no night,
magdipt
as
nat
z-distribution is a t-distribution with infinite degrees of freedom
z-distribution is a t-distribution with infinite degrees of freedom
X = 0 . OS
8
-
improve Sam a
to
800 694100
all 21 179 200
all 26 174 200
= = 0 11
.
-= = 02
.
n= = 0 10 .
Pr = 0. = 0
:impo
Zu
=
2 . 94
Y
all
Case study 2 (Thailand): Z-test
• H0: pL = pR
Sample-wide
proportion
,CT Ho
when 2Zorit
• How extreme are Sandra’s samples?: What’s the chance of observing the computed z-value?
z-distribution is a t-distribution with infinite degrees of freedom
z-value = 2.94
p = 0.003
*
exact p-value
can get
to put it together
z-distribution is a t-distribution with infinite degrees of freedom
z-value = 2.94
p = 0.003
z-value = 2.94
p = 0.003
h
C =
002
100
-
·
200
&
174
13
Case study 2 (Thailand): Z-test
Sample-wide
proportion
• H0: Handedness and BCI-induced improvement are independent.
• This means there is no association between handedness and BCI-induced improvement.
The proportion of patients experiencing improvement (‘improved’) or no improvement
(‘same’) is the same for both left-handed and right-handed groups.
Any observed differences (e.g., more left-handed patients showing improvement) are due
to random chance.
• In other words, H0: The distribution of BCI-induced improvement is the same for left-handed
and right-handed patients
DF = (r-1) x (c-1)
findcrit of Chi-still
DF = (r-1) x (c-1)
z-value = 2.94
p = 0.003
p = 0.003
Overview