Use the chain rule for conditional densities. With , the likelihood function of the nondegenerate observations is
The first residual is and carries no parameter information. There is no ordinary joint Lebesgue density for because deterministically; this expression is the conditional likelihood function given the fixed initial values, or the likelihood function on . The initial point mass is parameter independent and has no effect on inference. This is the conditional likelihood of an initialized Gaussian AR(2) process.
Define the sufficient data sums, all over ,
Multiplying the likelihood function by the independent standard-normal priors and collecting the quadratic terms gives
Let and . This precision matrix is , where , so it is positive definite even for a short or singular design. Completing the square proves
The fully normalized posterior density is
This is Gaussian conjugacy for an initialized AR(2) regression.
Completing each one-dimensional square, or using the supplied conditional-normal identity, gives
When , all regressor sums vanish and the posterior remains the independent standard-normal prior. No stationary-parameter restriction is imposed: the specified prior is on all of , and the finite initialized chain is defined for all .
The Bradley-Terry model assigns comparison probability to each observed edge. Up to factors independent of the parameters, its likelihood function is
The comparison graph is a path graph, hence a tree. After fixing , its edge ratios are unconstrained positive coordinates: every collection determines uniquely .
For a convenient strict-concavity calculation, use the edge log-ratios in a Bradley-Terry comparison tree . The log-likelihood separates as
Each derivative is , where is the logistic function of , and each second derivative is . Because , there is a unique finite global maximum at
Converting back gives the Bradley-Terry maximum-likelihood estimate on a path:
Equivalently, recurse backwards using . All estimates are finite and positive. The sample size changes the curvature of the likelihood but not this maximizer; absence of comparison cycles is what permits every empirical edge proportion to be fitted simultaneously.
In the Bühlmann model, a latent risk parameter is drawn from a population distribution. Conditional on , the yearly observations are independent and identically distributed random variables, with conditional expectation and conditional variance . Define the structural parameters
Here is the expected process variance, while is the variance of hypothetical means. The Bühlmann credibility premium is the best affine estimate of from the observed claims, under mean squared error. Predicting the next claim gives the same affine estimate: the extra conditional observation noise contributes the constant to the prediction error.
The law of total variance and conditional independence give
An affine estimate can be written as : for any chosen , optimizing the constant makes its expected value equal to . The normal equations for the linear least-squares projection are
For they force all to agree, with . Thus the credibility factor and premium are
The credibility factor increases with the observation count and between-risk variance, and decreases with within-risk variance. If , the risk mean is known and ; if and , one observation reveals it and . If both vanish, the premium is the fixed value and the factor is immaterial.
In the specified model, the conditional law is a gamma distribution with shape and scale . Therefore
The prior is an inverse-gamma distribution with shape and scale . To obtain its moments directly, substitute in the defining integral, obtaining
The Gamma function recurrence yields
The assumption makes both structural variances finite. Hence
It follows that the model-specific credibility estimate is
For the Bayes estimator under squared error loss, the quantity to estimate is , so the optimum is its posterior mean. The likelihood function, viewed as a function of , is proportional to
Multiplication by the prior shows gamma scale inverse-gamma conjugacy:
Although the printed hint only mentions integer shapes, the same substitution and Gamma integral normalize this posterior for every positive real shape, so no integrality of is needed. Its posterior mean gives the Bayesian estimate and comparison
This exact Bühlmann credibility for gamma claims holds for every observed sample, not merely on average. Here the posterior mean is affine in the sample mean, so the best affine Bühlmann credibility premium is also the unrestricted Bayes estimator under squared error loss.
Use positive ability parameters in the Bradley-Terry model, so . If the course instead denotes log abilities by , apply the following calculation to their exponentials; the ordering is unchanged. Up to a factor independent of the abilities, the likelihood function is
The observed wins form a directed cycle, so a finite maximum exists. The Bradley-Terry likelihood Hessian is negative definite on contrasts of log abilities, giving uniqueness up to common scaling. We can therefore find the maximum-likelihood estimate through the Bradley-Terry score equations.
Player 1 has one observed win in two comparisons. Its score equation is
which simplifies to . By the model's scale invariance, set and write , , with . Player 2's score equation becomes
The left side of the polynomial equation is strictly increasing on , starts at zero, and tends to infinity. For , its unique solution is . For , its value at one is , so its solution satisfies . The Three-player Bradley-Terry comparison cycle consequently gives
Thus there is a complete tie when each directed edge is observed once, and otherwise the decreasing ranking is 2, 1, 3.
Write . The likelihood function for the Poisson distribution is proportional to . For , differentiation of the log-likelihood gives , and its second derivative is negative. For , the likelihood decreases with and has its maximum at the boundary zero. Hence
The estimator is unbiased, since . Its variance is . If the parameter space excludes zero, an all-zero sample gives a supremum as rather than an attained maximum.
Age changes during follow-up, so the generator matrix changes with time. The transition matrix must solve , with . It is generally not the matrix exponential of one constant matrix; even is not generally valid because the matrices at different times need not commute.
For example, write the age-dependent onset rate as and keep progression rate constant. Then
Even when the integrated onset rate is elementary, this remaining integral need not have an elementary closed form. Special cases can have closed forms; time dependence does not by itself prove universal impossibility.
For a tractable likelihood function, freeze age at its left-endpoint value, or a midpoint value, on each observation interval . The genetic covariate is already constant. This piecewise-constant covariate approximation gives a constant matrix on each interval and a product of closed-form interval probabilities:
Here is the observed state at , and the likelihood function is conditional on the initial state. The approximation improves when intervals are short relative to the variation in the age effect.
Let be the false positive rate for a genuinely cancer-free person, encompassing the harmless-tumour misclassification, and assume screening errors are conditionally independent given the latent states. A pre-clinical case tests positive with probability one; a clinical case is separately recognized. Thus a negative screen identifies latent state , whereas a positive pre-clinical screen can arise from state or . This is a Hidden Markov model with a screening misclassification model.
Conditional on the negative baseline screen, the state at year is . The negative screen at year requires staying in state for two years and then testing negative. From that state, the positive screen at year can arise either with probability while still disease-free or through pre-clinical disease. Consequently the conditional likelihood is
If the study instead specifies an initially disease-free patient and includes the baseline screening result in the likelihood function, its probability contributes a further factor , giving
The formulas use the positive emission for a pre-clinical screen, with no clinical diagnosis in this record. A persistent harmless-tumour subtype producing correlated screening errors would need an additional latent-state or emission specification; its likelihood is not determined by the single parameter .
For a causal autoregressive model of order , the population partial autocorrelation function cuts off after lag , whereas the autocorrelation function generally decays. For an invertible moving-average model of order , the autocorrelation function cuts off after lag , whereas the partial correlation coefficients generally decay. For a mixed autoregressive moving-average model, both generally decay. Exponential decay may alternate in sign or show damped oscillations. Sample correlation coefficients only approximate these patterns, so isolated crossings of the significance bands are not exact order tests.
In PDF Figure 1, the autocorrelation function alternates sign, with a large negative lag-one correlation coefficient and geometrically decreasing magnitude. The partial autocorrelation function has essentially one substantial spike, negative at lag one and about ; later values mostly lie within the displayed bands. Thus a stationary AR(1) with a negative coefficient is the natural first model, with initially near . The trace fluctuates around an approximately constant mean and shows no evident deterministic trend.
Fit that model, compare nearby low-order alternatives using likelihood function and an Akaike information criterion or Bayesian information criterion, and inspect the residual autocorrelation function and residual variance. A few small later PACF spikes are expected in a plot with many lags. The roughly white noise bands are a guide, rather than simultaneous guarantees for every lag.
The sign alternation also suggests concentration of spectral power near the high-frequency end: the AR(1) denominator is smallest near when . From estimated and lag-one correlation coefficient one can estimate innovation variance as . The persistence parameter controls the decay rate and long-run variance of a stationary process. These plots do not establish a normal distribution, independence, or the absence of nonlinear dependence; correlation coefficients of squared residuals can provide a separate variance diagnostic.
First, the absolute values in the printed limit are an error: the correct long-run variance of a stationary process is the signed sum of autocovariances. Directly,
so
Each coefficient tends to and has absolute value at most . Absolute summability and the dominated convergence theorem therefore give
The sum of absolute values is an upper bound, not the general limit. For a concrete counterexample to the printed assertion, take with unit-variance iid noise. Then , , and other covariances vanish. The absolute sum is , but , so .
For correlated data the central limit theorem can still hold under suitable strong mixing of a stationary process and moment conditions, but the limiting variance is the long-run variance of a stationary process, rather than the one-observation variance. When it is positive,
Positive serial dependence usually increases the standard error, while negative dependence can reduce it. The approximate effective sample size of a stationary sample is when that denominator is positive. A long-memory time series can require a different normalization or a different limit law. Absolute covariance summability alone does not prove a CLT: if with a common independent random scale taking values and with equal probabilities and iid with the standard normal distribution, the off-diagonal covariances are zero, yet has the nonnormal scale-mixture law . The example is not an ergodic stationary process. If the long-run variance of a stationary process is zero, the usual nondegenerate square-root- CLT is unavailable.
For the causal AR(1), and
The conditional distribution follows because the current innovation is independent of the past.
For a fixed known , condition on the observed and use the transitions . Their conditional maximum likelihood criterion is, up to constants,
Differentiating in yields
Since ,
Thus it is an unbiased estimator, even conditionally on , and
It has statistical consistency with mean-square convergence, and the iid-noise strong law of large numbers also gives almost-sure statistical consistency. Its conditional distribution is exactly normal with the displayed mean and variance. If is also observed and all transitions are used, replace by .
The fixed- qualification is necessary for the exact finite-sample claims. If is jointly estimated, conditional likelihood function is linear regression with an intercept: writing and , the unconstrained estimators are
This ratio is not generally an unbiased estimator and does not have the preceding finite-sample variance. Under the usual stationary regression conditions it has statistical consistency; its asymptotic variance is . Indeed, it differs from by , an asymptotically negligible endpoint term. Profiling an unknown innovation variance does not change the fixed- estimate of .
Use as the variance parameter, with prior density relative to . Let and . Multiplying the prior by the likelihood function gives the unnormalized Bayesian posterior
The printed request for an “improper posterior” should not be read as a claim that this posterior is always improper. Although the prior is improper, integrating over gives a marginal kernel , which is integrable exactly when and . Under these usual nondegenerate-data conditions it is a proper posterior. If those conditions fail, the displayed kernel is improper and there is no posterior probability distribution for a sampler to target.
Completing the square and using the inverse-gamma distribution give the full conditionals
The inverse-gamma distribution convention is density proportional to . Equivalently the precision satisfies
using shape and rate, as in the question.
A Gibbs sampler starts from and alternates
This is the normal mean-variance posterior with a log-uniform variance prior. For a marginal check, : integrating out reduces the shape by . This marginal shape is different from the full-conditional shape .
The Gauss-Markov theorem states that with full-column-rank design, mean-zero errors and covariance , the ordinary least squares estimator is the best linear unbiased estimator: its covariance is no larger than any other such estimator's in the Loewner order. Normality is unnecessary for that theorem.
In the given normal linear model, maximizing the likelihood function is equivalent to minimizing . The normal equations and full rank give
For a direct variance comparison, write . Unbiasedness for every requires . Set and , so . The cross covariance terms vanish because . Therefore
This proves the requested comparison for every contrast without relying only on the theorem's name.
Let and . Under the proposed zero-inflated negative binomial model, independence gives the likelihood function
The positive-count factor uses the ordinary, untruncated negative binomial distribution. With , the log-likelihood is
For latent indicators , the complete-data log-likelihood is
where is allowed only when . This separation is what makes the expectation-maximization algorithm convenient.
The marginal Akaike information criterion is , where counts estimated population parameters. Here they are , so . The realized incubator slopes have been integrated out of the likelihood function; they are not four additional free population coefficients. From the marginal Gaussian log-likelihood, the expression is
All hats here denote the ordinary maximum likelihood estimation fit.
The displayed value is instead a restricted maximum likelihood criterion. Thus it cannot simply be substituted for the ordinary maximum-likelihood deviance. The logLik method defaults to the fitting convention. If one applies AIC(fly.model) directly to the displayed REML object, the default restricted log-likelihood and the same parameter count give the software's restricted-likelihood-based value . This number should be labelled as such; it is not the ordinary marginal AIC derived above. To obtain the latter, refit and calculate
AIC(update(fly.model, REML=FALSE))
The output does not contain that numerical answer. In particular, restricted criteria must not be used to compare models with different fixed-effect designs. A conditional AIC targeting predictions for existing groups is yet another criterion and does not follow by counting each latent slope as an ordinary parameter.
The selected model is a moving-average process of order one, with the plus-sign convention used by R:
The Gaussian likelihood function models innovations as independent . Its autocovariance is , , and zero at larger lags, with autocorrelation . The estimated coefficient has modulus less than one, giving invertibility of a moving-average model; a finite moving-average process is stationary regardless of this invertibility restriction.
The original plots show fluctuations around a roughly constant level, no persuasive deterministic trend, and a conspicuous positive lag-one correlation with the other plotted correlations within the approximate sampling bands. They make a stationary nonseasonal working model reasonable for this short series. stationary=TRUE excludes differenced alternatives, and seasonal=FALSE excludes seasonal ARIMA terms. Neither option is proved by a 60-day plot: annual temperature seasonality cannot be excluded from two months, and a longer record or residual diagnostics might require a different model. The options are reasonable local simplifications, not universal statements about temperature dynamics.
Let contain independent complete observations of the -dimensional vector, and let be a Directed acyclic graph. A Gaussian Bayesian network uses, for node ,
Here is an intercept, the vector of parent coefficients, and the conditional variance; the vector collects these statistical parameters. Its likelihood function factors as
Choose a proper statistical parameter prior distribution and a graph prior distribution . Bayes theorem gives the Bayesian network structure score, up to the normalization common to graphs,
The integral is Bayesian model evidence: it averages over nuisance parameters rather than substituting their best-fitting values. A graph prior can favor sparse graphs, while the evidence balances fit against the amount of prior statistical parameter space that predicts the observations well. Compare these scores over admissible Directed acyclic graphs, using enumeration when feasible or a search procedure otherwise; search need not find a global maximum, and observational data need not identify a unique causal orientation.
A conjugate prior makes the integral analytic. For example, for take , , where is positive-definite matrix and ; these are independent local normal-inverse-gamma priors. Under prior independence between nodes, the evidence is a product of local regression evidences. Each posterior has the same family, so the local integral is the ratio of prior and posterior normalization constants, with the likelihood's constants included. This avoids costly numerical integration and makes local graph updates inexpensive. Hyperparameters must be specified coherently if score equivalence between observationally equivalent graphs is desired; arbitrary local priors do not automatically have that property.
Set , and . With equal positive rates, the one-year probability of a change is , so the conditional likelihood function is proportional to
For , its unrestricted binomial maximizer is . A finite interior positive-rate maximum exists exactly when , or
Indeed the binomial log-likelihood is strictly concave at this interior maximum and is strictly increasing. If and , the likelihood increases towards its supremum as , requiring ; no finite maximum exists. Equality also has only this limiting maximum.
If , allowing the boundary gives a finite maximum there; insisting on gives only a supremum as . Thus if “valid” includes zero rates, the condition is with ; if rates must be strictly positive, it is . If , every rate has the same empty-data likelihood and the statistical parameter is not identifiable. These boundary qualifications prevent a negative or infinite plug-in rate from being called a valid interior estimate.
Condition on each patient's initial observed state and assume independent patient trajectories and observation times that do not carry additional information about the unobserved path. The Markov property factors each trajectory's likelihood function into its successive one-year transition probabilities. Thus
More explicitly, with and ,
Successive transitions within one patient need not be independent unconditionally: this is a product of conditional factors justified by the Markov property. If initial-state probabilities are modeled rather than conditioned on, their likelihood contributions must also be included. Zero-count terms contribute zero; a positive count attached to a zero model probability makes the log-likelihood equal to .