\documentclass{article}
\usepackage{amsmath}
\usepackage{fancyhdr}
\usepackage{amssymb}
\pagestyle{fancy}
\rhead{Homework for Stats Chapter 4\textbackslash Lab}
\cfoot{Page \thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\begin{document}
\section{4.4 Excercises}
\begin{enumerate}
\item For each experiment, list the sample space and the probabilities
for each outcome. Compute the expected number of heads in each case.
\begin{enumerate}
\item Two independent tosses of a fair coin\\
\{(HH),(HT),(TH),(TT)\}\\
$\mathbb{P}(HH)=\frac{1}{4} \mathbb{P}(HT)
=\frac{1}{4}\mathbb{P}(TH)=\frac{1}{4}\mathbb{P}(TT)
=\frac{1}{4}$\\
\begin{align}
\mathbb{E}\left ( H\right )=\sum _{i=0}H_i\cdot p_i & =2\cdot\frac{1}{4}+1\cdot\frac{1}{4}+1\cdot\frac{1}{4}+0\cdot\frac{1}{4}\\
& =\frac{1}{2}+\frac{1}{4}+\frac{1}{4}\\
& =1\\
\end{align}
\end{enumerate}
\end{enumerate}
\end{document}
Can't see where I'm messing up. I've closed everything. Getting "Paragraph ended before \align was complete.

\end{align}– Sep 25 '14 at 02:06\documentclass{article} \usepackage{amsmath,amsfonts} \begin{document} \begin{align} \mathbb{E}\left ( H\right )=\sum _{i=0}H_i*p_i & =2\cdot\frac{1}{4}+1\cdot\frac{1}{4}+1\cdot\frac{1}{4}+0\cdot\frac{1}{4}\\ & =\frac{1}{2}+\frac{1}{4}+\frac{1}{4}\\ & =1 \end{align} \end{document}. – Sep 25 '14 at 02:06{}markers at the top of the editing window -- and by using backquotes for inline text. – Sep 25 '14 at 02:15align, you should also not have a\\on the last line in analign. – Peter Grill Sep 25 '14 at 03:15{inside thealignenvironment. See brackets - What is "! paragraph ended before \align was complete"? - TeX - LaTeX Stack Exchange. ■ See also: math mode - Blank lines in align environment - TeX - LaTeX Stack Exchange ;; math mode - Why align and equation environment do not tolerate empty lines? - TeX - LaTeX Stack Exchange – user202729 Oct 09 '22 at 05:12