Docsity

Bayes for beginners, Tesi di laurea di Analisi Statistica

Toggle sidebar
bg1
Bayes for Beginners
Reverend Thomas Bayes (1702-61)
Stuart Rosen° and Elena Rusconi§
°Department of Phonetics and Linguistics, UCL,
§Institute of Cognitive Neuroscience, UCL
MfD
15–II-2006
)(
)()|(
)|( yp
pyp
yp
)(
)()|(
)|( yp
pyp
yp
)(
)()|(
)|( yp
pyp
yp
)(
)()|(
)|( yp
pyp
yp
)(
)()|(
)|( yp
pyp
yp
)(
)()|(
)|( yp
pyp
yp
)(
)()|(
)|( yp
pyp
yp
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Anteprima parziale del testo

Scarica Bayes for beginners e più Tesi di laurea in PDF di Analisi Statistica solo su Docsity!

Bayes for Beginners

Reverend Thomas Bayes (1702-61) Stuart Rosen° and Elena Rusconi § °Department of Phonetics and Linguistics, UCL, § Institute of Cognitive Neuroscience, UCL MfD 15–II-

p y

p y p

p y

( ) ( | ) ( ) ( | ) p y p y p p y     ( ) ( | ) ( ) ( | ) p y p y p p y     (^) ( ) ( | ) ( ) ( | ) p y p y p p y     ( ) ( | ) ( ) ( | ) p y p y p p y    

p y

p y p

p y

   

p y

p y p

p y

   

Overview of SPM Analysis

Motion Correction Smoothing Spatial Normalisation General Linear Model fMRI time-series^ Statistical Parametric Map Parameter Estimates Design matrix Anatomical Reference

Bayes and image segmentation

  • (^) Want to automatically classify regions into grey matter, white matter, CSF and non-brain tissue.
  • (^) How do we use prior information? (probabilities of each voxel being of a particular type derived from a database of 152 scans)
  • (^) Bayes!
  • (^) Want to automatically classify regions into grey matter, white matter, CSF and non-brain tissue.
  • (^) How do we use prior information? (probabilities of each voxel being of a particular type derived from a database of 152 scans)
  • (^) Bayes!

A big advantage of a Bayesian approach

  • (^) Allows a principled approach to the exploitation of all available data …
  • (^) with an emphasis on continually updating one’s models as data accumulate
  • (^) as seen in the consideration of what is learned from a positive mammogram

Bayesian Reasoning

ASSUMPTIONS

1% of women aged forty who participate in a routine screening have breast cancer 80% of women with breast cancer will get positive tests 9.6% of women without breast cancer will also get positive tests EVIDENCE A woman in this age group had a positive test in a routine screening PROBLEM What’s the probability that she has breast cancer?

Bayesian Reasoning

ASSUMPTIONS

10 out of 1000 women aged forty who participate in a routine screening have breast cancer 800 out of 1000 of women with breast cancer will get positive tests 95 out of 1000 women without breast cancer will also get positive tests PROBLEM If 1000 women in this age group undergo a routine screening, about what fraction of women with positive tests will actually have breast cancer?

Bayesian Reasoning

Before the screening: 100 women with breast cancer 9,900 women without breast cancer After the screening: A = 80 women with breast cancer and positive test B = 20 women with breast cancer and negative test C = 950 women without breast cancer and positive test D = 8,950 women without breast cancer and negative test Proportion of cancer patients with positive results, within the group of ALL patients with positive

Compact Formulation

C = cancer present, T = positive test p(A|B) = probability of A, given B, ~ = not PRIOR PROBABILITY p(C) = 1% CONDITIONAL PROBABILITIES p(T|C) = 80% p(T|~C) = 9.6% POSTERIOR PROBABILITY (or REVISED PROBABILITY) p(C|T) =?

PRIORS

Bayesian Reasoning

Prior Probabilities: 100/10,000 = 1/100 = 1% = p(C) 9,900/10,000 = 99/100 = 99% = p(~C) Conditional Probabilities: A = 80/10,000 = (80/100)(1/100) = p(T|C)p(C) = 0. B = 20/10,000 = (20/100)(1/100) = p(~T|C)p(C) = 0. C = 950/10,000 = (9.6/100)(99/100) = p(T|~C)p(~C) = 0. D = 8,950/10,000 = (90.4/100)*(99/100) = p(~T|~C) *p(~C) =

Rate of cancer patients with positive results, within the group of ALL patients with positive results: A/(A+C) = 0.008/(0.008+0.095) = 0.008/0.103 = 0.078 =

-----> Bayes’ theorem

p(T|C)*p(C)

p(C|T) = ______________________

P(T|C)*p(C) + p(T|

~C)*p(~C)

A A + C

-----> Bayes’ theorem

p(X|A)*p(A)

p(A|X) = ______________________

P(X|A)*p(A) + p(X|

~A)*p(~A)

Given some phenomenon A that we want to investigate, and an observation X that is evidence about A, we can update the original probability of A, given the new evidence

It relates the conditional density of a parameter (posterior probability) with its unconditional density (prior, since depends on information present before the experiment). The likelihood is the probability of the data given the parameter and represents the data now available. Bayes’ Theorem for a given parameter  p (data) = p (data) p () / p (data) 1/P (data) is basically a normalizing constant Posterior  likelihood x prior The prior is the probability of the parameter and represents what was thought before seeing the data. The posterior represents what is thought given both prior information and the data just seen.

Activations in fMRI….

  • (^) Classical
    • (^) ‘What is the likelihood of getting these data given no activation occurred?’
  • (^) Bayesian option (SPM2)
  • (^) ‘What is the chance of getting these parameters, given these data?

What use is Bayes in deciding what brain regions are active in a particular study?

  • (^) Problems with classical frequentist approach
    • (^) All inferences relate to disproving the null hypothesis
    • (^) Never fully reject H 0 , only say that the effect you see is unlikely to occur by chance
    • (^) Corrections for multiple comparisons
      • (^) significance depends on the number of contrasts you look at
    • (^) Very small effects can be declared significant with enough data
  • (^) Bayesian Inference offers a solution through Posterior Probability Maps (PPMs)