PMRslides 01
PMRslides 01
— Introduction —
Michael Gutmann
impairment
detected (y=1)
0.8
0.2
no impairment
detected (y=0)
impairment
detected (y=1)
0.9
5
no impairment
detected (y=0)
I People of the same group do not have the same test results
I Test outcome is subject to variability
I The data are noisy
I Variability leads to uncertainty
I Positive test ≡ true positive ?
I Positive test ≡ false positive ?
I What can we safely conclude from a positive test result?
I How should we analyse such kind of ambiguous data?
With impairment
p(x=1)
Without impairment
p(x=0)
I Reality:
I properties/characteristics of the group of people like the
patient
I properties/characteristics of the test
I Probabilistic model:
I P(x = 1)
I P(y = 1|x = 1) or P(y = 0|x = 1)
P(y = 1|x = 0) or P(y = 0|x = 0)
Fully specified by three numbers.
I A probabilistic model is an abstraction of reality that uses
probability theory to quantify the chance of uncertain events.
With impairment
p(x=1)
Without impairment
p(x=0)
Michael Gutmann PMR Introduction 12 / 23
If we tested the whole population
Fraction of people who are impaired and have positive tests:
P(x = 1, y = 1) = P(y = 1|x = 1)P(x = 1) = 4/45 (product rule)
With impairment
p(x=1)
Without impairment
p(x=0)
Michael Gutmann PMR Introduction 13 / 23
If we tested the whole population
Fraction of people who are not impaired but have positive tests:
P(x = 0, y = 1) = P(y = 1|x = 0)P(x = 0) = 2/45 (product rule)
With impairment
p(x=1)
Without impairment
p(x=0)
Michael Gutmann PMR Introduction 14 / 23
If we tested the whole population
Fraction of people where the test is positive:
P(y = 1) = P(x = 1, y = 1) + P(x = 0, y = 1) = 6/45 (sum rule)
With impairment
p(x=1)
Without impairment
p(x=0)
Michael Gutmann PMR Introduction 15 / 23
Putting everything together
p(x, y) = p(x|y)p(y)
= p(y|x)p(x)
I Probabilistic modelling:
I Identify the quantities that relate to the aspects of reality that
you wish to capture with your model.
I Consider them to be random variables, e.g. x, y, z, with a joint
pdf (pmf) p(x, y, z).
I Probabilistic reasoning:
I Assume you know that y ∈ E (measurement, evidence)
I Probabilistic reasoning about x then consists in computing
p(x|y ∈ E)
Assume that all variables are discrete valued, that E = {yo }, and
that we know p(x, y, z). We would like to know p(x|yo ).
p(x,yo )
I Product rule: p(x|yo ) = p(yo )
P
I Sum rule: p(x, yo ) = z p(x, yo , z)
P P
I Sum rule: p(yo ) = x p(x, yo ) = x,z p(x, yo , z)
I Result: P
z p(x, yo , z)
p(x|yo ) = P
x,z p(x, yo , z)
P
p(x,yo ,z)
p(x|yo ) = P z p(x,y ,z)
o
x,z