Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 in data …uncertainty and complexity in models and.

Similar presentations


Presentation on theme: "1 in data …uncertainty and complexity in models and."— Presentation transcript:

1 1 in data …uncertainty and complexity in models and

2 2 What do I mean by structure? The key idea is conditional independence: x and z are conditionally independent given y if p(x,z|y) = p(x|y)p(z|y) … implying, for example, that p(x|y,z) = p(x|y) CI turns out to be a remarkably powerful and pervasive idea in probability and statistics

3 3 How to represent this structure? The idea of graphical modelling: we draw graphs in which nodes represent variables, connected by lines and arrows representing relationships We separate logical (the graph) and quantitative (the assumed distributions) aspects of the model

4 4 Regression Graphical models Contingency tables Spatial statistics Sufficiency Markov chains Covariance selection Statistical physics Genetics AI

5 5 Graphical modelling [1] Assuming structure to do probability calculations Inferring structure to make substantive conclusions Structure in model building Inference about latent variables

6 6 Basic DAG in general: for example:

7 7 A natural DAG from genetics ABAO OO

8 8 A natural DAG from genetics ABAO OO AOABAO

9 9 DNA forensics example (thanks to Julia Mortera) A blood stain is found at a crime scene A body is found somewhere else! There is a suspect DNA profiles on all three - crime scene sample is a ‘mixed trace’: is it a mix of the victim and the suspect?

10 10 DNA forensics in Hugin Disaggregate problem in terms of paternal and maternal genes of both victim and suspect. Assume Hardy-Weinberg equilibrium We have profiles on 8 STR markers - treated as independent (linkage equilibrium)

11 11 DNA forensics The data: 2 of 8 markers show more than 2 alleles at crime scene  mixture of 2 or more people

12 12 DNA forensics in Hugin

13 13 DNA forensics Population gene frequencies for D7S820 (used as ‘prior’ on ‘founder’ nodes):

14 14

15 15 DNA forensics Results (suspect+victim vs. unknown+victim):

16 16 Graphical modelling [2] Assuming structure to do probability calculations Inferring structure to make substantive conclusions Structure in model building Inference about latent variables

17 17 Conditional independence graph draw an (undirected) edge between variables  and  if they are not conditionally independent given all other variables   

18 18 Infant mortality example Data on infant mortality from 2 clinics, by level of ante-natal care (Bishop, Biometrics, 1969) :

19 19 Infant mortality example Same data broken down also by clinic:

20 20 Analysis of deviance Resid Resid Df Deviance Df Dev P(>|Chi|) NULL 7 1066.43 Clinic 1 80.06 6 986.36 3.625e-19 Ante 1 7.06 5 979.30 0.01 Survival 1 767.82 4 211.48 5.355e-169 Clinic:Ante 1 193.65 3 17.83 5.068e-44 Clinic:Survival 1 17.75 2 0.08 2.524e-05 Ante:Survival 1 0.04 1 0.04 0.84 Clinic:Ante:Survival 1 0.04 0 1.007e-12 0.84

21 21 Infant mortality example ante clinic survival survival and clinic are dependent and ante and clinic are dependent but survival and ante are CI given clinic

22 22 Prognostic factors for coronary heart disease strenuous physical work? family history of CHD? strenuous mental work? blood pressure > 140? smoking? ratio of  and  lipoproteins >3? Analysis of a 2 6 contingency table (Edwards & Havranek, Biometrika, 1985)

23 23 Graphical modelling [3] Assuming structure to do probability calculations Inferring structure to make substantive conclusions Structure in model building Inference about latent variables

24 24 Modelling with undirected graphs Directed acyclic graphs are a natural representation of the way we usually specify a statistical model - directionally: disease  symptom past  future parameters  data ….. However, sometimes (e.g. spatial models) there is no natural direction

25 25 Scottish lip cancer data The rates of lip cancer in 56 counties in Scotland have been analysed by Clayton and Kaldor (1987) and Breslow and Clayton (1993) (the analysis here is based on the example in the WinBugs manual)

26 26 Scottish lip cancer data (2) The data include a covariate measuring the percentage of the population engaged in agriculture, fishing, or forestry, and the "position'' of each county expressed as a list of adjacent counties. the observed and expected cases (expected numbers based on the population and its age and sex distribution in the county),

27 27 Scottish lip cancer data (3) CountyObsExpxSMR Adjacent casescases(% in counties agric.) 191.416652.2 5,9,11,19 2398.716450.3 7,10.................. 5601.8100.0 18,24,30,33,45,55

28 28 Model for lip cancer data (1) Graph observed counts random spatial effects covariate regression coefficient relative risks

29 29 Model for lip cancer data Data: Link function: Random spatial effects: Priors: (2) Distributions

30 30 WinBugs for lip cancer data Bugs and WinBugs are systems for estimating the posterior distribution in a Bayesian model by simulation, using MCMC Data analytic techniques can be used to summarise (marginal) posteriors for parameters of interest

31 31 WinBugs for lip cancer data Dynamic traces for some parameters:

32 32 WinBugs for lip cancer data Posterior densities for some parameters:

33 33 Graphical modelling [4] Assuming structure to do probability calculations Inferring structure to make substantive conclusions Structure in model building Inference about latent variables

34 34 Latent variable problems variable unknownvariable known edges known value set known value set unknown edges unknown

35 35 Hidden Markov models z0z0 z1z1 z2z2 z3z3 z4z4 y1y1 y2y2 y3y3 y4y4 e.g. Hidden Markov chain observed hidden

36 36 relative risk parameters Hidden Markov models Richardson & Green (2000) used a hidden Markov random field model for disease mapping observed incidence expected incidence hidden MRF

37 37 Larynx cancer in females in France SMRs

38 38 Latent variable problems variable unknownvariable known edges known value set knownvalue set unknown edges unknown

39 39 Ion channel model choice Hodgson and Green, Proc Roy Soc Lond A, 1999

40 40 Example hidden continuous time models O2O2 O1O1 C1C1 C2C2 O1O1 O2O2 C1C1 C2C2 C3C3

41 41 Ion channel model DAG levels & variances model indicator transition rates hidden state data binary signal

42 42 levels & variances model indicator transition rates hidden state data binary signal O1O1 O2O2 C1C1 C2C2 C3C3 * * * * * * * * * * *

43 43 Posterior model probabilities O1O1 C1C1 O2O2 O1O1 C1C1 O2O2 O1O1 C1C1 C2C2 O1O1 C1C1 C2C2.41.12.36.10

44 44 ‘Alarm’ network Learning a Bayesian network, for an ICU ventilator management system, from 10000 cases on 37 variables (Spirtes & Meek, 1995)

45 45 Latent variable problems variable unknown variable known edges known value set knownvalue set unknown edges unknown

46 46 Wisconsin students college plans sessex pe iq cp 10,318 high school seniors (Sewell & Shah, 1968, and many authors since) 5 categorical variables: sex (2) socioeconomic status (4) IQ (4) parental encouragement (2) college plans (2)

47 47 sessex pe iq cp 5 categorical variables: sex (2) socioeconomic status (4) IQ (4) parental encouragement (2) college plans (2) (Vastly) most probable graph according to an exact Bayesian analysis by Heckerman (1999)

48 48 decompos h sessex pe iq cp Heckerman’s most probable graph with one hidden variable


Download ppt "1 in data …uncertainty and complexity in models and."

Similar presentations


Ads by Google