A conjugate prior is an algebraic convenience, giving a closed-form expression for the posterior; otherwise, numerical integration may be necessary. Further, conjugate priors may give intuition by more transparently showing how a likelihood function updates a prior distribution.
The form of the conjugate prior can generally be determined by inspection of the probability density or probability mass function of a distribution. For example, consider a random variable which consists of the number of successes in Bernoulli trials with unknown probability of success in [0,1]. This random variable will follow the binomial distribution, with a probability mass function of the form
The usual conjugate prior is the beta distribution with parameters (, ):
In this context, and are called hyperparameters (parameters of the prior), to distinguish them from parameters of the underlying model (here ). A typical characteristic of conjugate priors is that the dimensionality of the hyperparameters is one greater than that of the parameters of the original distribution. If all parameters are scalar values, then there will be one more hyperparameter than parameter; but this also applies to vector-valued and matrix-valued parameters. (See the general article on the exponential family, and also consider the Wishart distribution, conjugate prior of the covariance matrix of a multivariate normal distribution, for an example where a large dimensionality is involved.)
If we sample this random variable and get successes and failures, then we have
which is another Beta distribution with parameters . This posterior distribution could then be used as the prior for more samples, with the hyperparameters simply adding each extra piece of information as it comes.
Interpretations
Pseudo-observations
It is often useful to think of the hyperparameters of a conjugate prior distribution corresponding to having observed a certain number of pseudo-observations with properties specified by the parameters. For example, the values and of a beta distribution can be thought of as corresponding to successes and failures if the posterior mode is used to choose an optimal parameter setting, or successes and failures if the posterior mean is used to choose an optimal parameter setting. In general, for nearly all conjugate prior distributions, the hyperparameters can be interpreted in terms of pseudo-observations. This can help provide intuition behind the often messy update equations and help choose reasonable hyperparameters for a prior.
Dynamical system
One can think of conditioning on conjugate priors as defining a kind of (discrete time) dynamical system: from a given set of hyperparameters, incoming data updates these hyperparameters, so one can see the change in hyperparameters as a kind of "time evolution" of the system, corresponding to "learning". Starting at different points yields different flows over time. This is again analogous with the dynamical system defined by a linear operator, but note that since different samples lead to different inferences, this is not simply dependent on time but rather on data over time. For related approaches, see Recursive Bayesian estimation and Data assimilation.
Practical example
Suppose a rental car service operates in your city. Drivers can drop off and pick up cars anywhere inside the city limits. You can find and rent cars using an app.
Suppose you wish to find the probability that you can find a rental car within a short distance of your home address at any time of day.
Over three days you look at the app and find the following number of cars within a short distance of your home address:
Suppose we assume the data comes from a Poisson distribution. In that case, we can compute the maximum likelihood estimate of the parameters of the model, which is Using this maximum likelihood estimate, we can compute the probability that there will be at least one car available on a given day:
This is the Poisson distribution that is the most likely to have generated the observed data . But the data could also have come from another Poisson distribution, e.g., one with , or , etc. In fact, there is an infinite number of Poisson distributions that could have generated the observed data. With relatively few data points, we should be quite uncertain about which exact Poisson distribution generated this data. Intuitively we should instead take a weighted average of the probability of for each of those Poisson distributions, weighted by how likely they each are, given the data we've observed .
Generally, this quantity is known as the posterior predictive distribution where is a new data point, is the observed data and are the parameters of the model. Using Bayes' theorem we can expand therefore Generally, this integral is hard to compute. However, if you choose a conjugate prior distribution , a closed-form expression can be derived. This is the posterior predictive column in the tables below.
Returning to our example, if we pick the Gamma distribution as our prior distribution over the rate of the Poisson distributions, then the posterior predictive is the negative binomial distribution, as can be seen from the table below. The Gamma distribution is parameterized by two hyperparameters , which we have to choose. By looking at plots of the gamma distribution, we pick , which seems to be a reasonable prior for the average number of cars. The choice of prior hyperparameters is inherently subjective and based on prior knowledge.
Given the prior hyperparameters and we can compute the posterior hyperparameters and
Given the posterior hyperparameters, we can finally compute the posterior predictive of
This much more conservative estimate reflects the uncertainty in the model parameters, which the posterior predictive takes into account.
Table of conjugate distributions
Let n denote the number of observations. In all cases below, the data is assumed to consist of n points (which will be random vectors in the multivariate cases).
mean was estimated from observations with sample mean ; covariance matrix was estimated from observations with sample mean and with sum of pairwise deviation products
mean was estimated from observations with sample mean ; covariance matrix was estimated from observations with sample mean and with sum of pairwise deviation products
Same as for the normal distribution after applying the natural logarithm to the data for the posterior hyperparameters. Please refer to Fink (1997, pp. 21–22) to see the details.
^ abDenoted by the same symbols as the prior hyperparameters with primes added ('). For instance is denoted
^This is the posterior predictive distribution of a new data point given the observed data points, with the parameters marginalized out. Variables with primes indicate the posterior values of the parameters.
^ abcdefgThe exact interpretation of the parameters of a beta distribution in terms of number of successes and failures depends on what function is used to extract a point estimate from the distribution. The mean of a beta distribution is which corresponds to successes and failures, while the mode is which corresponds to successes and failures. Bayesians generally prefer to use the posterior mean rather than the posterior mode as a point estimate, justified by a quadratic loss function, and the use of and is more convenient mathematically, while the use of and has the advantage that a uniform prior corresponds to 0 successes and 0 failures. The same issues apply to the Dirichlet distribution.
^ abcβ is rate or inverse scale. In parameterization of gamma distribution,θ = 1/β and k = α.
^A different conjugate prior for unknown mean and variance, but with a fixed, linear relationship between them, is found in the normal variance-mean mixture, with the generalized inverse Gaussian as conjugate mixing distribution.
^Howard Raiffa and Robert Schlaifer. Applied Statistical Decision Theory. Division of Research, Graduate School of Business Administration, Harvard University, 1961.
Balls OutTheatrical release posterSutradaraAndrew DisneyProduser Russell Wayne Groves Andrew Lee David Ward Red Sanders johnny loughran Tucker Moore Bradley Jackson Ditulis olehBradley JacksonPemeran Jake Lacy Beck Bennett Jay Pharoah Nikki Reed Kate McKinnon Penata musikAlice WoodSinematograferJeffrey WaldronPenyuntingKody GibsonPerusahaanproduksiRalph Smyth EntertainmentRed ProductionsDistributorMetro-Goldwyn-MayerOrion PicturesTanggal rilis 19 April 2014 (2014-04-19) (Tribec...
1962 United States Senate election in Washington ← 1956 November 6, 1962 1968 → Nominee Warren Magnuson Richard G. Christensen Party Democratic Republican Popular vote 491,365 446,204 Percentage 52.09% 47.31% County resultsMagnuson: 50–60% 60–70% Christensen: 50–60% 60–70% U.S. senator before election Warren Magnuson Democratic Elec...
Jenis Dasar morfologi penyerbukan pada bunga Alogami atau penyerbukan silang (KBBI:alogami [1]) perkawinan silang yang terjadi saat penyerbukan berlangsung antara putik dan tepung sari dari bunga yang berbeda dalam satu jenis, allogami termasuk dioecious.[2] Alogami memerlukan perantara dalam penyerbukannya baik itu Biotik (angin atau air) dan botik (organisme). Penyerbukan oleh manusia juga merupakan contoh alogami. Lihat pula Heterosis Catatan Kaki ^ (Indonesia) Arti kata al...
Chemical compound BAY 59-3074Legal statusLegal status In general: unscheduled Identifiers IUPAC name 3-[2-Cyano-3-(trifluoromethyl)phenoxy]phenyl 4,4,4-trifluoro-1-butanesulfonic acid ester CAS Number406205-74-1 YPubChem CID10479060ChemSpider8654468 YUNII5FO5Z101GUChemical and physical dataFormulaC18H13F6NO4SMolar mass453.36 g·mol−13D model (JSmol)Interactive image SMILES FC(F)(F)CCCS(=O)(=O)Oc2cc(Oc1cccc(c1C#N)C(F)(F)F)ccc2 InChI InChI=1S/C18H13F6NO4S/c19-17(20,21)8-3-...
Grand Théâtre de Luxembourg Façade du Grand Théâtre en 2008. Données clés Type Salle de spectacles Danse contemporaine ThéâtreOpéra Lieu Luxembourg Coordonnées 49° 37′ 02″ nord, 6° 07′ 36″ est Architecte Alain Bourbonnais Inauguration 1964 Capacité Grande salle 940 placesStudio de 100 à 400 places Anciens noms Théâtre municipal de la ville de Luxembourg Direction Tom Leick-Burns (2015) modifier Le Grand Théâtre de Luxembourg (anciennem...
31st season of the J1 League Football league seasonJ1 LeagueSeason2023Dates17 February – 3 December 2023ChampionsVissel Kobe1st J1 title1st Japanese titleRelegatedYokohama FCAFC Champions League EliteVissel KobeYokohama F. MarinosAFC Champions League 2Sanfrecce HiroshimaMatches played306Goals scored777 (2.54 per match)Top goalscorerAnderson LopesYuya Osako(22 goals each)Biggest home winYokohama F. Marinos 5–0 Yokohama FC(8 April 2023)Biggest away winShonan Bellmare 0–6 Sagan Tosu(2...
Atenea (Minerva) y las Nueve Musas inspiradoras. De la palabra «musa» proviene «música». Escucha este artículo(info) Esta narración de audio fue creada a partir de una versión específica de este artículo (concretamente del 27 de septiembre de 2018) y no refleja las posibles ediciones subsiguientes.Más artículos grabados¿Problemas al reproducir este archivo? La música (del griego: μουσική [τέχνη] - mousikē [téchnē], «el arte de las musas») es, según la definici�...
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: The Montfort Academy – news · newspapers · books · scholar · JSTOR (December 2022) (Learn how and when to remove this message) Private, co-educational school in Mt. Vernon, , New York, United StatesThe Montfort AcademyAddress125 East Birch StreetMt. Vernon, (We...
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Kimi to Dance Dance Dance / My Lady Fuyu no Koibito – news · newspapers · books · scholar · JSTOR (September 2012) (Learn how and when to remove this message) 2012 single by BoyfriendKimi to Dance Dance Dance / My Lady (Fuyu no Koibito)Digital and regular ...
Argentine footballer Carlos Babington Carlos Babington at the Argentine training camp during the 1974 FIFA World CupPersonal informationFull name Carlos Alberto BabingtonDate of birth (1949-09-20) 20 September 1949 (age 74)Place of birth Buenos Aires, ArgentinaPosition(s) Attacking MidfielderSenior career*Years Team Apps (Gls)1969–1974 Huracán 190 (81)1974–1978 SG Wattenscheid 09 120 (46)1979–1982 Huracán 115 (45)1982 Tampa Bay Rowdies 20 (3)1983 Atlético Junior International ca...
Ada usul agar artikel ini digabungkan ke MNC Vision. (Diskusikan) Diusulkan sejak April 2024. Life ChannelDiluncurkan10 Februari 2010JaringanMNC ChannelsPemilikMNC Sky Vision (2010-2019)MNC Vision Networks (2019-sekarang)SloganLiving a victorious lifeNegaraIndonesiaBahasaIndonesiaInggrisKantor pusatMNC Studios, Tower II Lantai 3-5, Jl. Raya Perjuangan No.1, Kebon Jeruk, Jakarta Barat, IndonesiaSaluran seindukMNC Media:RCTIMNCTVGTViNews Media Group:iNewsMNC Channels:Muslim TVSitus webmncchanne...
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Gas sculpture – news · newspapers · books · scholar · JSTOR (December 2009) (Learn how and when to remove this message) Fog sculpture in the sculpture garden of the National Gallery of Australia in Canberra. Artist is Fujiko Nakaya (born 1933 Japan, daughter of...
المغرب العربي المغرب العربي البلد الجزائر ليبيا المغرب موريتانيا تونس المساحة 6,045,741 كيلومتر مربع عدد السكان 100 مليون نسمة اللغة اللغة العربية، اللغة الأمازيغية اللغات الإقليمية لهجات مغاربية الدارجة المنطقة الزمنية توقيت عالمي منسق +1 أكثر المدن ازدحاما ال...
State of being bewildered or unclear in one's mind about something For other uses, see Confusion (disambiguation). Puzzled redirects here. For the video game, see Puzzled (video game). Medical conditionConfusionA child confused by the cameraSpecialtyPsychiatry Part of a series onEmotions Affect Classification In animals Emotional intelligence Mood Regulation Interpersonal Dysregulation Valence Emotions Acceptance Admiration Affection Amusement Anger Angst Anguish Annoyance Anticipation Anxiet...
The first Nabis painting, by Paul Sérusier, Le Bois d'Amour à Pont-Aven or Le Talisman, 1888, minyak di atas kayu, 27 x 21,5 cm, Musée d'Orsay, Paris Les Nabis (Prancis: les nabis, pengucapan bahasa Prancis: [le nabi]) adalah sekelompok seniman muda Prancis yang aktif di Paris dari tahun 1888 hingga 1900, yang memainkan peran besar dalam transisi dari impresionisme dan seni akademis ke seni abstrak, simbolisme dan gerakan awal modernisme lainnya. Anggotanya termasuk Pierre Bonnard, Ma...
1926 film Going CrookedTheater posterDirected byGeorge MelfordWritten byAlbert S. Le VinoKeene ThompsonWilliam Counselman (intertitles)[1]Based onGoing Crooked: a Comedy in Three Acts, from a Tale of Hoffman's (Aaron's) (play)by Winchell SmithWilliam CollierAaron Hoffman[2][3][4] Produced byWilliam Fox[5]StarringBessie LoveCinematographyCharles G. Clarke[4][6]Distributed byFox Film CorporationRelease date December 12, 1926 ...
Indian dynasty who ruled parts of present-day Delhi and Haryana during 9th-12th century For the 14th-16th century dynasty, see Tomaras of Gwalior. Tomara dynastyc. 736 CE–c. 1152 CESouth Asia1000 CEKARAKHANIDKHANATEKHOTANGHAZNAVIDEMPIREMULTANEMIRATEKANNAUJPALA EMPIRENAGVANSHISKAMARUPAHINDUSHAHISKUMAONMARYULUTPA-LASGUHILASGUJARATCHUDA-SAMASHABBARIDEMIRATECHAHAMANASTOMARASMALWASHILA-HARASWESTERNCHALUKYASEASTERNCHALUKYASCHOLASKADAMBASBUNDELKHANDDAHALASOMAVAMSHISKALINGASGUGELocation...
Pour les articles homonymes, voir Rain. Cet article est une ébauche concernant une localité allemande. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Rain Armoiries Administration Pays Allemagne Land Bavière District(Regierungsbezirk) Souabe Arrondissement(Landkreis) Danube-Ries Code postal 86641 Indicatif téléphonique 09090 Immatriculation DON Démographie Population 8 503 hab. (2011) Densité 1...
Russian politician and ex-military officer (born 1943) This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (February 2013) (Learn how and when to remove this message) In this name that follows Eastern Slavic naming customs, the patronymic is Vsevolodovich and the family name is Gromov. Boris GromovБорис ГромовGromov in 2018Member of the State Duma (...