With equal model prior probabilities, Bayesian model averaging gives the unnormalized density
Normalizing this expression over the allowed interval automatically incorporates each lens model's evidence and hence its posterior model probability.
The light-curve posterior used the analysis prior , so its marginal likelihood as a function of delay is proportional to . Therefore
The integral can be evaluated numerically using the approximation from part (d).
Discard burn-in from the MCMC output and retain the sampled coordinate. A normalized histogram or kernel density estimation of these draws approximates . Autocorrelation changes the Monte Carlo uncertainty, so uncertainty bands should use the chain's effective sample size rather than its raw length.
Let denote the posterior and let the proposal density satisfy . For distinct states, the Metropolis transition density is
Consequently
The rejection mass on the diagonal also satisfies detailed balance, so the posterior is invariant.
With and ,
A random-walk Metropolis algorithm proposes from a symmetric multivariate normal increment, conveniently using logarithmic coordinates for , and accepts with probability
After burn-in, retain a suitably long chain and assess convergence and effective sample size of a Markov chain.
Stack . After integrating out the Ornstein-Uhlenbeck process,
Writing , the covariance blocks are
and , with . Therefore
For normalized target density and proposal , the unbiased importance estimator has variance
By Cauchy-Schwarz inequality,
with equality exactly when
This is rarely useful because constructing and sampling from it already requires detailed knowledge of the posterior and its absolute first moment, the objects importance sampling was meant to avoid computing.
The stated conditional independences give
Thus
The dependence among satellite properties and host mass remains encoded in each jointly simulated row.
If equally informative independent draws have variance , an ordinary mean of draws has variance . The weighted mean has the corresponding variance . Equating them gives the effective sample size of importance sampling
where the inequality follows from Cauchy-Schwarz inequality.
The simulation catalog is a sample from the joint prior. Self-normalized importance sampling therefore estimates the posterior mean by
The likelihood weights update each simulated system according to how well its satellite resembles the measured one.
The likelihood is
Using the conditional independence and the joint prior ,
and
At distance , detection requires . Hence
The probability is when its normal quantile is zero, namely at
The inverse-square law gives , so a star is observed exactly when
Writing , integration of the shape-three gamma density gives
Therefore the fully normalized truncated distribution is
Ignoring terms independent of , the log-likelihood is
Its score vanishes at
The expected Fisher information is
Because a shape-three gamma variable has mean and variance ,
The estimator is unbiased and attains the Cramér-Rao lower bound .
A spherical shell contributes a factor to the number of stars. Since , the normalized distance density is
Thus , , and . This is a gamma distribution with shape three and scale .
The dashed curve is training accuracy: it continues to rise as optimization adapts to the training observations. The solid curve is testing accuracy: it peaks near 10 epochs and then declines. The widening gap is overfitting.
A sensible choice is about 10 epochs, selected by early stopping at the maximum validation accuracy. In a proper analysis, a validation set rather than the final test set should choose this epoch. Early stopping is an implicit regularization method because it limits how far the parameters can adapt to training-specific noise.
The neural-network likelihood is nonconvex, so optimization can stop at a local optimum or saddle rather than a global maximum. One hundred epochs may be insufficient for convergence. Mini-batch gradient noise together with a fixed positive learning rate can keep the iterates fluctuating around a stationary point rather than reaching it exactly. Any of these prevents the final parameters from being exact maximum-likelihood estimators.
Stochastic gradient descent replaces the full empirical-loss gradient by the gradient on a randomly ordered observation or mini-batch, then updates . The training half contains observations, so batches of 16 give updates per epoch. Over 100 epochs every parameter is updated times.
For standardized , model1 computes
followed by logits and softmax function probabilities
The parameter count is
For one-hot labels , the categorical cross-entropy loss is
This is the negative conditional log-likelihood of independent categorical labels, equivalently Bernoulli labels in the two-class case.
Kernel principal component analysis can represent nonlinear low-dimensional structure by performing linear PCA in a nonlinear feature space. It can also work directly with structured objects such as strings through a kernel, without assigning them explicit finite-dimensional coordinates. Both capabilities are unavailable to ordinary linear PCA on the original variables.

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