Y Hat
Press Copy for ŷ, or take the regression line, a residual or the code that types it.
All items
Start here
ŷ y hat U+0177, Latin small letter y with circumflex. One character: the predicted value of y. ŷ in HTML.
ŷᵢ y hat with i ŷ and U+1D62, subscript i. The predicted value for case i.
Ŷ Capital y hat U+0176, Latin capital letter y with circumflex. Ŷ in HTML.
ŷ y with a hat added U+0079 U+0302. The letter y and the combining hat: two code points that mean the same as ŷ.
ȳ y bar U+0233. Not a hat: the mean of the values of y.
ŷ = b₀ + b₁x Regression line
y − ŷ Residual
The fitted line
ŷᵢ = b₀ + b₁xᵢ Regression line, case i
ŷ = a + bx Regression line with a and b
ŷ = bx + a The same, slope first
ŷ = mx + b As a line in algebra
ŷ = β̂₀ + β̂₁x With beta hats
ŷᵢ = β̂₀ + β̂₁xᵢ With beta hats, case i
ŷ = α̂ + β̂x With alpha hat and beta hat
ŷ = b₀ + b₁x₁ + b₂x₂ Two predictors
ŷ = b₀ + b₁x₁ + b₂x₂ + b₃x₃ Three predictors
ŷ = b₀ + b₁x₁ + … + bₚxₚ Any number of predictors
ŷ = b₀ + b₁x + b₂x² A curve
ŷ = Xβ̂ In matrix form
ŷ = Hy With the hat matrix
b₀ = ȳ − b₁x̄ Intercept, by way of the two means
ŷ − ȳ = b₁(x − x̄) Line through the two means
ŷ = ___ + ___x Fill in your numbers
Residuals and sums
e = y − ŷ Residual
eᵢ = yᵢ − ŷᵢ Residual of case i
ε̂ᵢ = yᵢ − ŷᵢ Residual written as epsilon hat
yᵢ − ŷᵢ Observed less predicted
y = ŷ + e Observed value, taken apart
(y − ŷ)² Squared residual
Σ(y − ŷ)² Sum of squared residuals
Σ(yᵢ − ŷᵢ)² Sum of squared residuals, with i
Σ(ŷᵢ − ȳ)² Explained sum of squares
Σ(yᵢ − ȳ)² Total sum of squares
Σ(yᵢ − ȳ)² = Σ(yᵢ − ŷᵢ)² + Σ(ŷᵢ − ȳ)² Total: residual plus explained
R² = 1 − Σ(yᵢ − ŷᵢ)²/Σ(yᵢ − ȳ)² Coefficient of determination
MSE = Σ(yᵢ − ŷᵢ)²/n Mean squared error
RMSE = √(Σ(yᵢ − ŷᵢ)²/n) Root of the mean squared error
MAE = Σ|yᵢ − ŷᵢ|/n Mean absolute error
s² = Σ(yᵢ − ŷᵢ)²/(n − 2) Residual variance, one predictor
Σ(yᵢ − ŷᵢ) = 0 Residuals of a line with an intercept
With a subscript, and the other hats
ŷ₀ y hat sub zero ŷ and U+2080. The prediction at x₀.
ŷ₁ y hat one ŷ and U+2081.
ŷ₂ y hat two ŷ and U+2082.
ŷ₃ y hat three ŷ and U+2083.
ŷₙ y hat n ŷ and U+2099.
ŷⱼ y hat j ŷ and U+2C7C, subscript j.
ŷₜ y hat t ŷ and U+209C. The prediction for time t.
ŷₜ₊₁ y hat t plus one ŷ, U+209C, U+208A and U+2081. The next step of a forecast.
β̂ Beta hat β and U+0302. An estimated coefficient.
β̂₀ Beta hat zero β, U+0302 and U+2080. The estimated intercept.
β̂₁ Beta hat one β, U+0302 and U+2081. The estimated slope.
α̂ Alpha hat α and U+0302. The estimated intercept, where it is called α.
ε̂ Epsilon hat ε and U+0302. A residual.
b̂ b hat b and U+0302.
Styled and in plain letters
𝑦̂ Italic y hat U+1D466 U+0302. Mathematical italic small y and the hat, as in a formula.
𝐲̂ Bold y hat U+1D432 U+0302. Bold: the vector of predicted values.
𝒚̂ Bold italic y hat U+1D49A U+0302. Bold italic and the hat.
yhat Plain letters, as in code
y_hat Plain letters with an underscore
y-hat Plain letters with a hyphen
y^ Letter and caret
predicted y In words
fitted value In words
Codes that type it
ŷ ŷ in HTML
ŷ ŷ in HTML, by number
ŷ ŷ in HTML, hexadecimal
Ŷ Ŷ in HTML, by number
\hat{y} ŷ in LaTeX math
\hat{y}_i ŷᵢ in LaTeX math
\widehat{y} ŷ in LaTeX math, wide hat
\hat{\beta}_1 β̂₁ in LaTeX math
\hat{y} = b_0 + b_1 x Regression line in LaTeX math
\hat{y} = \hat{\beta}_0 + \hat{\beta}_1 x Regression line with beta hats in LaTeX math
\sum (y_i - \hat{y}_i)^2 Sum of squared residuals in LaTeX math
\^{y} ŷ in LaTeX text
y\hat ŷ in an equation box that reads UnicodeMath
=UNICHAR(375) ŷ in a spreadsheet cell
hat(y) ŷ in a label of an R plot
\u0177 ŷ in a JavaScript or Java string
\0177 ŷ in a CSS string
The letter in Welsh
tŷ House in Welsh t and U+0177. The Welsh word for house.
ŷd Grain in Welsh U+0177 and d. The Welsh word for grain, or corn in the British sense.
cŷn cŷn, not cyn c, U+0177 and n. Welsh: the hat tells it from cyn.
The hat alone
◌̂ Combining hat U+0302 on a dotted circle. Combining circumflex accent, which Unicode also calls hat. It goes after its letter.
ˆ Modifier circumflex U+02C6. A hat that stands by itself and sits on no letter.
How this list was compiled: Names and code points are from UnicodeData.txt, version 18.0.0 (unicode.org ); that Unicode notes ŷ as Welsh and calls U+0302 hat is from NamesList.txt of the same version (unicode.org ). The hat for an estimated value and the estimated line: en.wikipedia.org . The line, its intercept and slope, the sum of the residuals and n − 2: en.wikipedia.org . The sums of squares: en.wikipedia.org ; R²: en.wikipedia.org ; MSE, RMSE and MAE: en.wikipedia.org , en.wikipedia.org and en.wikipedia.org . ŷ = Xβ̂: en.wikipedia.org . The hat matrix: en.wikipedia.org . The hat in Welsh, cyn and cŷn: en.wikipedia.org ; tŷ and ŷd: en.wiktionary.org and en.wiktionary.org (all CC BY-SA 4.0). HTML names: html.spec.whatwg.org . LaTeX: \hat and \widehat in fontdef.dtx, \^ in ltoutenc.dtx (github.com ). \hat after its letter: Unicode Technical Note 28, section 3.10 (unicode.org ); the two spaces after it: support.microsoft.com . Spreadsheet: support.microsoft.com . R: stat.ethz.ch . Option keys: CLDR’s record of the two U.S. layouts (github.com ). Read on November 30, 2026. The choice and order are this page’s own. License: own work (facts from the Unicode Character Database, Unicode License v3, unicode.org , and from Wikipedia and Wiktionary, CC BY-SA 4.0, restated in this site’s own words)
How it works
Y hat is ŷ , the value of y that a fitted line predicts. It is one character, U+0177. The line is ŷ = b₀ + b₁x , and y − ŷ , observed less predicted, is the residual.
Read the full guide
Type it as a code
LaTeX: \hat{y} in math. HTML: ŷ or ŷ . Spreadsheet: =UNICHAR(375) .
One character or two
ŷ pasted from here is one character, so the hat is part of the letter. β, ε and b have no such character: β̂ is the letter and U+0302, and the font decides where the hat sits.
In plain text without symbols write yhat or y_hat. y^ can be read as a power left unfinished.
Questions and answers
What does y hat mean?
The predicted value of y. With the line ŷ = 2 + 3x , x = 4 gives ŷ = 14. If the observed y was 15, the residual y − ŷ is 1.
What is the difference between y, ŷ and ȳ?
y is the value observed, ŷ the value the line predicts for that x, and ȳ the mean of all the y values. A fitted line with b₁ = 0 predicts ȳ every time.
How do you type y hat in Word or on a Mac?
In Word type 0177, then Alt+X, or y\hat and two spaces in an equation box. The extended U.S. keyboard of a Mac has Option+6, then y; the plain U.S. one has no keys for it. ŷ is in neither Alt code table.
What is the difference between \hat and \widehat?
\hat sets a hat of one size over the letter. \widehat stretches with what is under it, so for a single y either will do.
Is ŷ a letter?
Yes, of Welsh: tŷ is house. The hat there marks a long vowel and is called to bach, little roof.
Notes
Some apps, games and sites remove or limit these characters, and their rules about names still apply. Screen readers handle styled text poorly, so keep anything a person needs to read in plain letters.
Text typed into this tool stays in your browser. It is never sent to us or to anyone else.
Character names and code points on this page were checked against the Unicode Character Database, version 18.0. Unicode is a trademark of Unicode, Inc., which is not connected with this site. If you spot a mistake, please tell us through the contact page.
This page is not affiliated with or endorsed by any social network, chat app, game or other platform named on it. Those names belong to their owners.