One simple algorithm is importance sampling from the prior. Draw independently from and assign weight . Then
estimates the Bayesian model evidence, and the normalized weights represent the posterior. A weighted histogram or kernel density estimation of the estimates the marginal ; discarding performs the marginalization.
The Markov factorization is
Differentiating its log-likelihood with respect to gives
Its coefficients sum to one, so it is unbiased. Direct covariance calculation, equivalently inversion of its Fisher information, gives
Thus the variance tends to as , because the observations become perfectly correlated, and to as , because they become three independent draws.
As , . Therefore the posterior predictive mean tends to and its variance tends to : a sufficiently distant observation has reverted to the stationary prior distribution.
Put and retain , which equals one for the stated exponential covariance function. The covariance matrix of is
Conditioning a multivariate normal distribution and simplifying gives
The absence of from both conditional moments shows that and are conditionally independent given . Equivalently, the exponential-kernel Gaussian process is the stationary Ornstein-Uhlenbeck process, which is Markov.
The marginal predictor density is
Gaussian conditional expectation gives
Integrating this conditional distribution through the response model yields
When , , , and . Hence
where
The approximate maximum-likelihood estimators are
Take flat priors on and scale priors on the positive variances. The posterior distribution is then
A random-walk Metropolis–Hastings algorithm can update with a symmetric proposal and accept a proposed state from with probability , including the Jacobian if the target is represented in transformed coordinates. Its transition kernel satisfies
which is detailed balance; hence the posterior is stationary.
First integrate out : conditional on , with . Since is an affine transformation of independent normal variables, it is bivariate normal with mean
and covariance
Its determinant simplifies to
For , the observed-data likelihood is therefore
Writing for the density, the conditional-independence structure of the latent-variable model gives
By invariance of maximum likelihood,
Because , the ratio is log-normal. Its exact variance is
As , all sampling terms vanish but retains . The dominant remaining uncertainty is therefore the parallax calibration of the LMC distance modulus.
Differentiating the log-likelihood gives the unique stationary point
Its Hessian is diagonal with entries , , and , so it is the unique maximum. The estimators are unbiased and have variances
which equal their Cramér-Rao lower bounds because the normal location statistics are efficient.
Since , invariance of the maximum-likelihood estimator gives
It is unbiased and normal with variance
All three sets of statistics are independent. With , , and , their likelihood function, up to a parameter-independent factor, is
The Hubble law gives Mpc, so its distance modulus is
Consequently
The common distance modulus of calibrator galaxy cancels between its supernova and mean Cepheid apparent magnitudes. Their independent intrinsic scatters therefore give
Thus and .
An apparent magnitude is the sum of absolute magnitude and distance modulus. Thus
The independent unbiased distance-modulus estimate is , so closure of independent normal distributions under linear combinations gives
Hence and .
Let , let
and recover the sufficient cross-products from the model1 normal equations by setting and . Then
is the total squared residual about the fixed line. The squared sum of the ten residuals within each person, summed across people, is
For one person's ten observations, the marginal covariance matrix is . The matrix determinant lemma and Sherman–Morrison formula therefore give, up to an additive constant, twice the negative marginal log-likelihood
Because the model was fitted with REML = FALSE, it minimizes this ordinary marginal maximum-likelihood objective. Thus belongs to the stated argmin over and .
The residual deviance of a Gaussian GLM is its residual sum of squares, . Thus the empirical training error for squared-error loss is
If training error is defined as the unnormalized total loss, its value is .
Repeated measurements from one person can share persistent unobserved spending tendencies, violating model1's independent-error assumption and shifting that person's baseline. Model2 represents this clustered data through a common random intercept , which induces within-person covariance for .
Model1 is the simple linear regression
Model2 is a random-intercept linear mixed model
with the random intercepts and errors mutually independent.

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact