This project analyzes the height distribution of two synthetic groups (A and B) based on normal distributions.
- Group A: Heights follow a normal distribution with a mean of 175 cm and a standard deviation of 5 cm.
- Group B: Heights follow a normal distribution with a mean of 170 cm and a standard deviation of 15 cm.
We randomly generate 100 height values for each group and analyze:
- Mean and standard deviation
- Boxplots to visualize spread and outliers
- Which group has greater variability?
- Generate height data for each group
- Calculate:
- Mean
- Standard Deviation
- variance
- Range
- Interquartile Range
- Coefficient of Variation
- Plot boxplots
- Interpret the results
-
Mean: 174.48 -
Standard Deviation: 4.52 -
variance: 20.413054867346467 -
Range: 43.042959152030306 -
Interquartile Range: 5.034288612542554 -
Coefficient of Variation: 0.00025894434958140586
-
Mean: 170.33 -
Standard Deviation: 14.23 -
variance: 202.58767172028197 -
Range: 69.58410572832992 -
Interquartile Range: 20.15746456230474 -
Coefficient of Variation: 0.0008356101587277632
-
Python 3.x
-
NumPy
-
Matplotlib
-
scipy Install required libraries:
pip install numpy matplotlib scipyπ§βπ» Author Made with β€οΈ by FarhadGhaherdoost