The squared chord distance is
Hence the restricted Gaussian process has covariance
It depends only on , so it is stationary. It is periodic in either argument with period , and Gaussian-process realizations inherit that period almost surely because has zero variance.
At distance , inclusion requires . Thus
It equals when
The inverse-square law gives , so observation is equivalent to
For , integrating the Gamma density gives
Therefore
Writing , the log likelihood is
Hence
The score variance and negative expected Hessian give Fisher information
Since is Gamma with mean and variance ,
The estimator is unbiased and attains the Cramér-Rao lower bound.
In the stated units, . The change of variables formula gives
Thus, with ,
The expected number in a spherical shell is . Since
the normalized radial density is the Gamma distribution
The interval treats the selected model and estimated detrending and seasonal components as fixed, often assumes approximately Gaussian homoscedastic innovations, and ignores model-selection and parameter uncertainty. With only 100 observations these omissions can materially reduce coverage. A residual or parametric bootstrap that repeats decomposition, model selection, fitting, and forecasting can propagate those sources of uncertainty; time-series cross-validation can additionally assess empirical one-step coverage.
The first line searches candidate ARIMA models and selects the one with smallest Akaike information criterion. The second constructs a one-step-ahead point forecast and nominal 95-percent prediction interval from the fitted values of the selected model.
The sample autocorrelation has one substantial positive spike at lag one and then cuts off, while the partial autocorrelation tails off with alternating signs. This is the characteristic pattern of a moving-average process of order one.
A period-50 business cycle can be a stochastic cycle in the residual process and need not violate additive trend-plus-period-25 seasonality. Applying discards the first 50 of only 100 observations and introduces a noninvertible seasonal moving-average factor, creating strong artificial dependence and risking overdifferencing rather than modeling the cycle.
Fit a trend , form , and estimate the period-25 seasonal effect by
The residual is . This additive decomposition is sensible when seasonal amplitude does not systematically change with the level or trend; multiplicative seasonality would require a logarithmic transform or ratio decomposition.
A weakly stationary process has a constant finite mean and covariance depending only on lag . The plotted process is not stationary: it has a declining trend and a pronounced oscillation of period about , so its mean depends on time.
A weighted nearest-neighbours classifier predicts one when
where neighbours are distance ordered. Under the usual smooth-density and smooth-regression assumptions, asymptotically optimal weights downweight distant neighbours, for example normalized positive parts of . The optimal weighted-nearest-neighbour theorem gives smaller leading asymptotic regret than equal weights.
For each , the call to knn.cv performs leave-one-out nearest-neighbour classification and the third line stores the fraction of omitted observations misclassified. Choose a minimizer of ls, then fit the nearest-neighbour classifier with that to the full data.
The K-nearest neighbors algorithm takes the majority label among the training features closest to the query, with a stated tie rule. Its data-dependent risk is the conditional test error given the training sample, and denotes its expectation over that sample.
For one nearest neighbour, condition on a feature value and couple the coincident nearest feature as . The two labels are conditionally independent Bernoulli, so their mismatch probability is
Integration over gives
For , the risk is
The Bayes classifier is , with risk .
A dead ReLU unit has nonpositive preactivation for every training input, so its output and gradient are always zero. Replace by the leaky ReLU
Its negative-side derivative permits recovery while it remains nonsaturating, preserving the gradient advantage over sigmoid activation.
For all weights and biases collected in , fit
Use backpropagation with stochastic gradient descent or a modern adaptive variant, treating the absolute-value derivative at zero as stated. Select by validation or cross-validation and refit using the selected pair.
Deep sigmoid networks suffer from vanishing gradients because derivatives become small in saturated units and multiply across layers. The ReLU has derivative one on its positive half-line and therefore propagates gradients more effectively there.
Multinomial logistic regression is the network with no hidden layer: followed by softmax. Binary logistic classification uses one logit followed by the sigmoid function.

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