I have the following formula in LaTeX, based on Fisher\'s Exact Test. (NOTE: requires the use of the amsmath package for \\binom.)
amsmath
\\binom
For fraction you can also use continued fraction \cfrac in combination with \left and \right.
\cfrac
\left
\right
Take a look here>>