Statistics Guide 📊📐

Math Behind Data Science

1. What is Statistics?

Statistics is the study of collecting, analyzing, and interpreting data.

2. Types

Descriptive → Summarize data
Inferential → Make predictions

3. Mean (Average)

mean = sum(values) / n

4. Median

Middle value after sorting

5. Mode

Most frequent value

6. Variance

Measures spread of data

7. Standard Deviation

sqrt(variance)

8. Probability

Probability = favorable / total

9. Python Example

import numpy as np

data = [1,2,3,4,5]

print(np.mean(data))
print(np.median(data))
print(np.std(data))

10. Real Use Cases