# Statistics Math Examples

### Here are some examples of statistical math

Mean: The mean, or average, of a set of data is calculated by adding up all the values and dividing by the number of values. For example, the mean of the data set [1, 2, 3, 4] is (1 + 2 + 3 + 4) / 4 = 2.5.

Variance: The variance of a set of data measures the spread of the data around the mean. It is calculated by finding the average of the squared deviations from the mean.

Standard Deviation: The standard deviation is the square root of the variance, and it provides a measure of how much the data deviates from the mean.

Correlation: Correlation measures the relationship between two variables. It is calculated using the covariance of the two variables divided by the product of their standard deviations. A positive correlation means that as one variable increases, the other variable tends to increase, while a negative correlation means that as one variable increases, the other variable tends to decrease.

Linear Regression: Linear regression is a statistical method used to model the relationship between two variables. It involves fitting a straight line to the data so that we can make predictions about the dependent variable based on the independent variable.

Probability: Probability is a measure of the likelihood of an event occurring. It is calculated as the number of favorable outcomes divided by the number of total possible outcomes. For example, the probability of rolling a 4 on a fair 6-sided die is 1/6.

These are just a few examples of the mathematical concepts used in statistics. There are many other statistical techniques and formulas that are used to analyze and make inferences from data.