Top Banner
Paired data Gather 100 rats and deter- mine whether they are in- fected with viruses A and B. I-B NI-B I-A 9 9 18 NI-A 20 62 82 29 71 100 Underlying probabilities B 0 1 A 0 p 00 p 01 p 0+ 1 p 10 p 11 p 1+ p +0 p +1 1 −→ Is the rate of infection of virus A the same as that of virus B? In other words: Is p 1+ = p +1 ? Equivalently, is p 10 = p 01 ?
12

ata - Johns Hopkins Bloomberg School of Public Health

Jan 06, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ata - Johns Hopkins Bloomberg School of Public Health

Paired data

Gather 100 rats and deter-mine whether they are in-fected with viruses A and B.

I-B NI-BI-A 9 9 18

NI-A 20 62 8229 71 100

Underlying probabilities

B0 1

A 0 p00 p01 p0+1 p10 p11 p1+

p+0 p+1 1

−→ Is the rate of infection of virus A the same as that of virus B?

In other words: Is p1+ = p+1? Equivalently, is p10 = p01?

Page 2: ata - Johns Hopkins Bloomberg School of Public Health

McNemar’s test

H0: p01 = p10

Under H0, e.g. if p01 = p10, the expected counts for cells 01 and10 are both equal to (n01 + n10)/2.

The χ2 test statistic reduces to X2 = (n01 − n10)2n01 + n10

For large sample sizes, this statistic has null distribution that isapproximately a χ2(df = 1).

For the example: X2 = (20 – 9)2 / 29 = 4.17 −→ P = 4.1%.

Page 3: ata - Johns Hopkins Bloomberg School of Public Health

An exact test

Condition on n01 + n10.

Under H0, n01 | n01 + n10 ∼ Binomial(n01 + n10, 1/2).

In R, use the function binom.test.

−→ For the example, P = 6.1%.

Page 4: ata - Johns Hopkins Bloomberg School of Public Health

Paired data

Paired data

I-B NI-BI-A 9 9 18

NI-A 20 62 8229 71 100

→ P = 6.1%

Unpaired data

I NIA 18 82 100B 29 71 100

47 153 200

→ P = 9.5%

−→ Taking appropriate account of the “pairing” is important!

Page 5: ata - Johns Hopkins Bloomberg School of Public Health

Deviations from Random Coil Behaviour

Are there site-specific deviations from random coil dimensions?

Forster Resonance Energy Transfer enables us to measure the distance betweentwo dye molecules within a certain range. This can be used to study site-specificdeviations from random coil dimensions in highly denatured peptides.

Page 6: ata - Johns Hopkins Bloomberg School of Public Health

Deviations from Random Coil Behaviour

0 200 400 600 800 1000

0

20

40

60

80

time

num

ber o

f pho

tons

0 10 20 30 40 50

0

5

10

15

20

25

30

time

num

ber o

f pho

tons

Page 7: ata - Johns Hopkins Bloomberg School of Public Health

Deviations from Random Coil Behaviour

0 20 40 60 80

0

50

100

150

200

number of red photons

num

ber o

f gre

en g

reen

We have two underlying distributions forthe green and red photons:

One stemming from a peptide onlyhaving a donor dye.

One stemming from a peptide beingproperly tagged with a donor and anacceptor dye.

Assume a photon has probability of be-ing red in the former situation, and inthe latter.

Page 8: ata - Johns Hopkins Bloomberg School of Public Health

Deviations from Random Coil Behaviour

0.0 0.2 0.4 0.6 0.8 1.0nred

nred + ngreen

Page 9: ata - Johns Hopkins Bloomberg School of Public Health

Deviations from Random Coil Behaviour

Assume we observe photons at time point . Then the number of red photonsis simply Bernoulli( ), where is either or . Assume that the probabilityof observing photons from a peptide without an acceptor dye at any time is ,independent of the total number of photons observed. Let be the number of redphotons. Then

and hence

Page 10: ata - Johns Hopkins Bloomberg School of Public Health

Deviations from Random Coil Behaviour

50 60 70 80 90 100

0

20

40

60

80

total number of photons

num

ber o

f red

pho

tons

Page 11: ata - Johns Hopkins Bloomberg School of Public Health

Deviations from Random Coil Behaviour

50 60 70 80 90 100

0

20

40

60

80

total number of photons

num

ber o

f red

pho

tons

Page 12: ata - Johns Hopkins Bloomberg School of Public Health

Deviations from Random Coil Behaviour

0.0 0.2 0.4 0.6 0.8 1.0nred

nred + ngreen

p1 = 0.431