The fitted classifier is
and training minimizes the empirical categorical cross-entropy loss
The softmax non-identifiability already proves that the coefficient vector is not unique. For any and , replace both rows of by and both output biases by . Every logit then gains the same value , so all softmax probabilities, classifications, and losses remain unchanged. Permuting the two hidden units supplies another non-uniqueness.
With and , the model-matrix input is
The feedforward neural network has three inputs, a fully connected layer of two ReLU units, and a fully connected two-class softmax output. Algebraically,
where , , , and . The coding is for no click and for a click. There are
parameters.
Model 3 directly specifies the conditional mean and variance of the positive response on its observed scale. Its coefficients give multiplicative effects on mean record time, its prediction intervals concern time itself, and its likelihood can be compared directly with other original-scale models.
Model 2 instead models the mean of . Back-transformation does not give the mean time without a retransformation bias correction; for a log-normal model, . The Gamma model also represents the increasing original-scale variance seen in the diagnostic plot, so it is preferable here.
The ordinary least squares equations for model 2 are
For the Gamma generalized linear model, and , so its score equation under the logarithmic link is
When is close to ,
by the first-order Taylor expansion of the exponential function. The Gamma score equations then become the model-2 normal equations, so their coefficient estimates are close.
The printed values appear to favor model 2 because . They are not directly comparable: model 2 reports the Gaussian likelihood of , whereas model 3 reports a density for . The change-of-variables formula for a probability density gives
so the transformed model's AIC on the original response scale is
Because the standardized predictors have zero sample means and the ordinary-least-squares residuals sum to zero,
Therefore
which is slightly worse than model 3's .
For a likelihood with estimated parameters, the Akaike information criterion is
where is the maximum-likelihood estimator. Among likelihoods for the same observed response and reference measure, smaller AIC estimates smaller expected out-of-sample Kullback-Leibler divergence up to a model-independent constant.
Model 1's residuals have a systematic curved pattern and a spread that grows strongly with fitted time. This indicates an incorrect linear mean on the original scale and heteroscedasticity; several observations are also influential or outlying. The constant-variance assumption is therefore implausible.
Logging time greatly stabilizes the spread and removes most of the mean pattern, so model 2 is much more compatible with constant conditional variance and linearity. A few conspicuous residuals remain. A residual-versus-fitted plot alone does not check independence or fully establish normality.
Let be record time and let contain standardized climb and distance. Model 1 is the normal linear model
Model 2 applies the same model after a logarithmic transformation:
so is conditionally log-normal. Model 3 is a Gamma regression with logarithmic link:
The selected zero-mean autoregressive moving-average process is
The reported maximum-likelihood estimates are
Using the displayed asymptotic standard error gives the Wald confidence interval
This normal interval is unreliable and likely too narrow because the series has only about twenty observations, the moving-average estimate is near the noninvertibility boundary , and the same data were used to select the model. The finite-sample likelihood is consequently skewed and model-selection uncertainty is omitted.
At lag , the plot shows the sample autocorrelation function
Under a white noise process, each fixed nonzero-lag sample autocorrelation is approximately , so the dashed pointwise reference lines are approximately .
The first nonzero-lag bar is well above the upper line, which contradicts the zero autocorrelation expected from white noise. Since the plot then largely cuts off, an moving-average process of order one is a plausible model; with the sampling interval as the time unit this is an model.
A process is weakly stationary when it has finite second moments, a time-independent mean , and an autocovariance function
that depends only on the lag.
Because models 1 and 3 are full likelihood models for the same response, one can compare their Akaike information criterion values; that favors model 1. One can also compare held-out count prediction by K-fold cross-validation, using a common loss such as Poisson deviance or negative log predictive density.
The AIC comparison cannot include model 2 because a Quasi-Poisson fit specifies only mean and variance and has no full likelihood. Cross-validation can compare model 2 with model 3 if all predictions are scored by the same proper out-of-sample loss.
The generalized linear mixed model tries to explain overdispersion by replacing the fixed minority coefficient with a Gaussian random intercept. Conditional on the group effect ,
This is a poor use of a random effect because minority has only two levels. Two realized intercepts contain almost no information about a random-effects distribution or its variance, and the two levels are substantively fixed categories rather than a sample from a population of groups. The model also has worse Akaike information criterion than model 1, , and its fit does not establish that the original overdispersion has disappeared.
The Quasi-Poisson standard errors are trustworthy only if observations are independent, the log-linear mean is correct, and the variance is proportional to the mean with one common dispersion. Dependence, zero inflation, or covariate-dependent dispersion can invalidate this covariance formula.
A parametric bootstrap under model 1 proceeds as follows. Fit the Poisson model once and retain and the fitted means . For bootstrap repetition , independently draw
refit the same Poisson regression to , and save its gender estimate . The sample standard deviation of these estimates over many repetitions estimates the model-1 standard error. This bootstrap deliberately measures uncertainty under the fitted Poisson model; it does not repair real overdispersion unless the resampling model is enlarged to represent its cause.
With having rows and , the quasi-score equation is
It is the same coefficient equation as for Poisson maximum likelihood, explaining why the two models have identical coefficient estimates.
Let and let coordinate denote gender. The model-based standard error is
The researcher computed the Pearson chi-squared statistic
and compared it with a distribution, using residual degrees of freedom. Under an adequate large-sample Poisson regression, should be roughly the residual degrees of freedom. The reported tail probability rounds numerically to zero and gives strong evidence of overdispersion.
Possible causes include unobserved heterogeneity or omitted covariates, dependence among respondents, excess zeros, or an incorrect mean function. The conclusion that the Poisson variance assumption fails is well supported, although this test alone does not identify the cause or establish that the Quasi-Poisson regression variance is correct.
The reported Pearson dispersion estimator is , so
up to rounding.

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