Y Hat Values in Linear Algebra
A y hat value is a fitted value. It comes from a linear model. In matrix terms, the model starts with a response vector y and a design matrix X. The calculator estimates the coefficient vector beta. Then it multiplies X by beta to produce y hat.
Why Y Hat Matters
Y hat helps you compare observed values with fitted values. The gap between them is the residual. Small residuals can suggest a stronger fit. Large residuals can reveal outliers, missing predictors, or a weak model form. In linear algebra classes, y hat also shows projection. The fitted vector sits in the column space of X when ordinary least squares is used.
Using Matrix Inputs
This tool accepts y as a list and X as matrix rows. Each row must match one observation. Each column is a predictor. You can add an intercept column automatically. That option is useful because many regression models include a constant term. You can also enter new predictor rows. The calculator will use the same coefficient vector to estimate new fitted values.
Projection and Leverage
The hat matrix maps y to y hat. It is named H because it puts the hat on y. Its diagonal values are leverages. A high leverage row has an unusual predictor pattern. It can strongly affect the fitted line, plane, or higher dimensional surface. This calculator reports leverage so you can inspect influential rows.
Ridge Stabilizer
Some matrices are singular or nearly singular. That means the normal equation inverse may fail. The ridge option adds a small value to the diagonal of X transpose X. This can stabilize the calculation. With ridge enabled, the fitted values are shrinkage estimates. They are helpful for practice, but they are not the exact orthogonal projection used in plain least squares.
Good Practice
Check the row counts first. Then review coefficients, y hat, residuals, and summary error. Use more decimals for homework checks. Use fewer decimals for reports. Download the CSV for spreadsheets. Download the PDF for quick sharing or printing. Keep source data unchanged before exporting. That makes each saved result easier to audit. Recheck units when predictors represent different measurement scales or transformed variables later.