Slide 1

Slide 1 text

The Golem of Prague Statistical Rethinking Week 1

Slide 2

Slide 2 text

Topics Week 1 Bayesian inference Chapters 1, 2, 3 Week 2 Linear models Chapter 4 Week 3 Multivariate models Chapter 5 Week 4 Model comparison Chapter 6 Week 5 Interactions Chapter 7 Week 6 MCMC & GLMs Chapters 8, 9, 10 Week 7 GLMs II Chapters 10 & 11 Week 8 Multilevel models I Chapter 12 Week 9 Multilevel models II Chapter 13 Week 10 Measurement error etc. Chapter 14

Slide 3

Slide 3 text

JJ Harrison, “Phylidonyris novaehollandiae Bruny Island”

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

The Golem of Prague go•lem |gōlǝm| noun • (in Jewish legend) a clay figure brought to life by magic. • an automaton or robot. ORIGIN late 19th cent.: from Yiddish goylem, from Hebrew gōlem ‘shapeless mass.’

Slide 8

Slide 8 text

The Golem of Prague • How-To: (1) Get a ton of clay (2) Form into humanoid (3) Inscribe brow with emeth, “truth” (4) Give commands, very carefully

Slide 9

Slide 9 text

The Golem of Prague “Even the most perfect of Golem, risen to life to protect us, can easily change into a destructive force. Therefore let us treat carefully that which is strong, just as we bow kindly and patiently to that which is weak.” Rabbi Judah Loew ben Bezalel (1512–1609) From Breath of Bones: A Tale of the Golem

Slide 10

Slide 10 text

The Golems of Science Golem • Made of clay • Animated by “truth” • Powerful • Blind to creator’s intent • Easy to misuse • Fictional Model • Made of...silicon? • Animated by “truth” • Hopefully powerful • Blind to creator’s intent • Easy to misuse • Not even false

Slide 11

Slide 11 text

Against Tests • Specialized, pre-made golems, “procedures” • Most developed in early 20th century, fragile, eclipsed by more recent tools • Users don’t know they are using models • Falsifying null model not sufficient O, that way madness lies

Slide 12

Slide 12 text

H0 “Evolution is neutral” P0A Neutral, equilibrium MII Hypotheses Process models Statistical models Figure 1.2

Slide 13

Slide 13 text

H0 H1 “Evolution is neutral” “Selection matters” P0A Neutral, equilibrium P1B Fluctuating selection P1A Constant selection MII MIII Hypotheses Process models Statistical models Figure 1.2

Slide 14

Slide 14 text

H0 H1 “Evolution is neutral” “Selection matters” P0A Neutral, non-equilibrium P0B Neutral, equilibrium P1B Fluctuating selection P1A Constant selection MI MII MIII Hypotheses Process models Statistical models Figure 1.2

Slide 15

Slide 15 text

Failure of Falsification • Null models not unique • Should falsify explanatory model, not null model • Falsification is consensual, not logical • Falsifiability about demarcation, not method • Science is a social technology “There is even something like a methodological justification for individual scientists to be dogmatic and biased. Since the method of science is that of critical discussion, it is of great importance that the theories criticized should be tenaciously defended. For only in this way can we learn their real power.” —Karl Popper, The Myth of the Framework

Slide 16

Slide 16 text

Golem Engineering • Need a framework for developing and vetting statistical golems • Several options • We’ll use this one • Bayesian data analysis • Multilevel modeling • Model comparison and information criteria From Breath of Bones: A Tale of the Golem

Slide 17

Slide 17 text

Bayesian data analysis • Use probability to describe uncertainty • Extends propositional logic (true/false) to continuous plausibility • Computationally difficult • Markov chain Monte Carlo (MCMC) to the rescue • Used to be controversial • Ronald Fisher: Bayesian analysis “must be wholly rejected.” Pierre-Simon Laplace (1749–1827) Sir Harold Jeffreys (1891–1989) with Bertha Swirles, aka Lady Jeffreys (1903–1999)

Slide 18

Slide 18 text

Bayesian data analysis Count all the ways data can happen, according to assumptions. Assumptions with more ways to cause data are more plausible.

Slide 19

Slide 19 text

Bayesian data analysis • Contrast with frequentist view • Probability is just limiting frequency • Uncertainty arises from sampling variation • Bayesian probability much more general • Probability is in the golem, not in the world • Coins are not random, but our ignorance makes them so Saturn as Galileo saw it

Slide 20

Slide 20 text

Small Worlds and Large Worlds Statistical Rethinking (Chapter 2) Week 1

Slide 21

Slide 21 text

Colombo’s Mistake Behaim’s globe, as detailed in 1492

Slide 22

Slide 22 text

Colombo’s Mistake Behaim’s globe, as detailed in 1492

Slide 23

Slide 23 text

Small and Large Worlds • Sensu L.J. Savage (1954) • Small world: The world of the golem’s assumptions. Bayesian golems are optimal, in the small world. • Large world: The real world. No guarantee of optimality for any kind of golem. • Have to worry about both

Slide 24

Slide 24 text

Bayesian data analysis Count all the ways data can happen, according to assumptions. Assumptions with more ways to cause data are more plausible.

Slide 25

Slide 25 text

Garden of Forking Data • The future: • Full of branching paths • Each choice closes some • The data: • Many possible events • Each observation eliminates some

Slide 26

Slide 26 text

Garden of Forking Data (1) (2) (3) (4) (5) Contains 4 marbles ? Possible contents: Observe:

Slide 27

Slide 27 text

Conjecture: Data:

Slide 28

Slide 28 text

Conjecture: Data:

Slide 29

Slide 29 text

Conjecture: Data:

Slide 30

Slide 30 text

Conjecture: Data: 3 paths consistent with data

Slide 31

Slide 31 text

Garden of Forking Data (1) (2) (3) (4) (5) Possible contents: Ways to produce ? 3 ? ? ?

Slide 32

Slide 32 text

Garden of Forking Data (1) (2) (3) (4) (5) Possible contents: Ways to produce 0 3 ? ? 0

Slide 33

Slide 33 text

3 ways 9 ways 8 ways

Slide 34

Slide 34 text

3 ways 9 ways 8 ways

Slide 35

Slide 35 text

3 ways 9 ways 8 ways

Slide 36

Slide 36 text

Garden of Forking Data OE  XIJUF UIFSF BSF  QBUIT UIBU TVSWJWF WF DPOTJEFSFE ĕWF EJČFSFOU DPOKFDUVSFT BCPVU UIF DPOUFOUT PG UIF CBH F NBSCMFT UP GPVS CMVF NBSCMFT 'PS FBDI PG UIFTF DPOKFDUVSFT XFWF TFRVFODFT QBUIT UISPVHI UIF HBSEFO PG GPSLJOH EBUB DPVME QPUFOUJBMMZ EBUB  $POKFDUVSF 8BZT UP QSPEVDF < >  ×  ×  =  < >  ×  ×  =  < >  ×  ×  =  < >  ×  ×  =  < >  ×  ×  =  S PG XBZT UP QSPEVDF UIF EBUB GPS FBDI DPOKFDUVSF DBO CF DPNQVUFE VNCFS PG QBUIT JO FBDI iSJOHw PG UIF HBSEFO BOE UIFO CZ NVMUJQMZJOH ćJT JT KVTU B DPNQVUBUJPOBM EFWJDF *U UFMMT VT UIF TBNF UIJOH BT 'ĶĴ BWJOH UP ESBX UIF HBSEFO ćF GBDU UIBU OVNCFST BSF NVMUJQMJFE EVSJOH OHF UIF GBDU UIBU UIJT JT TUJMM KVTU DPVOUJOH PG MPHJDBMMZ QPTTJCMF QBUIT