Essential Statistics Formulas Guide
Essential Statistics Formulas Guide
The law of total probability is used to evaluate the total probability of an event by considering all possible ways it can occur, partitioning the sample space into exhaustive and mutually exclusive events. It is expressed as P(A) = Sum of [P(A given Bi) * P(Bi)] for all Bi. In a real-world scenario, consider calculating the overall probability of network failure (A) by considering different causes such as hardware failure (B1), software failure (B2), and external factors (B3). By assessing each probability and how likely each cause results in failure, you apply the law to compute the total probability of failure .
Bayes' Theorem is used in scenarios where we want to update the probability of an event based on new evidence or information. It is particularly useful in fields such as medical diagnosis, machine learning, and risk assessment. The theorem is formulated as P(A given B) = [P(B given A) * P(A)] / P(B), where P(A given B) is the posterior probability, P(B given A) is the likelihood, P(A) is the prior probability of A, and P(B) is the prior probability of B .
The coefficient of determination, denoted R^2, measures the proportion of the variance in the dependent variable that is predictable from the independent variable(s). It is calculated as R^2 = 1 - [Sum of (Y - Predicted Y)^2 / Sum of (Y - Mean Y)^2]. R^2 ranges from 0 to 1, where a higher value indicates a better fit of the model to the data, representing that more observed variation is explained by the model inputs. It is a key metric to evaluate the goodness-of-fit of the model .
The sample variance is calculated by taking the sum of the squared differences between each data point and the mean, and then dividing that sum by the number of values minus one. It is important in statistical analysis because it provides a measure of how much the values in a dataset are spread out around the mean. This helps in understanding the data's variability and is a critical element in inferential statistics and hypothesis testing .
Conditional probability of event A given event B is calculated using the formula P(A given B) = P(A and B) / P(B). For example, if we have two events: A is drawing a red card from a deck of cards, and B is drawing a card that is a heart. P(A and B) would be the probability of drawing a red heart card, and P(B) would be the probability of drawing a heart. Given that there are 13 hearts and 26 red cards in a standard deck, P(A given B) = 13/52 divided by 26/52, simplifying to 0.5 .
Sample size significantly impacts the accuracy of statistical tests and confidence intervals by influencing the precision of estimates and the power of tests. Larger sample sizes generally provide more reliable and precise estimates, resulting in narrower confidence intervals and higher statistical test power (the probability of correctly rejecting a false null hypothesis). This relationship is mathematically captured in the formulas for confidence intervals and hypothesis tests, where the standard error of the mean (used in both) decreases as the square root of the sample size increases, thus enhancing precision .
Simple linear regression is used to predict the value of a dependent variable (Y) based on the value of an independent variable (X). The predictive model follows the formula Y = b0 + b1 * X, where b0 is the intercept and b1 is the slope. The slope, b1, is calculated as the sum of the products of the deviations of each pair (X - Mean X) and (Y - Mean Y) divided by the sum of the squared deviations of each X from its mean, i.e., b1 = Sum[(X - Mean X)(Y - Mean Y)] / Sum[(X - Mean X)^2]. This method is useful for identifying relationships and making forecasts in various fields like economics, biology, or engineering .
The Z-score is essential in statistics because it allows for the standardization of data, thereby facilitating comparisons between different datasets or measurements. It is calculated using the formula Z = (X - Mean) / Standard Deviation. By transforming values into Z-scores, we can determine how many standard deviations a data point is from the mean, which is crucial for probability calculations and hypothesis testing .
Hypothesis testing plays a critical role in statistical analysis as it allows researchers to make inferences and decisions about population parameters based on sample data. The Z-test is used when the population variance is known or when the sample size is large enough for the Central Limit Theorem to apply, using the formula Z = (Sample Mean - Population Mean) / (Population Std Dev / sqrt(n)). The T-test, on the other hand, is used when the population variance is unknown and the sample size is small, using the formula T = (Sample Mean - Population Mean) / (Sample Std Dev / sqrt(n)). The main difference lies in the use of standard deviation and the distribution each test relies on, with the T-test accounting for additional uncertainty in small samples .
When the population variance is known, the confidence interval for the mean is calculated using the standard normal distribution (Z distribution): CI = Sample Mean ± Z * (Population Std Dev / sqrt(n)). When the variance is unknown, the confidence interval is calculated using the t-distribution: CI = Sample Mean ± T * (Sample Std Dev / sqrt(n)). The main difference lies in the distribution used: the Z-distribution assumes variance is known and uses a standard normal curve, while the t-distribution accounts for extra uncertainty from estimating variance .