I have my code for standard deviation formula as follow:

```
\documentclass[11pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\begin{document}
\[ t=\dfrac{\overline{X}_{1}-\overline{X}_{2}}
{\sqrt{\dfrac{\left\lbrace\Sigma X_{1}^{2} \dfrac{\left( \Sigma
X_{1}\right)^{2}}{N_{1}}\right\rbrace+\left\lbrace\Sigma X_{2}^{2}
\dfrac{\left(\Sigma X_{2}\right)^{2}}{N_{2}}\right\rbrace}
{N_{1}+N_{2}-2}\text{x}\left( \dfrac{N_{1}+N_{2}}{N_{1}N_{2}} \right)}} \]
\end{document}
```

It looks complicated. Is there any simple way to make the same formula?

## Best Answer

I must confess I'm not sure if your formula is correct. For sure, the formula does

notdenote astandard deviation, as would appear to be implied by your query. Instead, it appears to be an expression for thet-testof the null hypothesis that two population means are equal, assuming the draws are iid (independently and identically distributed).The following screenshot reproduces your original formula in the first row, a typographically simplified version of that formula, in which I've replaced all instances of

`\Sigma`

with`\sum`

, in the second row, and what I believe to be the standard form of the t-test in the third row. For what it's worth, it's the formula I learned in an econometrics course while in grad school, many years ago. And, I daresay, the formula in the third row is easier to read and parse than those in rows 1 and 2...