Warum sagt mir LaTeX, dass ein { fehlt?

Warum sagt mir LaTeX, dass ein { fehlt?

Wenn ich mein Dokument mit dem folgenden Code kompiliere, ist die PDF-Ausgabe zwar zufriedenstellend, aber es tritt eine Fehlermeldung auf:

43
Missing { inserted.
<to be read again> 
                   \gdef 
l.43 \item $\mu_\hat{p}
                       $ = mean of all possible values of $\hat{p} = \pi$. \\

\begin{itemize}
\item $\mu_\hat{p}$ = mean of all possible values of $\hat{p} = \pi$. \\
\item $\sigma_\hat{p}$ = standard deviation of all possible values of \^p =     $\sqrt{\frac{\pi(1-\pi)}{n}}$ \\
\item CLT (for \^p): If $n\pi \geq 10$ \underline{AND} $n(1-\pi) \geq to$, then the histogram of all possible values of \^p will be approximately normal. \\
\end{itemize}

Was habe ich falsch gemacht?

Antwort1

Sie benötigen Klammern für die Indizes: \mu_{\hat{p}}und\sigma_{\hat{p}}

\documentclass{article}
\usepackage{amssymb}
\begin{document}

\begin{itemize}
\item $\mu_{\hat{p}}$ is the mean of all possible values of $\hat{p} = \pi$.
\item $\sigma_{\hat{p}}$ represents the  standard deviation of all possible values of $\hat{p} =     \sqrt{\frac{\pi(1-\pi)}{n}}$
\item CLT (for $\hat{p}$): If $n\pi \geq 10$ \underline{AND} $n(1-\pi) \geq to$, then the histogram of all possible values of $\hat{p}$ will be approximately normal.
\end{itemize}

\end{document}

Bildbeschreibung hier eingeben

Ich habe der Konsistenz halber auch den Text \^pin die Mathematik geändert und das am Ende jedes Wortes weggelassen (diese erzeugen undefull ). Vielleicht meinten Sie statt so etwas wie ?\hat{p}\\\item\hboxes$n(1-\pi) \geq to$$n(1-\pi) \geq t_{0}$

Das Unterstreichen ist kein schönes typografisches Merkmal, daher würde ich Ihnen auch vorschlagen, es zu unterdrücken.

verwandte Informationen