basics of bayesian formalism - caltech astronomygeorge/aybi199/mahabal_bayes.pdf · 2011-05-12 ·...

69
Basics of Bayesian Formalism Ashish Mahabal (PQ, CSS, JPL collabs) Ay/Bi 199 Caltech, 12 May 2011

Upload: others

Post on 20-Apr-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

BasicsofBayesianFormalism

AshishMahabal(PQ,CSS,JPLcollabs)

Ay/Bi199Caltech,12May2011

Page 2: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

AdvantagesofBayesianNetworks

•  Handlingofincompletedata– Real‐worldcases

•  LearningcausalconnecNons– Whatvariablecausedwhat

•  IncorporaNngdomainknowledge– Expertscanweightinatdifferentpoints

•  Memorizing(akaoverfiVng)avoided– Noholdoutnecessary

Page 3: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

•  TueMay17MoghaddamBayesianMethods

NonparametricBayesandGaussianProcesses

Page 4: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

AmbiNousOutline

•  BasicastronomyclassificaNontrivia•  TimeandplaceforBayesiantechniques

•  Basicconceptsrelatedtobelief•  Logicandprobabilitytheory•  Theinversionformula

•  ApplicaNontoastronomy

Page 5: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

AstronomicalClassificaNonandtheNmedomain

•  Movingobjects(asteroids,TNOs,KBOs)•  SNe(cosmologicalstandardcandles,endpointsofstellar

evoluNon)

•  GRBorphana^erglows(constrainingbeamingmodels)

•  Variablestars(stellarastrophysics,galacNcstructure)•  AGN(QSOs,fuellingmechanisms,lifeNmes)•  Blazars,CosmicRays,…

Rapidfollow‐upkeystounderstanding

Page 6: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various
Page 7: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

TowardsAutomatedEventClassificaNon

Eventparameters:m1(t),m2(t),…α,δ,µ,…imageshape…

colors lightcurves

etc.

ExpertandMLgeneratedpriors

contextualinformaNon

EventClassifica<on

Engine

P(SNIa)=…P(SNII)=…P(AGN)=…P(CV)=…P(dM)=…

….

AnecessityforlargesynopNcsurveys

ClassificaNonprobabiliNes(evolving,iterated)

Page 8: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

BasicastronomyclassificaNontriviaColors

•  MagnitudeasbasicobservaNon(flux)•  ColorasfluxraNo•  Color‐colordiagramasadiagnosNc

•  Ambiguity

Page 9: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various
Page 10: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various
Page 11: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

BasicastronomyclassificaNontrivia

•  AdachprobabiliNesthroughpriorstovariousclassesanddeterminewhatclassanewlylookedatobjectbelongsto

•  BayesiantechniquesallowustodothisinaraNonalmannerevenwhensomeofthedataisuncertainormissing

Page 12: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

TowardsAutomatedEventClassificaNon

Eventparameters:m1(t),m2(t),…α,δ,µ,…imageshape…

colors lightcurves

etc.

ExpertandMLgeneratedpriors

contextualinformaNon

EventClassifica<on

Engine

P(SNIa)=…P(SNII)=…P(AGN)=…P(CV)=…P(dM)=…

….

AnecessityforlargesynopNcsurveys

ClassificaNonprobabiliNes(evolving,iterated)

Page 13: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Bayesiantechniques

•  Bayesianmethodsprovideaformalismforreasoningaboutpar<albeliefsundercondi<onsofuncertainty

Beliefisgoingtobeacrucialword

A:Worldwillendin2012p(A|K)beliefaboutAgivenabodyofknowledgeK.OJenwriKensimplyasp(A).

Page 14: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

•  p(NOTA)beliefthatAwillnothappen•  WhenKchanges,p(A)andp(NOTA)changeaccordingly

•  Ingeneral:•  0≤p(A)≤1•  p(sureproposiNon)=1•  p(AorB)=p(A)+p(B)whenAandBaremutuallyexclusive

Page 15: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

•  p(A)+p(NOTA)=1•  p(A)=p(A,B)+p(A,NOTB)– p(A,B)==p(AandB)Ingeneral:– ForBi=B1,B2,B3,…Bnmutuallyexclusivep(A)=Σp(A,Bi)=p(A,B1)+p(A,B2)+..+p(A,Bn)

Wewillrevisittheselater.Catchword:Belief

Page 16: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Anexample

•  A:outcomeof2diceisequal•  B1:2nddieis1•  B2..B6:2nddieis2..6•  Bi=B1..B6formaparNNon(areexhausNve)

•  p(A)=Σp(A,Bi)=p(A,B1)+..+p(A,B6) =1/36+..+1/36

=1/6

Page 17: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Aboutbelief

•  RuleshaveexcepNons•  IgnoringexcepNonsleadstouncertainty•  IfweconsiderallexcepNons,wemaynotbeabletoproceed

•  MiddlewayistosummarizeexcepNons

That’swhereBayesformalismleadsusto

Page 18: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Anexample

SupposeIhaveabirdWhatcanbesaidaboutitsabilitytofly?

Birdsfly.SothebirdunderquesNonshouldbeabletofly

Page 19: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Anexample

SupposeIhaveabirdWhatcanbesaidaboutitsabilitytofly?Birdsfly.SothebirdunderquesNonshouldbeabletofly

•  Whatifit’sapenguin?•  Dead?•  Withwingscut?•  Madeofpaper?

Summary:Mostbirdscanfly.NeedtomakeitquanNtaNve

Page 20: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Logicalapproach?

•  Assignnumericalvaluestouncertaintyandcombinethemliketruthvalues

•  ButsourcesofuncertaintyarenotindependentanditisnoteasytoevaluateeffectofaddiNonalevidencee.g.inthelastexample,ifwearetoldthatthesaidbirdhasexistedfor1year,howdowetakethatintoconsideraNon?

Page 21: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Whatisp(B|A)?

•  Not“GivenA,theprobabilitythatBistrue”ThatistrueonlyifBdoesnot(also)dependonanythingelse.Becauseifweknewotherthings,maybetheprobabilitywillbedifferent.

Ifof10000species10can’tfly,then:p(cantfly|bird)=1/1000(blanketstatement)Thatdoesnotindicateifweknowanythingelse(here,e.g.thatthebirdhasexistedfor1year).

Verifica<onofirrelevancyiscrucial

Page 22: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

•  Rule:Whatgoesupmustcomedown– A:foocomesdown

– B:foogoesup– P(A|B)=1

Page 23: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

•  Rule:Whatgoesupmustcomedown– A:foocomesdown

– B:foogoesup– P(A|B)=1Isthatreallytrue?

Whatifupwardvelocity>escapevelocity?Wheredidescapevelocitycomefrom?Escapevelocitywasalwaysthere

Page 24: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

IntenNonalv.extensional

•  TheserulebasedsystemsarecomputaNonallyconvenient,butsemanNcallyinconvenient.

•  TheoppositeistrueofBayesformalism:itsdeclaraNveandmodelbased

A

B

1‐m

n

mP(B|A)=m=>Inallworldsthatsa<sfyA,thosealsosa<sfyingBareafrac<onm

Page 25: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

ParNNonedCondiNonalsandMarginals

Page 26: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Abitmoreaboutlogicalsystems

•  A:Thegrassiswet•  B:ItrainedAgivescredibilitytoB.Inarulebasedsystem,thatweightincreasesirrevocably.

If,later,C:Thesprinklerwason,

AndD:Theneighbor’sgrassisdry

ItisdifficulttoconnectAandC

Page 27: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

• Itrained

B

• Sprinklerson

C

• Neighbor’ssprinklersoff

E

• Wetgrass

A

• Neighbor’sgrassdry

D

Ifanything,CbecomeslesscredibleonceweknowAtobetrue

Page 28: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Chaining?

•  Logic:IfAthenBandifBthenC=>ifAthenC•  Inplausiblereasoning,itcanleadtoproblems:–  Ifthegroundiswet,thenitrained–  Ifthesprinklersareon,thegrassiswetDoesthatmean:ifsprinklersareon,itrained?

Ifanything,ittakesawaysupportforsuchasuggesNon.

Page 29: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Asystemofrulesproducescoherentupdatesifandonlyifrulesformadirectedtreei.e.notworulesmaystemfromthesamepremise.WetgrassherepointstotwopossibleexplanaNons.

Itrained

Grassiswet

Sprinklerson

Page 30: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Whynetworks?

Tomakep(B|A)meaningful,wehavetoshow: OtheritemsinknowledgebaseareirrelevanttoB

 BedersNll,makeunignorablequicklyidenNfiableandaccessible

Neighboringnodesinagraphallowthat.Whatisnotlocaldoesnotmader!

Page 31: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

NetworksarealsousedinAIetc.butBNhaveclearsemanNcs.Mostfeaturescanbederivedfromtheknowledgebase.

Theseplaycentralroleinuncertaintyformalisms  BN  causalnets  influencediagrams  Constraintnetworks

Page 32: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Moreimportantterms

•  Likelihood:inblackjackthelikelihoodofgeVng10ishigher(becauseitcanbe10,J,QorK)

•  CondiNoning:P(A|C)=p(A,C)/p(C)

Belief

CondiNoningbar

Knowledge/context

P(fly(a)|bird(a))=HIGHP(fly(a)|bird(a),sick(a))=LOW (non‐zero!)

(retracNonpossible)

P(fl|bird)=α*p(fl|bird,sick)+(1‐α)*p(fly(bird,NOTsick) 0<α<1

• Relevance:potenNalchangeinbeliefduetochangeinknowledge

Page 33: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

•  CausaNon:

rain

sprinkler

Wetpavement

Bananapeel

Fallduetoslipping

Oncefallingisobserveditsirrelevantwhythepavementwaswet

Page 34: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Casestudy:collegeplans(Heckerman,1995,MSR‐TR‐95‐06)

•  Sex(SEX:M,F)

•  SocioeconomicStatus(SES:L,M,U,H)•  IQ(IQ:L,M,U,H)

•  Parentalencouragement(PE:L,H)•  Collegeplans:(CP:Y,N)

Page 35: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Hiddenvariable

Page 36: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

UsingthetermsjustexplainedwecanuseprobabilityfordescribingqualitaNvephenomena.

Onecanseeifrefinements,extensionsarepossible.Ifitisbasedontheory,wecanunderstandexactlywhatadjustmentsneedtobemade.

Page 37: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Theinversionformula

p(H|e)=p(e|H)*p(H)/p(e)Posterior=likelihood*prior/normalizingconstant

p(e)=p(e|H)*p(H)+p(e|NOTH)*p(NOTH)

Theformulaseemstocomefrom:

p(A|B)=p(A,B)/p(B)andp(B|A)=p(A,B)/p(A)

Page 38: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Assesingp(H|e)

Inagamblingroomsomeonecalls12Isitfromapairofdice,orfromarouledewheel?

Page 39: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

•  Fordice:p(e|H)=p(12|dice)=1/36•  Forroulede:p(e|H)=p(12|roulede)=1/38

Thusiftherearemorethan38/36rouledewheelsintheroom,p(roulede)ismorelikely

Talkingaboutp(roulede|12)wouldhavebeenmuchmoredifficult.

Page 40: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

3prisonerproblem

1prisoner.3doors.2leadtodeath,1toescape.S/Heisaskedtochooseone.Oncehehasindicatedhischoice,oneoftheotherdoorsisindicatedtobeleadingtodeath.Heisgivenachancetoswitchtothethirddoor.Shouldhe?

Page 41: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Whatifthereare1000doors(999leadingtodeath)?Shouldheswitch?

Page 42: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

TheBayesiantwist

OfthreeprisonersA,B,Conlyoneisgoingtobehangedandtheothertwopardoned.

Asaystoguard:Givethisledertooneofthepardonedones.

Anhourlater,Aaskstheguard:tellmewhodidyougiveitto?

Theguardanswers“B”.Areasons:SoeitherCwillbehanged,orIwillbe.Prob.ThatIwillbeis50%.Isheright?

Page 43: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

p(G_A|I_B)=p(I_B|G_A)*p(G_A)/p(I_B) =1*(1/3)/(2/3)=½

So,applyingBayesianlogicincorrectlyleadstofalseresults.TheerrorhereismisinterpreNngthecontext.

Ratherthan:I_B=Bwillbereleased,I’_B=GuardsaidBwillbereleased.p(G_A|I’_B)=p(I’_B|G_A)*p(G_A)/p(I’_B)=(1/2)*(1/3)/(1/2)=1/3

Page 44: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Caseof1000?

•  1000prisonersofwhich1istobeputtodeath•  Afindsalistof998tobereleasedwithouthisnameonit

•  Whatshouldourbeliefbethathewillbetheonebeingputtodeath?

Page 45: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Caseof1000?

•  Listof998tobereleased•  Queryassociatedwiththeprintout:998righthanders

•  Aisle^‐handed•  ??Difficulttotreatsuchignoranceingeneral.

Page 46: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

•  MulNvaluedhypothesis•  Uncertainevidence•  Virtual(intangible)evidence•  PredicNngfutureevents•  MulNplecauses,explainingaway

•  Padernsofplausiblereasoning•  …

Page 47: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

NaïveBayes

•  x:featurevectorofeventparameters•  y:objectclassthatgivesrisetox(1<y<k)•  Certainfeaturesofxknown:

–  PosiNon–  Fluxatobservedwavelength

•  Otherswillbeunknown–  Color–  Changeinmag/fluxoverNmebaselines

Page 48: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

NaïveBayes(contd.)

•  AssumpNon:basedony,xisdecomposableintoBdisNnctindependentclasses(labeledxb)

•  Thishelpswiththecurseofdimensionality•  Alsoallowsustodealwithmissingvalues•  Alternateparallelsupplementalsupervised

classificaNon–  AutomatedNeuralNetworks(ANN)–  SupportVectorMachines(SVM)

Page 49: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various
Page 50: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Follow‐up(formissingvalues)

•  Suchthatitwillhelpdiscriminatebeder•  ServeprobabiliNessothatconsumerscanchoosetheirtypesoftransients

•  Widestpossiblemodels

Page 51: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Choosingfollow‐upconfigs

r‐icolor,hi‐zquasar,bluestar

Page 52: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

TransientclassificaNonmantra

•  Obtainacoupleofepochsinoneormorefilters

•  AssignsprobabiliNesfordifferentclasses•  ChooseobservaNons(filters,wavelengths)forbestdiscriminaNon

•  FeedthenewobservaNonsbackin•  ReviseprobabiliNes,chooseobservaNons,…•  Basedonconfirmedclass(how?)revisepriors

Page 53: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Summary

•  Modelingisallimportant(topredict/explore/explain)

•  Localdependencies,irrelevanciestobeevaluated

•  Priors,likelihoodstobeobtained•  DirectedAcyclicGraphtobeconstructed•  Datadefinenetwork•  No“training”necessary

Page 54: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

BayesianNetworkToolboxhdp://bnt.googlecode.com

Page 55: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

ABayesianNetwork

Cloudy

Rain Sprinkler

Wet

Page 56: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

CreaNngaDAG

Page 57: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

MulNvaluednodes

Page 58: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Makingthebnet

Page 59: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Namingparameters

Page 60: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

CondiNonalprobabilitydistribuNon

Page 61: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

Enteringevidence

Page 62: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

TheCatalinaRealNmeTransientSurvey

Catalina Survey Fast Transient (a flare star), 02 Nov 2007 UT:

4 individual exposures, separated by 10 min Baseline coadd:

CRTS is a search for transients being done at Caltech piggybacking on the data from the search for near-Earth, potentially hazardous asteroids (this later is led by S. Larson, E. Beshore, et al. at UAz LPL). The survey uses the 24-inch Schmidt on Mt. Bigellow, and a single, unfiltered 4kx4k CCD (and also telescopes at Mt. Lemmon and Siding Spring). Coverage of well over 1000 deg2/night

Page 63: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various
Page 64: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various
Page 65: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

BasicastronomyclassificaNontriviacontextbasedinformaNon

•  GalacNclaNtude–GalacNcness•  Proximitytoagalaxy–SN

Page 66: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various
Page 67: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

CV,SN,Blazars,Rest

‐4‐>4(10binseach)

spectra lightcurves

Page 68: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

•  N=5•  Dag=zeroes(N,N)•  C=1;g=2;c1=3;c2=4;c3=5;•  Dag(c,[g,c1,c2,c3])=1•  Discrete_nodes(1:N)•  Node_sizes=[4,10,10,10,10]•  Bnet=mk_bnet(dag,node_sizes,names,{’class’,’galacNc_laNtude’,’g‐r’,’r‐i’,’i‐z’},’discrete’,1:5)

Page 69: Basics of Bayesian Formalism - Caltech Astronomygeorge/aybi199/Mahabal_Bayes.pdf · 2011-05-12 · Basic astronomy classificaon trivia • Aach probabilies through priors to various

AdvantagesofBayesianNetworks

•  Handlingofincompletedata– Real‐worldcases

•  LearningcausalconnecNons– Whatvariablecausedwhat

•  IncorporaNngdomainknowledge– Expertscanweightinatdifferentpoints

•  Memorizing(akaoverfiVng)avoided– Noholdoutnecessary