Assume that x is distributed according to a normal distribution with unknown mean and precision .
and that the prior distribution on and , , has a normal-gamma distribution
for which the density π satisfies
Suppose
i.e. the components of are conditionally independent given and the conditional distribution of each of them given is normal with expected value and variance The posterior distribution of and given this dataset can be analytically determined by Bayes' theorem[4] explicitly,
where is the likelihood of the parameters given the data.
Since the data are i.i.d, the likelihood of the entire dataset is equal to the product of the likelihoods of the individual data samples:
This expression can be simplified as follows:
where , the mean of the data samples, and , the sample variance.
The posterior distribution of the parameters is proportional to the prior times the likelihood.
The final exponential term is simplified by completing the square.
On inserting this back into the expression above,
This final expression is in exactly the same form as a Normal-Gamma distribution, i.e.,
Interpretation of parameters
The interpretation of parameters in terms of pseudo-observations is as follows:
The new mean takes a weighted average of the old pseudo-mean and the observed mean, weighted by the number of associated (pseudo-)observations.
The precision was estimated from pseudo-observations (i.e. possibly a different number of pseudo-observations, to allow the variance of the mean and precision to be controlled separately) with sample mean and sample variance (i.e. with sum of squared deviations).
The posterior updates the number of pseudo-observations () simply by adding the corresponding number of new observations ().
The new sum of squared deviations is computed by adding the previous respective sums of squared deviations. However, a third "interaction term" is needed because the two sets of squared deviations were computed with respect to different means, and hence the sum of the two underestimates the actual total squared deviation.
As a consequence, if one has a prior mean of from samples and a prior precision of from samples, the prior distribution over and is
and after observing samples with mean and variance , the posterior probability is
Note that in some programming languages, such as Matlab, the gamma distribution is implemented with the inverse definition of , so the fourth argument of the Normal-Gamma distribution is .
Generating normal-gamma random variates
Generation of random variates is straightforward:
Sample from a gamma distribution with parameters and
Sample from a normal distribution with mean and variance
Dearden et al. "Bayesian Q-learning", Proceedings of the Fifteenth National Conference on Artificial Intelligence (AAAI-98), July 26–30, 1998, Madison, Wisconsin, USA.
2009 World Weightlifting ChampionshipsMenWomen56 kg48 kg62 kg53 kg69 kg58 kg77 kg63 kg85 kg69 kg94 kg75 kg105 kg+75 kg+105 kgvte Main article: 2009 World Weightlifting Championships The men's competition in the heavyweight (– 105 kg) division was staged on November 29, 2009. Schedule Date Time Event 29 November 2009 09:00 Group B 13:00 Group A Medalists Event Gold Silver Bronze Snatch Marcin Dołęga (POL) 195 kg Kim Hwa-seung (KOR) 182 kg Roman Konstant...
Mark Regevמארק רגבDuta Besar Israel untuk Britania RayaMasa jabatanApril 2016 – Agustus 2020PresidenReuven RivlinPerdana MenteriBenjamin NetanyahuPendahuluDaniel TaubPenggantiTzipi Hotovely Informasi pribadiLahirMark Freiberg1960 (umur 62–63)Melbourne, Victoria, AustraliaKewarganegaraanIsraelSuami/istriVered RegevAnak3PendidikanMount Scopus Memorial CollegeAlma materUniversitas Melbourne Universitas Ibrani Yerusalem Universitas BostonPekerjaanDiplomat dan pegawai ...
2009 studio album by Imogen HeapEllipseStudio album by Imogen HeapReleased24 August 2009[1]RecordedMarch 2007 – June 2009GenreElectronicaambientLength48:43LabelMegaphonicRCAEpicSony BMGProducerImogen HeapImogen Heap chronology Speak For Yourself(2005) Ellipse(2009) Sparks(2014) Singles from Ellipse First Train HomeReleased: 14 July 2009 Ellipse is the third studio album from British singer-songwriter Imogen Heap. After returning from a round the world writing trip, Heap comp...
Albums of the musical The musical Hadestown, written by American singer-songwriter Anaïs Mitchell and based on her 2010 studio album of the same name, has had two official cast recordings. In addition, various songs from Hadestown were re-recorded by Mitchell for her 2014 studio album Xoa, including the musical's opening number Anyway the Wind Blows which had not appeared on the original concept album. The song Why We Build the Wall has been covered by a variety of artists, including English...
Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Januari 2023. Ada usul agar artikel ini digabungkan dengan Farida Sjuman. (Diskusikan) Farida FeisolLahir07 Juli 1939 (umur 84)Warga negaraIndonesiaPekerjaanSenimanSuami/istriSjumandjadja(1973). Feisol HashemOrang tuaOetoyo (ayah) Farida Faisol (lahir di solo, ...
هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى المقالات المتعلقة بها الموجودة في النص الحالي. (مارس 2023) حول المسألة اليهودية (بالألمانية: Zur Judenfrage) المؤلف كارل ماركس اللغة ا...
Town in Western AustraliaSandstoneWestern AustraliaEmpire Day celebrations in Hack Street, 1909SandstoneCoordinates27°59′17″S 119°17′46″E / 27.98806°S 119.29611°E / -27.98806; 119.29611Population109 (SAL 2021)[1]Established1906[2]Postcode(s)6639Elevation533 m (1,749 ft)Area32,606.5 km2 (12,589.4 sq mi)Location 661 km (411 mi) N of Perth 157 km (98 mi) E of Mount Magnet 196 km (122 mi) W ...
Oak Hill Wood meadow with Oak Hill Park in the distance Oak Hill Wood is a 10-hectare Local Nature Reserve (LNR)[1][2] and a Site of Borough Importance for Nature Conservation Grade I, in East Barnet, London.[3][4] It is owned by the London Borough of Barnet, and part of it is a 5.5-hectare nature reserve managed by the London Wildlife Trust.[1][5] It is an ancient woodland, dominated by pedunculate oak, hornbeam and ash. A shrub layer includes ...
Сагайдачний — термін, який має кілька значень. Ця сторінка значень містить посилання на статті про кожне з них.Якщо ви потрапили сюди за внутрішнім посиланням, будь ласка, поверніться та виправте його так, щоб воно вказувало безпосередньо на потрібну статтю.@ пошук посил...
American television series The ChosenGenreHistorical dramaCreated byDallas JenkinsBased onThe life of JesusWritten byTyler ThompsonDallas JenkinsRyan SwansonDirected byDallas JenkinsStarringShahar IsaacJonathan RoumieElizabeth TabishParas PatelNoah JamesGeorge H. XanthisMusic byMatthew S. NelsonDan HaseltineCountry of originUnited StatesNo. of seasons3No. of episodes26 (list of episodes)ProductionExecutive producersDerral EvesMatthew FaraciDallas JenkinsRyan SwansonTyler ThompsonBrad PeloProd...
Xi Psi PhiΞΨΦFoundedFebruary 8, 1889; 134 years ago (February 8, 1889)University of Michigan School of DentistryTypeProfessionalAffiliationPFA (former)EmphasisDentalScopeInternationalMottoHospitality is the life of friendshipColors Lavender and CreamFlowerRed RosePublicationXi Psi Phi QuarterlyChapters19HeadquartersXi Psi Phi160 South Bellwood Drive, Suite ZEast Alton, IL 29407 USAWebsiteOfficial website[1][2] Xi Psi Phi International Dental Frater...
British TV series or programme Two Thousand Acres of SkyTwo Thousand Acres of Sky complete series cover.GenreComedy/Drama/RomanceDeveloped byBBC Drama GroupZenith EntertainmentStarringMichelle CollinsPaul KayeJohn StraitonCountry of originUnited KingdomOriginal languageEnglishNo. of series3No. of episodes22ProductionRunning time48 minutes (series 1)60 minutes (series 2–3)Original releaseNetworkBBC OneRelease1 January 2001 (2001-01-01) –21 February 2003 (2003-02-21)Rela...
Brian Turner Tom LawrenceLahir9 November 1873Bewdley, WorcestershireMeninggal7 June 1949 (aged 75)Nakuru, KenyaDikebumikanNakuru CrematoriumPengabdian Britania RayaDinas/cabang British ArmyPangkatLetnan-kolonelKesatuan17th Lancers18th Royal HussarsPerang/pertempuranPerang Dunia IIPerang Dunia IPenghargaanSalib VictoriaKing Faisal War Medal (Irak)Pekerjaan lainEventing competitor for Great Britain in the 1912 Summer OlympicsBrian Turner Tom Lawrence, VC [1] (9 November 1873 &...
The Forest of Dean Coalfield, underlying the Forest of Dean, in west Gloucestershire, is one of the smaller coalfields in the British Isles, although intensive mining during the 19th and 20th centuries has had enormous influence on the landscape, history, culture, and economy of the area. For hundreds of years, mining in the Forest of Dean Coalfield has been regulated through a system of freemining, in which individuals who qualify are granted leases to mine specified areas, known as gales. T...
Aleksander Zarzycki Aleksander Zarzycki (26 February 1834 in Lwów (Lemberg), Austria-Hungary (now Lviv, Ukraine) – 1 November 1895 in Warsaw) was a Polish pianist, composer and conductor. Author of piano and violin compositions, mazurkas, polonaises, krakowiaks, and songs. In 1871 he co-founded and became the first director of the Warsaw Music Society (Warszawskie Towarzystwo Muzyczne). In the years 1879–1888 director of the Warsaw Music Institute (Insytut Muzyczny w Warszawie). His Gran...
16th-century English soldier For other people with the same name, see John Norris (disambiguation). 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. (June 2010) (Learn how and when to remove this template message) Sir John Norreys. Oil on panel by an unknown author of the English school (1600 – 1629). Sir John Norris, or Norreys (ca. 1547 – 3 September 1597...
MBII redirects here. For other uses, see List of post-nominal letters (United Kingdom). 2003 video gameMovie BattlesDeveloper(s)Movie Battles TeamSeriesStar Wars: Jedi KnightEngineid Tech 3Platform(s)Mac OS, Microsoft Windows, LinuxReleaseInitial: 2003; 20 years ago (2003)[1] Latest Version: v1.9.1 (Jan. 2022)Genre(s)First-person shooterthird-person shooterhack and slashMode(s)Multiplayer Movie Battles II (MBII) is a team-based multiplayer mod for the 2003 third and ...
American statistician Leonard Porter AyresBorn(1879-09-15)September 15, 1879Niantic, Connecticut[1]DiedOctober 29, 1946(1946-10-29) (aged 67)Cleveland, Ohio[1]Place of burialArlington National Cemetery[1]Allegiance United States of AmericaService/branch United States ArmyRank Brigadier GeneralCommands heldChief of Statistics ServiceBattles/warsWorld War IWorld War IIAwardsDistinguished Service MedalAlma materBoston University (PhD) Leonard Porter Ayres (Septe...
Yardang di Texas Yardang adalah bukit yang berbaris-baris.[1] Bukit ini terletak di daerah kering yang memiliki curah hujan tahunan kurang dari 100 inci (daerah Arida).[1] Bukit ini terjadi karena abrasi angin.[1] Batuan yang berada di daerah gurun terkikis sehingga menjadi seperti gunung dan memiliki permukaan yang beralur. Alur tersebut pada dasarnya sejajar dengan arah angin yang bertiup. Yardang yang berbentuk ramping biasanya tiga sampai empat kali lebih tinggi da...