The new score columns are orthogonal, since is diagonal. This decouples the slope normal equations; with positive eigenvalues and the stated error covariance, the two estimated score coefficients are uncorrelated. It also makes variance explained and possible dimension reduction explicit.
The trade-off is interpretation: each principal component is a mixture of the original variables, so its regression coefficient is less directly connected to changing one original input. Keeping both components is an invertible reparameterization and gives exactly the same fitted values and residual sum of squares. It does not repair a zero eigenvalue or remove instability associated with a very small one. Dropping a low-variance component may improve numerical stability and reduce estimator variance, but changes the model and can discard predictive information, since principal component analysis uses predictor variance rather than the response. This is the distinction between a full rotation and principal component regression with truncation.
Here both regressor columns are already centered, so and . Writing , the linear predictor is . Thus
The intercept stays , because centering made the transformation a rotation of the regressor columns without an added translation.
The principal component scores are the projections of centered observations onto the loading directions:
If the symbol already denotes centered data, this simplifies to . The principal component loadings are directions; the principal component scores are coordinates of individual observations in those directions.
Let be the column-centered data matrix. Its sample covariance matrix is . The loadings matrix has orthonormal eigenvectors of as columns, ordered by nonincreasing eigenvalues:
Each principal component loading specifies the coefficients of a principal direction in the original variables. Signs are arbitrary, and equal eigenvalues permit orthogonal changes of basis within their eigenspaces.
Principal component analysis finds orthogonal directions of greatest sample variation, ordered by the variance explained. It can summarize correlated variables, reveal lower-dimensional structure, and provide a reduced representation by retaining only the first few principal components. Centering is standard; scaling may also be appropriate when the variables have incomparable units.
If the two regressors are strongly associated, the data may provide little support for varying one while holding the other fixed. Multicollinearity makes the separate slope estimates unstable, and exact linear dependence makes them unidentifiable. A conditional slope may also be an extrapolation beyond combinations actually observed.
Furthermore, a slope in a linear regression model is not automatically a causal effect. A causal interpretation needs appropriate design or assumptions excluding confounding; independence of the errors across observations and zero mean alone do not establish those assumptions. The coefficients describe the specified linear mean relation, but changing a regressor by intervention can have a different interpretation.
The centered regressors make the first normal equation read . Define
The remaining equations are and . Provided , matrix inversion gives
By the Cauchy-Schwarz inequality, . If , the two regressor columns are linearly dependent, and their separate slopes are not uniquely identifiable. One still has well-defined linear least squares fitted values, but cannot use the displayed divisions by .
Minimize the residual sum of squares
Setting its three partial derivatives to zero gives the normal equations
These equations characterize the linear least squares minimizers, since is a convex quadratic. A unique coefficient vector additionally requires full column rank of the design matrix.
Since , we have . Squaring and adding the other residual squares gives
Therefore is a measurable function of . By the block independence proved in part i, it is independent of . This is the independence of the normal sample mean and sample variance; pairwise independence alone would not justify passing to an arbitrary function of several residuals.
Each residual has mean zero and variance . By linearity of expectation, without needing independence of residuals,
Hence is an unbiased estimator of .
Put . The supplied linear-transformation result shows that is jointly multivariate normal. Its marginal distributions are
Indeed, , so
For a jointly Gaussian vector, zero cross-covariance between blocks implies their independence. Thus is independent of the entire vector , not merely of each coordinate separately. The residual coordinates themselves need not be independent: for , their covariance is .
The sample mean is exactly , so has the standard normal distribution. The given quantile gives probability to the interval . Inverting this pivot yields the exact confidence interval
For known , maximizing the normal likelihood over is equivalent to minimizing . The identity
shows that the unique minimum occurs at . Equivalently, the log-likelihood has second derivative .
The central limit theorem gives
Write for the indicated standard normal quantile. Inverting the approximate pivot inequality and substituting gives the approximate confidence interval
Its coverage is approximately for large . The intersection respects the positive rate parameter; asymptotically the lower endpoint is positive. This is an asymptotic interval, not an exact finite-sample confidence interval.
The inverse moments in part i give
Thus the bias is positive, and direct expansion of the mean squared error yields
For comparison, the variance is ; adding the squared bias gives the same answer by the bias-variance decomposition.
Use the gamma density and the normalization integral for shape :
The same argument, valid for , gives .
For the independent random sample, the likelihood function on its support is , where . Its log-likelihood is , with
Almost surely , and the unique stationary point is consequently the unique global maximum:
The exceptional all-zero sample has probability zero; if were nevertheless supplied, there would be no finite maximizing rate.

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