Dummy

Baysig quick tour: Probability distributions

This is the second document in a quick tour of the Baysig programming language, following on from Baysig quick tour: Fundamentals.

Baysig has one elementary probability distribution built-in (unit) and many more defined in its library. We can plot the histogram approximately corresponding to the probability density functions for each distribution.

0.6863375636018667 0.07157375129674881 0.07886900125976395 0.9338227149410692 0.6252125961764745 0.6354705925647799 0.9417226267842861 0.9535279073644262 0.5482537531173447 0.7939965177313416 0.745645713467534 0.5860619551004055 0.7307192691906167 0.9906162382081655 0.7563813086031893 0.4692143491630476 0.6114112431210026 0.42031310671482075 0.9008714563448148 0.4003203663510085 0.8641277812104969 0.06899509627115799 0.7333550294240366 0.25241924176281766 0.5728690977145148 0.9199494817107798 0.9857741030831295 0.5701942247269196 0.5545377269281395 0.1321182016125224 0.9441949229091859 0.052761419222867444 0.37123292367235594 0.9733328446683783 0.9069879555392517 0.37114115650093676 0.36154145685991773 0.23274482466111537 0.9739525073612929 0.9189844867025931 0.707580604755222 0.4586829581434566 0.7003149282420787 0.9776542463753499 0.03587037139476053 0.0016115477778044407 0.4299705304275198 0.36238648238647414 0.8968663867322882 0.5192522710466879 0.7181244245074048 0.05817524973726255 0.06985571702706062 0.46184777409346955 0.7902801350667794 0.9446413284038755 0.17898052306356385 0.801340410206779 0.5881186778629475 0.008307246726077806 0.13877510538761856 0.5217661293041348 0.47845291660131256 0.7252394016192386 0.2933252992325754 0.23464235715443324 0.8792396648505795 0.31922651555371157 0.9849492856266324 0.831473227783915 0.056317525928913974 0.4710818800309398 0.8048012966301296 0.672862016054071 0.23802465834608877 0.6478277579061286 0.06729130401911478 0.3034742133001504 0.5726098368346249 0.9768395831288862 0.17409677388474737 0.6498050027642877 0.455874315569148 0.4946821405307115 0.11410262391765197 0.9079140196339959 0.507508756943864 0.06748620468831766 0.7925357424636688 0.7656629045413953 0.04445023183814488 0.8908919789574323 0.7977772848209779 0.2767002366661793 0.19707161635092266 0.18841267008995932 0.9479898186279437 0.41491013518881753 0.6327431475819888 0.9042814548370153 0.5932033589559615 0.9577969219437328 0.17834491845647454 0.06956261467876905 0.4538709480440875 0.4314120021721842 0.12713941306042006 0.9117420112974342 0.6407976880764583 0.6230124821008678 0.18706335876767136 0.6947732420393203 0.7572565576427748 0.4323543450870445 0.27306222153666015 0.1387182297508042 0.6848825425107224 0.11469555369454798 0.19532251106466225 0.19576710094599217 0.13525133140740248 0.7489409965344102 0.4653046548984257 0.5753431035148313 0.9367638043912043 0.10808875949776003 0.25545331003504185 0.8266335962867908 0.2575121920689736 0.3995129352899997 0.17641288022892848 0.6247224764955981 0.8935497072277474 0.20600744481338362 0.21177348522743525 0.8877835590131077 0.02668213379259271 0.5143316221689647 0.09862829723829131 0.19857316515375234 0.8880129696074903 0.9586534208987498 0.6240212329719265 0.9620550267775672 0.6030905890751376 0.9736263526076512 0.15297918863431065 0.5618781388182841 0.711043436944262 0.7161899471460352 0.06665134943710904 0.02815007931276925 0.5263082255903417 0.5399846980674157 0.5247054818376679 0.5863009173391156 0.6295884995790172 0.45124781701044364 0.8893480002622465 0.02844131249665313 0.6183224787512613 0.18582111531538448 0.8111354386925547 0.9319970554048188 0.2208684876609753 0.10880024896673864 0.5699495483585516 0.7628839229612807 0.8377830914309674 0.831411736978081 0.4146402879652195 0.7937845489461405 0.17275314106902878 0.6022499642805779 0.05393939094011192 0.055067851686633154 0.43815977439241477 0.24317838140837345 0.02972417162492037 0.9990759445352191 0.6969542653991269 0.28536283254748274 0.7963774331836909 0.5258360750800548 0.017181063074893567 0.4376731879165566 0.1253687455610765 0.7464068561667593 0.7192140344342249 0.533120913788006 0.166981757890196 0.7690551971944644 0.3127727830579441 0.3189410621577271 0.4987384312550394 0.24798934051021684 0.5097414356446223 0.8623411217383903 0.5492421606437401 0.37398336207819716 0.328090326005614 0.48184029256967836 0.7343338257014598 0.8489844859226106 0.9296669736340798 0.8713705388063961 0.8717455847355876 0.404383377731867 0.0478160940222014 0.8147817998693282 0.04326718487852886 0.23262156039304602 0.5850111468660205 0.573928424523661 0.9013454813746142 0.7793640375089282 0.4227028925490339 0.9461901679044101 0.29336887232339215 0.9414508098134423 0.13823464073665315 0.4701278718351684 0.9709059940583319 0.7930179389177398 0.16434031286377931 0.1554615516577525 0.6185659606984272 0.195885618030067 0.19081444786647672 0.34292308249113224 0.9030893773080524 0.17133149299103104 0.3327889832045857 0.8360363235315392 0.05709827157135547 0.6830202133122413 0.689344729224533 0.21042178878803314 0.2879144105333636 0.44931160343096394 0.6985615214096759 0.03854803765158822 0.8087305249200972 0.025495338725274274 0.9265413000077338 0.48053564677958743 0.8958107691481269 0.6914820565589429 0.5872029290970422 0.5389006600107301 0.7470320376444217 0.1309234882078421 0.16114922546808358 0.6361908604475183 0.951558354765074 0.08627282853384335 0.28513174208000575 0.7396499430154566 0.7990578491704208 0.7772103051601933 0.2470920989865186 0.4493259900364387 0.8996532910735471 0.5564731435283258 0.4337692736726648 0.25858422817163734 0.5754686530156686 0.829069818563077 0.70824215740623 0.9755988931226541 0.1994238454381525 0.18528119641944793 0.6729784548918201 0.2754266258039108 0.5912352652734227 0.41251770765812085 0.39950539739790963 0.6145438250653781 0.9950041237741253 0.03246162809256036 0.664436408706111 0.4124044490541342 0.5967678331296816 0.6648172246443148 0.4425305618072233 0.7937825233195402 0.8388270639904838 0.9121415924541982 0.2277169230458599 0.28669149621545603 0.8923051904170554 0.9906759054843979 0.12319134760722317 0.7655770291494152 0.29541236611441996 0.8448096050053857 0.27303624671721743 0.7388168072185518 0.39777965876222116 0.4928008107218893 0.46411254291052756 0.31892387553093116 0.6928466841794659 0.08897481092460799 0.5088658245533858 0.15972348818549037 0.017718249703226205 0.43623028635890926 0.8364233881785589 0.11448652230074781 0.6577530942526071 0.5672670937067054 0.9288650571668672 0.821504068519339 0.3120839363690661 0.25744344858858814 0.05240988010829545 0.8593844514944089 0.11534675259966094 0.27131101355685644 0.7129556498753269 0.5162878675657063 0.4558594139422894 0.022684687986663704 0.6526493319898493 0.8862925134334463 0.340252838176734 0.6209961789709041 0.036075457706133705 0.22922264300967163 0.8777398098906828 0.13088183480568272 0.17515374887156154 0.8274275380716257 0.36644055749439647 0.3290531184359112 0.11915101951899729 0.9114219154956336 0.7675672890077269 0.428459568281765 0.9660385320815348 0.4672254045650422 0.612121852490148 0.8337049062442279 0.8216905085886108 0.8647994675824417 0.19520334950536566 0.8612119669237202 0.2427084111242342 0.17021631965651557 0.14014618544377064 0.65411082623855 0.41242345758071713 0.015233245216131501 0.686633647346551 0.6644267941975097 0.819252392235038 0.04390126514339383 0.4895182630255628 0.054392892414329784 0.5249084223818287 0.08328973992804292 0.39666662630547456 0.03900497128232498 0.6851253823109729 0.9751496380137162 0.10781842239848767 0.022538997936653673 0.9656552909793461 0.8616906832581597 0.4602589713084183 0.04393402697610064 0.9448478871362396 0.08953687085060795 0.8024140304891425 0.18256250680018274 0.2691110803906599 0.7863827652266209 0.49632975051559736 0.8427105156804227 0.13676905425655866 0.10881597108878567 0.45104416866112595 0.9151725163485791 0.6805653394387489 0.3596684491167936 0.17985057509035118 0.45367835728770084 0.6126905918616546 0.4904617000116179 0.48798532329685645 0.19804596207059127 0.7834352412688163 0.5691042278355696 0.5826402864378505 0.2355350244873052 0.6533748236609098 0.11618379948571879 0.28024019144481055 0.08391331580558636 0.6392575920650869 0.10010131683668617 0.7880962567376197 0.7585015042588351 0.5531139330829293 0.48454111336836153 0.6205573067116917 0.9871665423240434 0.22183339302936414 0.22150588692666634 0.08449853842251434 0.653990543599704 0.9796518527389625 0.4726993207523365 0.2045983844913073 0.42156630042511184 0.24310423206610238 0.6129543338001133 0.43987229243849224 0.6052562584181447 0.46114139362730583 0.11800902991509275 0.8757809544624251 0.2750409320637213 0.3472381924156189 0.3957854954981677 0.7263581004753611 0.7909650727619801 0.9448189025150656 0.4944476223304979 0.6637716143540506 0.8135059340422754 0.04464838422011779 0.5917574459667684 0.8725705134851324 0.6038394148004799 0.8083993873578494 0.22091672015863395 0.5048265551460969 0.8416642348379046 0.0503419849673151 0.669582086538333 0.5980588203757207 0.7428437691980143 0.17119792317300986 0.05829936290585887 0.5146937080460353 0.9037324390149983 0.1434243566224874 0.9598185166157359 0.33594688315315796 0.994231045943273 0.9111262352464549 0.6085507330970258 0.2411825003198307 0.9702630992909574 0.2875848720519768 0.24512246443077979 0.2802318663523141 0.7827351453673875 0.9653098909103568 0.7496382553944453 0.1689422896990884 0.6614936610361314 0.13540188738503536 0.2566560751890429 0.048164641728663034 0.13185517818943018 0.5777008537151155 0.9529170370551099 0.6551361129747555 0.5157623064042447 0.9646770632743549 0.9787205951238798 0.3920863965507798 0.7334211607774304 0.6843584882291869 0.7943052080912295 0.5864860370258069 0.8318353318217758 0.22870462998484833 0.6287487749077261 0.9760636456720679 0.8685405668496482 0.8922418020414752 0.253728410055332 0.8342630075836235 0.840827466184466 0.24515377386593115 0.26467408758231303 0.12428108791920382 0.6730376357848378 0.5746385791745592 0.8865076638493937 0.5285834936724472 0.9492918960632039 0.10763574044863594 0.28798036144300837 0.655919924763944 0.17863519237810635 0.9260916029862342 0.78357966309031 0.5992489004505912 0.7257081509394823 0.6545907430477884 0.5039304631072866 0.3753445566108787 0.7342495945594855 0.16358091686004328 0.7328253080446332 0.5733970654135098 0.6278804029868638 0.05657940009994884 0.9546444169140058 0.8250111934787154 0.9415668228039441 0.8876608912571475 0.1774611147533779 0.6900676704687224 0.3480455976324262 0.5021992792613337 0.2490830168242294 0.24098017188743226 0.8111676596596762 0.4640471670925727 0.626578101801355 0.4049361584253926 0.1458385228518952 0.8596110371545914 0.06182150031948031 0.1819598097777832 0.08189508181109444 0.929670335010083 0.061579165063234784 0.9485606308906713 0.03158361535323402 0.6989815595324574 0.8279040520610065 0.9890505268678652 0.01980105136050867 0.32328491106705853 0.9464595226911966 0.3449717225378779 0.5151635078981434 0.5213473242524423 0.038019467154056644 0.8897948621049977 0.11330722414732614 0.34791886022964463 0.9430782373396396 0.179626490729774 0.34515575723376957 0.16493541192378278 0.9812775354323158 0.10852155697264745 0.2388043040965694 0.7367741374151721 0.48336572304446385 0.8233365320654904 0.0910582654390154 0.3204749716260645 0.8978263993975302 0.1861063328539269 0.8307718382754298 0.717750159026531 0.08799639136716639 0.9474700030282769 0.5369294589704204 0.4459158211122071 0.6803165151924632 0.010294670241487834 0.8766898286707443 0.14685590196094847 0.40016776286069483 0.9388366411297667 0.16375259663065722 0.16805042982288879 0.4311438969874624 0.3351497860474395 0.5036146101783063 0.5345005226634677 0.6938006574506407 0.5500781136914338 0.01928435219900784 0.9114063971003998 0.32743640042083255 0.32879896423052973 0.9524008480255494 0.6713814243374815 0.018931327392098338 0.6977049812436348 0.9345074114237231 0.8178552016191779 0.022059602668057104 0.6869238376819817 0.5123157413937887 0.6333531207948349 0.7584832691956506 0.18189432126979677 0.71108893112072 0.3383551983484894 0.8530537655700589 0.5567394973609455 0.4584426338454808 0.42003985993099396 0.381315921522052 0.904513869412363 0.5629176892253844 0.7745656747777401 0.16639223815090773 0.6791118198724259 0.37837751381527107 0.0034606442794810617 0.5879564803531292 0.9505703211646923 0.6486045875699735 0.9888384363122374 0.3