版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
XIV.Bayesiannetworks
(section1-3)Autumn2012Instructor:WangXiaolongHarbinInstituteofTechnology,ShenzhenGraduateSchoolIntelligentComputationResearchCenter(HITSGSICRC)XIV.Bayesiannetworks
(sectioOutlinesSyntaxSemanticsParameterizeddistributionsOutlinesSyntaxBayesiannetworksAsimple,graphicalnotationforconditionalindependenceassertionsandhenceforcompactspecificationoffulljointdistributionsSyntax:asetofnodes,onepervariableadirected,acyclicgraph(link≈"directlyinfluences")aconditionaldistributionforeachnodegivenitsparents:P(Xi|Parents(Xi))Inthesimplestcase,conditionaldistributionrepresentedasaconditionalprobabilitytable(CPT)givingthedistributionoverXiforeachcombinationofparentvaluesBayesiannetworksAsimple,graExampleTopologyofnetworkencodesconditionalindependenceassertions:WeatherisindependentoftheothervariablesToothacheandCatchareconditionallyindependentgivenCavityExampleTopologyofnetworkencExampleI'matwork,neighborJohncallstosaymyalarmisringing,butneighborMarydoesn'tcall.Sometimesit'ssetoffbyminorearthquakes.Isthereaburglar?Variables:Burglary,Earthquake,Alarm,JohnCalls,MaryCallsNetworktopologyreflects"causal"knowledge:AburglarcansetthealarmoffAnearthquakecansetthealarmoffThealarmcancauseMarytocallThealarmcancauseJohntocallExampleI'matwork,neighborJExamplecontd.Examplecontd.CompactnessACPTforBooleanXiwithkBooleanparentshas2krowsforthecombinationsofparentvaluesEachrowrequiresonenumberpforXi=true
(thenumberforXi=falseisjust1-p)Ifeachvariablehasnomorethankparents,thecompletenetworkrequiresO(n·2k)numbersI.e.,growslinearlywithn,vs.O(2n)
forthefulljointdistributionForburglarynet,1+1+4+2+2=10numbers(vs.25-1=31)CompactnessACPTforBooleanXSemanticsThesemanticsofBayesiannetworks:Arepresentationofthejointprobabilitydistribution. (Numericalsemantics)Anencodingofacollectionofconditionalindependencestatements. (Topologicalsemantics)SemanticsThesemanticsofBayeNumericalsemanticsThefulljointdistributionisdefinedastheproductofthelocalconditionaldistributions:NumericalsemanticsThefulljoNumericalsemanticsThefulljointdistributionisdefinedastheproductofthelocalconditionaldistributions:NumericalsemanticsThefulljoTopologicalsemanticsTopologicalsemantics:Eachnodeisconditionallyindependentofitsnon-descendantsgivenitsparentsTopologicalsemanticsTopologicMarkovblanketEachnodeisconditionallyindependentofallothersgivenitsMarkovblanket:parents+children+children'sparentsTheorem:TopologicalsemanticsNumericalsemanticsMarkovblanketEachnodeisconConstructingBayesiannetworks 1.ChooseanorderingofvariablesX1,…,Xn 2.Fori=1tonaddXitothenetworkselectparentsfromX1,…,Xi-1suchthat
P(Xi|Parents(Xi))=P(Xi|X1,...Xi-1)Thischoiceofparentsguarantees:P(X1,…,Xn)=πi=1
P(Xi|X1,…,Xi-1)(chainrule)
=πi=1P(Xi|Parents(Xi))(byconstruction)nnConstructingBayesiannetworksExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?ExampleSupposewechoosetheoExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?NoP(A|J,M)=P(A|J)?
P(A|J,M)=P(A)?ExampleSupposewechoosetheoExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?NoP(A|J,M)=P(A|J)?
P(A|J,M)=P(A)?NoP(B|A,J,M)=P(B|A)?P(B|A,J,M)=P(B)?ExampleSupposewechoosetheoExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?NoP(A|J,M)=P(A|J)?
P(A|J,M)=P(A)?NoP(B|A,J,M)=P(B|A)?YesP(B|A,J,M)=P(B)?NoP(E|B,A,J,M)=P(E|A)?P(E|B,A,J,M)=P(E|A,B)?ExampleSupposewechoosetheoExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?No
P(A|J,M)=P(A|J)?
P(A|J,M)=P(A)?NoP(B|A,J,M)=P(B|A)?YesP(B|A,J,M)=P(B)?NoP(E|B,A,J,M)=P(E|A)?NoP(E|B,A,J,M)=P(E|A,B)?YesExampleSupposewechoosetheoExamplecontd.Decidingconditionalindependenceishardinnoncausaldirections(Causalmodelsandconditionalindependenceseemhardwiredforhumans!)Networkislesscompact:1+2+4+2+4=13numbersneededExamplecontd.CompactconditionaldistributionsCPTgrowsexponentiallywithnumberofparents(O(2k))CPTbecomesinfinitewithcontinuous-valuedparentorchildSolution:canonicaldistributionsthataredefinedcompactlyDeterministicnodesarethesimplestcase:CompactconditionaldistributiCompactconditionaldistributionscontd.Noisy-ORdistributionsmodelmultiplenoninteractingcauses
1)ParentsU1…Ukincludeallcauses(canaddleaknode) 2)Independentfailureprobabilityqiforeachcausealone Numberofparameterslinearinnumberofparents(O(k))CompactconditionaldistributiHybrid(discrete+continuous)networksDiscrete(Subsidy?andBuys?);continuous(HarvestandCost)
Option1:discretization——possiblylargeerrors,largeCPTs Option2:finitelyparameterizedcanonicalfamilies 1)Continuousvariable,discrete+continuousparents(e.g.,Cost) 2)Discretevariable,continuousparents(e.g.,Buys?)Hybrid(discrete+continuous)nContinuouschildvariablesNeedoneconditionaldensityfunctionforchildvariablegivencontinuousparents,foreachpossibleassignmenttodiscreteparentsMostcommonisthelinearGaussianmodel,e.g.,:MeanCostvarieslinearlywithHarvest,varianceisfixedLinearvariationisunreasonableoverthefullrange, butworksOKifthelikelyrangeofHarvestisnarrowContinuouschildvariablesNeedContinuouschildvariablesAll-continuousnetworkwithLGdistributions fulljointdistributionisamultivariateGaussianDiscrete+continuousLGnetworkisaconditionalGaussiannetworki.e.,amultivariateGaussianoverallcontinuousvariablesforeachcombinationofdiscretevariablevaluesContinuouschildvariablesDiscretevariablewithcontinuousparentsProbabilityofBuysgivenCostshouldbea“soft”threshold:ProbitdistributionusesintegralofGaussian:DiscretevariablewithcontinuWhytheprobit?1.It'ssortoftherightshape2.CanviewashardthresholdwhoselocationissubjecttonoiseWhytheprobit?1.It'ssortofDiscretevariablecontd.Sigmoid(orlogit)distributionalsousedinneuralnetworks:Sigmoidhassimilarshapetoprobitbutmuchlongertails:Discretevariablecontd.SigmoiSummaryBayesiannetworksprovideanaturalrepresentationfor(causallyinduced)conditionalindependenceTopology+CPTs=compactrepresentationofjointdistributionGenerallyeasyfordomainexpertstoconstructCanonicaldistributions(e.g.,noisy-OR)=compactrepresentationofCPTsContinuousvariablesparameterizeddistributions(e.g.,linearGaussian)SummaryBayesiannetworksproviXIV.Bayesiannetworks
(section1-3)Autumn2012Instructor:WangXiaolongHarbinInstituteofTechnology,ShenzhenGraduateSchoolIntelligentComputationResearchCenter(HITSGSICRC)XIV.Bayesiannetworks
(sectioOutlinesSyntaxSemanticsParameterizeddistributionsOutlinesSyntaxBayesiannetworksAsimple,graphicalnotationforconditionalindependenceassertionsandhenceforcompactspecificationoffulljointdistributionsSyntax:asetofnodes,onepervariableadirected,acyclicgraph(link≈"directlyinfluences")aconditionaldistributionforeachnodegivenitsparents:P(Xi|Parents(Xi))Inthesimplestcase,conditionaldistributionrepresentedasaconditionalprobabilitytable(CPT)givingthedistributionoverXiforeachcombinationofparentvaluesBayesiannetworksAsimple,graExampleTopologyofnetworkencodesconditionalindependenceassertions:WeatherisindependentoftheothervariablesToothacheandCatchareconditionallyindependentgivenCavityExampleTopologyofnetworkencExampleI'matwork,neighborJohncallstosaymyalarmisringing,butneighborMarydoesn'tcall.Sometimesit'ssetoffbyminorearthquakes.Isthereaburglar?Variables:Burglary,Earthquake,Alarm,JohnCalls,MaryCallsNetworktopologyreflects"causal"knowledge:AburglarcansetthealarmoffAnearthquakecansetthealarmoffThealarmcancauseMarytocallThealarmcancauseJohntocallExampleI'matwork,neighborJExamplecontd.Examplecontd.CompactnessACPTforBooleanXiwithkBooleanparentshas2krowsforthecombinationsofparentvaluesEachrowrequiresonenumberpforXi=true
(thenumberforXi=falseisjust1-p)Ifeachvariablehasnomorethankparents,thecompletenetworkrequiresO(n·2k)numbersI.e.,growslinearlywithn,vs.O(2n)
forthefulljointdistributionForburglarynet,1+1+4+2+2=10numbers(vs.25-1=31)CompactnessACPTforBooleanXSemanticsThesemanticsofBayesiannetworks:Arepresentationofthejointprobabilitydistribution. (Numericalsemantics)Anencodingofacollectionofconditionalindependencestatements. (Topologicalsemantics)SemanticsThesemanticsofBayeNumericalsemanticsThefulljointdistributionisdefinedastheproductofthelocalconditionaldistributions:NumericalsemanticsThefulljoNumericalsemanticsThefulljointdistributionisdefinedastheproductofthelocalconditionaldistributions:NumericalsemanticsThefulljoTopologicalsemanticsTopologicalsemantics:Eachnodeisconditionallyindependentofitsnon-descendantsgivenitsparentsTopologicalsemanticsTopologicMarkovblanketEachnodeisconditionallyindependentofallothersgivenitsMarkovblanket:parents+children+children'sparentsTheorem:TopologicalsemanticsNumericalsemanticsMarkovblanketEachnodeisconConstructingBayesiannetworks 1.ChooseanorderingofvariablesX1,…,Xn 2.Fori=1tonaddXitothenetworkselectparentsfromX1,…,Xi-1suchthat
P(Xi|Parents(Xi))=P(Xi|X1,...Xi-1)Thischoiceofparentsguarantees:P(X1,…,Xn)=πi=1
P(Xi|X1,…,Xi-1)(chainrule)
=πi=1P(Xi|Parents(Xi))(byconstruction)nnConstructingBayesiannetworksExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?ExampleSupposewechoosetheoExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?NoP(A|J,M)=P(A|J)?
P(A|J,M)=P(A)?ExampleSupposewechoosetheoExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?NoP(A|J,M)=P(A|J)?
P(A|J,M)=P(A)?NoP(B|A,J,M)=P(B|A)?P(B|A,J,M)=P(B)?ExampleSupposewechoosetheoExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?NoP(A|J,M)=P(A|J)?
P(A|J,M)=P(A)?NoP(B|A,J,M)=P(B|A)?YesP(B|A,J,M)=P(B)?NoP(E|B,A,J,M)=P(E|A)?P(E|B,A,J,M)=P(E|A,B)?ExampleSupposewechoosetheoExampleSupposewechoosetheorderingM,J,A,B,EP(J|M)=P(J)?No
P(A|J,M)=P(A|J)?
P(A|J,M)=P(A)?NoP(B|A,J,M)=P(B|A)?YesP(B|A,J,M)=P(B)?NoP(E|B,A,J,M)=P(E|A)?NoP(E|B,A,J,M)=P(E|A,B)?YesExampleSupposewechoosetheoExamplecontd.Decidingconditionalindependenceishardinnoncausaldirections(Causalmodelsandconditionalindependenceseemhardwiredforhumans!)Networkislesscompact:1+2+4+2+4=13numbersneededExamplecontd.CompactconditionaldistributionsCPTgrowsexponentiallywithnumberofparents(O(2k))CPTbecomesinfinitewithcontinuous-valuedparentorchildSolution:canonicaldistributionsthataredefinedcompactlyDeterministicnodesarethesimplestcase:CompactconditionaldistributiCompactconditionaldistributionscontd.Noisy-ORdistributionsmodelmultiplenoninteractingcauses
1)ParentsU1…Ukincludeallcauses(canaddleaknode) 2)Independentfailureprobabilityqiforeachcausealone Numberofparameterslinearinnumberofparents(O(k))CompactconditionaldistributiHybrid(discrete+continuous)networksDiscrete(Subsidy?andBuys?);continuous(HarvestandCost)
Option1:discretization——possiblylargeerrors,largeCPTs Option2:finitelyparameterizedcanonicalfamilies 1)Continuousvariable,discrete+continuousparents(e.g.,Cost) 2)Discretevariable,continuousparents(e.g.,Buys?)Hybrid(discrete+continuous)nContinuouschildvariablesNeedoneconditionaldensityfunctionforchildvariablegivencontinuousparents,foreachpossibleassignmenttodiscreteparentsMostcommonis
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度民間標(biāo)準(zhǔn)借貸合同金融科技創(chuàng)新與金融服務(wù)3篇
- 2025版跨境電商商品購銷合同擔(dān)保抵押執(zhí)行書3篇
- 2025版版權(quán)代理居間傭金合同示范文本3篇
- 2024年電動車用鋰電池供貨協(xié)議
- 2024年度大連業(yè)主支付擔(dān)保辦理優(yōu)化升級合同3篇
- 二零二五年家庭廚師服務(wù)合同范本3篇
- 二零二五年度2025版二婚離婚協(xié)議中的房產(chǎn)分配與子女安置協(xié)議
- 2025年度工藝品購銷合同樣本2篇
- 二零二五年賓館餐廳員工激勵機(jī)制承包合同2篇
- 二零二五年度個人向公司提供倉儲物流服務(wù)合同樣本2篇
- 混凝土出現(xiàn)蜂窩麻面漏筋等問題最全解決方案
- 化工總控工初級理論知識試卷(國家職業(yè)技能鑒定)
- 《鄉(xiāng)土中國》每章(1~14章)概括筆記
- 洗胃操作流程及評分標(biāo)準(zhǔn)
- 承建紅磚燒成隧道窯合同協(xié)議書范本模板
- 二年級上冊數(shù)學(xué)期中試卷
- 拌和站危險源清單及控制措施
- 沈晴霓《操作系統(tǒng)與虛擬化安全》courera課程答案總結(jié)
- 工程掛靠協(xié)議書模板
- 上海1933老場坊項(xiàng)目市場調(diào)研分析報告
- 龍門式數(shù)控火焰切割機(jī)橫向進(jìn)給系統(tǒng)的設(shè)計畢業(yè)設(shè)計
評論
0/150
提交評論