Pages

Friday, April 11, 2014

Important Statistics Formulas

Statistics Tutorial: Important Statistics Formulas

This web page presents statistics formulas described in the Stat Trek tutorials. Each formula links to a web page that explains how to use the formula.

Parameters

  • Population mean = μ = ( Σ Xi ) / N
  • Population standard deviation = σ = sqrt [ Σ ( Xi - μ )2 / N ]
  • Population variance = σ2 = Σ ( Xi - μ )2 / N
  • Variance of population proportion = σP2 = PQ / n
  • Standardized score = Z = (X - μ) / σ
  • Population correlation coefficient =
    ρ = [ 1 / N ] * Σ { [ (Xi - μX) / σx ] * [ (Yi - μY) / σy ] }

Statistics

Unless otherwise noted, these formulas assume simple random sampling.

  • Sample mean = x = ( Σ xi ) / n
  • Sample standard deviation = s = sqrt [ Σ ( xix )2 / ( n - 1 ) ]
  • Sample variance = s2 = Σ ( xix )2 / ( n - 1 )
  • Variance of sample proportion = sp2 = pq / (n - 1)
  • Pooled sample proportion = p = (p1 * n1 + p2 * n2) / (n1 + n2)
  • Pooled sample standard deviation =

    • sp = sqrt [ (n1 - 1) * s12 + (n2 - 1) * s22 ] / (n1 + n2 - 2) ]
  • Sample correlation coefficient = 

    • r = [ 1 / (n - 1) ] * Σ { [ (xi - x) / sx ] * [ (yi - y) / sy ] }

Correlation


  • Pearson product-moment correlation = r = Σ (xy) / sqrt [ ( Σ x2 ) * ( Σ y2 ) ]
  • Linear correlation (sample data) =
    r = [ 1 / (n - 1) ] * Σ { [ (xi - x) / sx ] * [ (yi - y) / sy ] }
  • Linear correlation (population data) =

    • ρ = [ 1 / N ] * Σ { [ (Xi - μX) / σx ] * [ (Yi - μY) / σy ] }

Simple Linear Regression

  • Simple linear regression line: y = b0 + b1x
  • Regression coefficient = b1 = Σ [ (xi - x) (yi - y) ] / Σ [ (xi - x)2]
  • Regression slope intercept = b0 = y - b1 * x
  • Regression coefficient = b1 = r * (sy / sx)
  • Standard error of regression slope =
    sb1 = sqrt [ Σ(yi - yi)2 / (n - 2) ] / sqrt [ Σ(xi - x)2 ]

Counting

  • n factorial: n! = n * (n-1) * (n - 2) * . . . * 3 * 2 * 1. By convention, 0! = 1.
  • Permutations of n things, taken r at a time: nCr = n! / (n - r)!
  • Combinations of n things, taken r at a time: nCr = n! / r!(n - r)! = nPr / r!

Probability

  • Rule of addition: P(A  B) = P(A) + P(B) - P(A  B)
  • Rule of multiplication: P(A  B) = P(A) P(B|A)
  • Rule of subtraction: P(A') = 1 - P(A)

Random Variables

In the following formulas, X and Y are random variables, and a and b are constants.

  • Expected value of X = E(X) = μx = Σ [ xi * P(xi) ]
  • Variance of X =
    Var(X) = σ2 = Σ [ xi - E(x) ]2 * P(xi) = Σ [ xi - μx ]2 * P(xi)
  • Normal random variable = z-score = z = (X - μ)/σ
  • Chi-square statistic = Χ2 = [ ( n - 1 ) * s2 ] / σ2
  • f statistic = f = [ s1212 ] / [ s2222 ]
  • Expected value of sum of random variables =
    E(X + Y) = E(X) + E(Y)
  • Expected value of difference between random variables =
    E(X - Y) = E(X) - E(Y)
  • Variance of the sum of independent random variables =
    Var(X + Y) = Var(X) + Var(Y)
  • Variance of the difference between independent random variables =
    Var(X - Y) = E(X) + E(Y)

Sampling Distributions

  • Mean of sampling distribution of the mean = μx = μ
  • Mean of sampling distribution of the proportion = μp = P
  • Standard deviation of proportion = σp = sqrt[ P * (1 - P)/n ] = sqrt( PQ / n )
  • Standard deviation of the mean = σx = σ/sqrt(n)
  • Standard deviation of difference of sample means =
    σd = sqrt[ (σ12 / n1) + (σ22 / n2) ]
  • Standard deviation of difference of sample proportions =
    σd = sqrt{ [P1(1 - P1) / n1] + [P2(1 - P2) / n2] }

Standard Error

  • Standard error of proportion = SEp = sp = sqrt[ p * (1 - p)/n ] = sqrt( pq / n )
  • Standard error of difference for proportions =
    SEp = sp = sqrt{ p * ( 1 - p ) * [ (1/n1) + (1/n2) ] }
  • Standard error of the mean = SEx = sx = s/sqrt(n)
  • Standard error of difference of sample means =
    SEd = sd = sqrt[ (s12 / n1) + (s22 / n2) ]
  • Standard error of difference of paired sample means =
    SEd = sd = { sqrt [ (Σ(di - d)2 / (n - 1) ] } / sqrt(n)
  • Pooled sample standard error = spooled = sqrt [ (n1 - 1) * s12 + (n2 - 1) * s22 ] / (n1 + n2 - 2) ]
  • Standard error of difference of sample proportions =
    sd = sqrt{ [p1(1 - p1) / n1] + [p2(1 - p2) / n2] }

Discrete Probability Distributions

  • Binomial formula: P(X = x) = b(xn, P) = nCx * Px * (1 - P)n - x = nCx * Px * Qn - x
  • Mean of binomial distribution = μx = n * P
  • Variance of binomial distribution = σx2 = n * P * ( 1 - P )
  • Negative Binomial formula: P(X = x) = b*(xr, P) = x-1Cr-1 * Pr * (1 - P)x - r
  • Mean of negative binomial distribution = μx = rQ / P
  • Variance of negative binomial distribution = σx2 = r * Q / P2
  • Geometric formula: P(X = x) = g(xP) = P * Qx - 1
  • Mean of geometric distribution = μx = Q / P
  • Variance of geometric distribution = σx2 = Q / P2
  • Hypergeometric formula: P(X = x) = h(xNnk) = [ kCx ] [ N-kCn-x ] / [ NCn ]
  • Mean of hypergeometric distribution = μx = n * k / N
  • Variance of hypergeometric distribution = σx2 = n * k * ( N - k ) * ( N - n ) / [ N2 * ( N - 1 ) ]
  • Poisson formula: P(x; μ) = (e) (μx) / x!
  • Mean of Poisson distribution = μx = μ
  • Variance of Poisson distribution = σx2 = μ
  • Multinomial formula: P = [ n! / ( n1! * n2! * ... nk! ) ] * ( p1n1 * p2n2 * . . . * pknk )

Linear Transformations

For the following formulas, assume that Y is a linear transformation of the random variable X, defined by the equation: Y = aX + b.
  • Mean of a linear transformation = E(Y) = Y = aX + b.
  • Variance of a linear transformation = Var(Y) = a2 * Var(X).
  • Standardized score = z = (x - μx) / σx.
  • t-score = t = (x - μx) / [ s/sqrt(n) ].

Estimation

  • Confidence interval: Sample statistic + Critical value * Standard error of statistic
  • Margin of error = (Critical value) * (Standard deviation of statistic)
  • Margin of error = (Critical value) * (Standard error of statistic)

Hypothesis Testing

  • Standardized test statistic = (Statistic - Parameter) / (Standard deviation of statistic)
  • One-sample z-test for proportions: z-score = z = (p - P0) / sqrt( p * q / n )
  • Two-sample z-test for proportions: z-score = z = z = [ (p1 - p2) - d ] / SE
  • One-sample t-test for means: t-score = t = (x - μ) / SE
  • Two-sample t-test for means: t-score = t = [ (x1 - x2) - d ] / SE
  • Matched-sample t-test for means: t-score = t = [ (x1 - x2) - D ] / SE = (d - D) / SE
  • Chi-square test statistic = Χ2 = Σ[ (Observed - Expected)2 / Expected ]

Degrees of Freedom

The correct formula for degrees of freedom (DF) depends on the situation (the nature of the test statistic, the number of samples, underlying assumptions, etc.).
  • One-sample t-test: DF = n - 1
  • Two-sample t-test: DF = (s12/n1 + s22/n2)2 / { [ (s12 / n1)2 / (n1 - 1) ] + [ (s22 / n2)2 / (n2 - 1) ] }
  • Two-sample t-test, pooled standard error: DF = n1 + n2 - 2
  • Simple linear regression, test slope: DF = n - 2
  • Chi-square goodness of fit test: DF = k - 1
  • Chi-square test for homogeneity: DF = (r - 1) * (c - 1)
  • Chi-square test for independence: DF = (r - 1) * (c - 1)

Sample Size

Below, the first two formulas find the smallest sample sizes required to achieve a fixed margin of error, using simple random sampling. The third formula assigns sample to strata, based on a proportionate design. The fourth formula, Neyman allocation, uses stratified sampling to minimize variance, given a fixed sample size. And the last formula, optimum allocation, uses stratified sampling to minimize variance, given a fixed budget.
  • Mean (simple random sampling): n = { z2 * σ2 * [ N / (N - 1) ] } / { ME2 + [ z2 * σ2 / (N - 1) ] }
  • Proportion (simple random sampling): n = [ ( z2 * p * q ) + ME2 ] / [ ME2 + z2 * p * q / N ]
  • Proportionate stratified sampling: nh = ( Nh / N ) * n
  • Neyman allocation (stratified sampling): nh = n * ( Nh * σh ) / [ Σ ( Ni * σi ) ]
  • Optimum allocation (stratified sampling):
    nh = n * [ ( Nh * σh ) / sqrt( ch ) ] / [ Σ ( Ni * σi ) / sqrt( ci ) ]

No comments:

Post a Comment

Blogspot Blogs 🛐

  1. ∰ NYC Physics Tutor
  2. ∰ Physics Concepts Expansions
  3. ∰ PHYSICS OLYMPIADS
  4. ☈ Bay Ridge
  5. ☕ Drinking Games
  6. ☭ СовНарКом
  7. ♛ Classifieds.HeyC...
  8. ⚓ Italy Trip
  9. ✄✄✄ 1627 Broadway 10019 - Short Haircut NYC: 212-307-1840
  10. ✌ LuxLimCom
  11. ✌ Schedule RoadRunner NY Fast
  12. ✌ TutorState 718-223-0228
  13. ✡ Mountain Jews Wedding
  14. 10100 Jamison Avenue Chess Academy347-3...
  15. 1627 Broadway - Shoe Shine NYC: (212) 307-1840
  16. 347-307-7834 Chess Academy
  17. 347-307-7834 Chess Academy at Kleinlife ♟️
  18. 347-307-7834 Chess Academy in Kleinlife
  19. 347-307-7834 Chess School ♞♝♜♛♚♟♘♙♗♖♕♔
  20. Algebra Based General Physics II 🧲
  21. Alite Album ❤️
  22. America's Views ✈
  23. Astronomy - Astrophysics ಊಊಊ
  24. Astrophysics, Cosmology, and Astronomy ☀️
  25. Barcelona Photos 2013
  26. Bible Gateway 🕮
  27. Broadway & 50th St 🏙️
  28. BROADWAY 🗽
  29. Broadway NYC 🍎
  30. Brooklyn Physics Tutor: (347)770-1877
  31. Brooklyn Roads Lyrics 🌉
  32. Chess Academy ♙♗♖♕ 347-307-7834
  33. Chess Academy at Kleinlife:34...
  34. Chess Academy in Jamison Avenue: 347-307-7834 ♞♝♜♛♚♟♘♙♗♖♕♔
  35. Chess Academy in Kleinlife: 347-307-7834 ♞♝♜♛♚♟♘♙♗♖♕♔
  36. Chess Academy: 347-307-7834
  37. Chess Academy: 347-307-7834 ♟️
  38. Chess Classes: 347-307-7834 ♞
  39. Chess Classes: 347-307-7834 ♟️
  40. Chess Club - 347-307-7834
  41. Chess Club: 347-307-7834
  42. Chess Corner: 347-307-7834
  43. Chess Lessons: 347-307-7834
  44. Chess: 347-307-7834
  45. Chess♙♗♖♕ 347-307-7834
  46. Driving Games 🚗
  47. DrVita is Fake
  48. E=mc² New York City Physics Tutors 🧲
  49. English Songs with Subtitles Песни с английскими субтитрами 🎵
  50. Environmental Science 🕰️
  51. Enzyme Informatics 📝
  52. Eugenia-2006
  53. Fashioned Prints on Awesome Products 😵
  54. Fast Road Bicycle ⏩
  55. Federal Ukraine 🎄🇺🇦
  56. Flag ⛳
  57. General Astronomy 🌑🌒🌓🌔🌕🌖🌗🌘...
  58. General Astronomy 🔭
  59. General Physics 🛰
  60. Gia Basilia
  61. Girona Photos 🏠
  62. Glow in the Dark 👦🏿
  63. Good 🙅
  64. Granada Photos
  65. Gynecology ⚕️
  66. Haircuts ✂️
  67. History ✄✄✄
  68. Hurried Activity ✌✌✌
  69. Igor Chess Club: 347-307-7834 ♟️
  70. Illusions ಊಊಊ
  71. Jigsaw Puzzle 🧩
  72. Kremlin PR ☭
  73. Kremlin PR Info 🪆
  74. Lenta Chel News ಊಊಊ
  75. LuxLim
  76. Manhattan
  77. Mask Broadway ಊಊಊ
  78. Masks ✂✂✂
  79. Math, Physics, Statistics, Computer Science Tutor 📔
  80. Medium
  81. Men's Business Style 👔
  82. Midtown West 🚌
  83. Modern Prints on Awesome Products
  84. Molecular Dynamics 🧬
  85. Monica's Birthday Party 💏
  86. Mountain Jews Wedding 🕎
  87. Near Me
  88. New York
  89. New York State Drinking Testosterone 👌
  90. New York State Roadrunner Testosterone
  91. New York State Roadrunner Testosterones
  92. Norilsk City 🥶
  93. OpArt - Optical Illusions ಊಊಊ
  94. OpArt 🎨
  95. Optical Art - Optical illusions ✂✂✂
  96. Optical Art 📀
  97. Philadelphia Chess Academy at Kleinlife:<c...
  98. Philadelphia Chess Academy at Kleinlife:34...
  99. Physics 🧲
  100. Physics Tutor: (347)770-1877
  101. Physics, Mathematics, Statistics
  102. Play Chess: 347-307-7834 ♞♝♜♛♚♟♘♙♗♖♕♔
  103. Play Chess: 347-307-7834 ♟️
  104. Prints Shop Midtown East
  105. Private Tutor 🔡
  106. Private Tutor: Physics, Mathematics, Statistics. Brooklyn, Bay Ridge
  107. Private Tutor:⚛️ Physics, Mathematics, Statistics Brooklyn, Bay Ridge
  108. Purim ✡️
  109. Purim 🕍
  110. RastyrCom
  111. Road Trip Planner
  112. Roadrunner Testosterone New York State 🗽
  113. Rockefeller Center
  114. Rush Road to Bangkok
  115. Rush Roadrunner Testosterone Appointment 🚘
  116. Sandals Vacation 🌴
  117. Schedule Roadrunner Testosterone 😲
  118. Science Art Prints on Awesome Products ⚗️
  119. Science Artist 🧷
  120. Science News SN
  121. Science Posters 🧪
  122. Shoe Shine Times Square
  123. Shop of Psychedelic Prints on Amazing Products
  124. Soviet Union♒
  125. T&P 📚🔨
  126. Times Square
  127. Trip to Las Vegas 2007
  128. Tutor: Physics, Mathematics, Statistics
  129. V=⅓πd³ Brooklyn Math Tutor 🤖
  130. Vintage Prints on Awesome Products
  131. Walking Manhattan 🗽
  132. Word of the Day
  133. Антидиктатура 🗳️
  134. Лето будет!
  135. Физика
  136. Физика ⚠️- Public Group
  137. Фотографии Барселоны
  138. ⶌⶌⶌ Fast Romantics
  139. ⶌⶌⶌ Quick Road Trip Ideas
  140. ⶌⶌⶌ Roadrunner Testosterone New York City.
  141. ⶌⶌⶌ Roadrunner Testosterone Scheduling NY 🏴󠁵󠁳󠁮󠁹󠁿
  142. ⶌⶌⶌ Rush Roadrunner Testosterone NY
  143. ⶌⶌⶌ Speedy Road Test Ny
  144. இ Elite Albums
  145. ➖ Math T-Shirts ➕
  146. 🧲 Physics T-Shirt 🥼
  147. General Astronomy 🌑🌒🌓🌔🌕🌖🌗🌘🌑
  148. Mathematics Punk ⚠️
  149. Astronomy Prints 🌌
  150. Chess T-Shirt ♞
  151. General Astronomy ಖಗೋಳಶಾಸ್ತ್ರ
  152. General Astronomy 🔭
  153. Mathematics T-Shirt 👕
  154. Computer Methods in Science 🖥️
  155. Psychedelic Prints 😲
  156. Unconventional Physics 🧑‍🔬
  157. Non-Traditional Physics 🔬
  158. Non-Traditional Physics ⚗️
  159. Балкарцы, Таулула, Горцы, Tawlula
  160. Tawlula 🧑‍🤝‍🧑
  161. Tawlu 🏔️
  162. Scientific Prints 📄
  163. Artistic Prints 📃
  164. Prints on Awesome Products 🚩
  165. Bible Gateway 🕮
  166. Science Art Prints on Awesome Products ⚗️
  167. Math Prints 🧮
  168. Famous Painter Prints 🎨
  169. Famous Paintings 🖼️
  170. Election 🗳️
  171. Physics Standard Model Theory 🧲
  172. Malkarly 👨‍👩‍👦‍👦
  173. New York 🗽
  174. Grigori Yefimovich Rasputin was a Russian mystic and self-proclaimed holy man 🛐