🌐
Qualityandinnovation
qualityandinnovation.com › 2014 › 11 › 22 › typing-x-bar-y-bar-p-hat-q-hat-and-all-that-2
Typing x-bar, y-bar, p-hat, q-hat, and all that! In Microsoft Word (& Excel) – Quality and Innovation
November 22, 2014 - If you’re looking for a way to not have to do so many mouse clicks and interrupt your typing, there are options to TYPE many math symbols and operators. For example, “x\bar” will produce x̅, or “q\hat” will produce q̂. For Greek letters ...
🌐
Overleaf
overleaf.com › learn › latex › List_of_Greek_letters_and_math_symbols
List of Greek letters and math symbols - Overleaf, Online LaTeX Editor
An online LaTeX editor that’s easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.

mathematical notation

{\displaystyle {\hat {H}}}
A "hat" (circumflex (ˆ)), placed over a symbol is a mathematical notation with various uses. In statistics, a circumflex (ˆ), nicknamed a "hat", is used to denote an estimator or an estimated … Wikipedia
🌐
Wikipedia
en.wikipedia.org › wiki › Hat_notation
Hat notation - Wikipedia
October 8, 2025 - For instance, see the time-independent Schrödinger equation, where the Hamiltonian operator is denoted · H · ^ {\displaystyle {\hat {H}}} . H · ^ ψ · = E · ψ · {\displaystyle {\hat {H}}\psi =E\psi } Exterior algebra – Algebra associated to any vector space · Glossary of mathematical ...
Find elsewhere
🌐
Symbols to Copy
symbols.wentin.net
Symbols to Copy: Access a Wide Range of Text Symbols Instantly
Gimel Symbol · ℷ Copy · Script ... Copy · Double-Struck Capital C · ℂ Copy · Double-Struck Capital N · ℕ Copy · Maltese Cross · ✠ Copy · Inverted Ohm Sign · ℧ Copy · Script Capital P · ℘ Copy · Black Spade Suit · ♠ Copy · Commercial At · @ Copy · Double-Struck Italic Capital D · ⅅ Copy · Black Star · ★ Copy · Script Capital L · ℒ Copy · Double-Struck Capital Q ...
🌐
Reddit
reddit.com › r/notion › how do i type this in notion?
r/Notion on Reddit: How do I type this in Notion?
March 13, 2021 -

I am currently trying to type this using Latex onto my Notion page. I found out how to do the vector arrow and the subscript. But how do I do the hats on the i and j?

I am sorry if a little more research could have prevented me from posting this. Thanks in advance.

🌐
Shutterstock
shutterstock.com › search › q-hat
Q Hat royalty-free images
Find stock images in HD and millions of other royalty-free stock photos, 3D objects, illustrations and vectors in the Shutterstock collection. Thousands of new, high-quality pictures added every day.
🌐
Alt Codes
alt-codes.net
Alt Codes List of Alt Key Codes Symbols
Alt Codes, the all alt codes list for special characters and special symbols. Learn how to use alt key codes.
🌐
BrownMath
brownmath.com › swt › symbol.htm
Symbol Sheet / SWT
In geometric and binomial probability distributions, p is the probability of “success” (defined here in Chapter 6) on any one trial and q = (1−p) is the probability of “failure” (the only other possibility) on any one trial.
Top answer
1 of 5
31

An alternative (and very simple) solution consists in using the package yhmath (which, as far as I was able to understand from its documentation, requires the amsmath package).

With such a package (i.e. the yhmath) a "really" wide hat can be obtained by simply using the very same command

\widehat{}

As a beginner in LaTeX, I find this other possibility a little bit more friendly.

2 of 5
68

The question wasn't "should it be done?" But, for the same reason men climb mountains, "could it be done?" The answer, with the scalerel package, is yes. Thus, we introduce \reallywidehat [EDITED to add phantom rule below argument, so that baseline of result matches baseline of original argument. RE-EDITED to \ensuremath on the \widthof calculation (thanks to Thruston)]

See also my answer at Serious problem with \widebar for a related approach.

NEW ANSWER WITH stackengine

This answer is an improvement because it handles vertical space much better than the earlier solution.

\documentclass{article}
\usepackage{scalerel,stackengine}
\stackMath
\newcommand\reallywidehat[1]{%
\savestack{\tmpbox}{\stretchto{%
  \scaleto{%
    \scalerel*[\widthof{\ensuremath{#1}}]{\kern-.6pt\bigwedge\kern-.6pt}%
    {\rule[-\textheight/2]{1ex}{\textheight}}%WIDTH-LIMITED BIG WEDGE
  }{\textheight}% 
}{0.5ex}}%
\stackon[1pt]{#1}{\tmpbox}%
}
\parskip 1ex
\begin{document}

$\reallywidehat{zbcdefghijklm}$

$\reallywidehat{zbcdefghijk}$

$\reallywidehat{zbcdefghi}$

$\reallywidehat{zbcdefg}$

$\reallywidehat{zbcde}$

$\reallywidehat{zbc}$

$\reallywidehat{zb}$

$x\cdot\reallywidehat{a_1+a_2}\cdot y$

\end{document}

ALTERNATE ANSWER USING \mathchar"0362 (the \widehat accent) RATHER THAN \bigwedge

EDITED to use \mathchar"0362 rather than the normal carat accent (\mathchar"305E)

A comment requested this alternate form, which is perhaps superior to the given form above.

\documentclass{article}
\usepackage{scalerel,stackengine}
\stackMath
\newcommand\reallywidehat[1]{%
\savestack{\tmpbox}{\stretchto{%
  \scaleto{%
    \scalerel*[\widthof{\ensuremath{#1}}]{\kern.1pt\mathchar"0362\kern.1pt}%
    {\rule{0ex}{\textheight}}%WIDTH-LIMITED CIRCUMFLEX
  }{\textheight}% 
}{2.4ex}}%
\stackon[-6.9pt]{#1}{\tmpbox}%
}
\parskip 1ex
\begin{document}

$\reallywidehat{zbcdefghijklm}$

$\reallywidehat{zbcdefghijk}$

$\reallywidehat{zbcdefghi}$

$\reallywidehat{zbcdefg}$

$\reallywidehat{zbcde}$

$\reallywidehat{zbc}$

$\reallywidehat{zb}$

$x\cdot\reallywidehat{a_1+a_2}\cdot y$

$\widehat{zb}$ is actual widehat

\end{document}

EARLIER ANSWER WITH array

\documentclass{article}
\usepackage{scalerel}

\newcommand\reallywidehat[1]{\arraycolsep=0pt\relax%
\begin{array}{c}
\stretchto{
  \scaleto{
    \scalerel*[\widthof{\ensuremath{#1}}]{\kern-.5pt\bigwedge\kern-.5pt}
    {\rule[-\textheight/2]{1ex}{\textheight}} %WIDTH-LIMITED BIG WEDGE
  }{\textheight} % 
}{0.5ex}\\           % THIS SQUEEZES THE WEDGE TO 0.5ex HEIGHT
#1\\                 % THIS STACKS THE WEDGE ATOP THE ARGUMENT
\rule{-1ex}{0ex}
\end{array}
}

\begin{document}

$\reallywidehat{zbcdefghijklm}$

$\reallywidehat{zbcdefghijk}$

$\reallywidehat{zbcdefghi}$

$\reallywidehat{zbcdefg}$

$\reallywidehat{zbcde}$

$\reallywidehat{zbc}$

$\reallywidehat{zb}$

$x\cdot\reallywidehat{a_1+a_2}\cdot y$

\end{document}

🌐
Quora
quora.com › What-does-hat-q-mean-in-statistics
What does \hat{q} mean in statistics?
Example: if 60% of people have a black car then phat is .6, and qhat is 1-.6 = .4. qhat is the proportion that is not something (for the above example qhat is the proportion of people that do not have a black car).
🌐
Toptal
toptal.com › designers › htmlarrows › symbols
HTML Symbols, Entities and Codes — Toptal Designers
Easily find HTML symbols, entities, characters and codes with ASCII, HEX, CSS and Unicode values; including copyright sign, trademark sign and at symbol.
🌐
Spreadsheet Daddy
spreadsheetdaddy.com › home › excel › how to☝️ type x-bar, y-bar, p-hat, and other statistical symbols in microsoft excel
How To☝️ Type X-bar, Y-bar, P-hat, and Other Statistical Symbols in Excel
September 12, 2025 - Statistical symbols in Excel can be tricky - but not if you're armed with this tutorial. Read on to learn how to type x-bar, y-bar, p-hat, x-hat, and other symbols.
🌐
Physics Read
physicsread.com › home › how to write a hat(^) symbol in latex?
How to write a hat(^) symbol in LaTeX?
September 21, 2025 - LaTeX provides multiple ways to use this symbol, both in math mode and text mode, allowing for precise and professional formatting. The \hat{} command in LaTeX places a small hat (^) above a single character, making it ideal for marking vectors or distinguishing variables in equations.