Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Understanding Central Tendency & Spread | Section
Python Math Module Essentials: Trigonometry, Logarithms, and Constants - 1769704232288

Understanding Central Tendency & Spread

Svep för att visa menyn

Mean (Average)

Note
Definition

The mean is the sum of all values divided by the number of values. It represents the "central" or "typical" value in your dataset.

Formula:

Mean=xin\text{Mean} = \frac{\sum x_i}{n}

Example:
If your website had 100, 120, and 110 visitors over three days:

100+120+1103=110\frac{100 + 120 + 110}{3} = 110

Interpretation:
On average, the site received 110 visitors per day.

Variance

Note
Definition

Variance measures how far each number in the set is from the mean. It gives a sense of how "spread out" the data is.

Formula:

σ2=(xiμ)2n\sigma^2 = \frac{\sum (x_i - \mu)^2}{n}

Example (using the previous data):

  • Mean = 110;
  • (100110)2=100(100 − 110)^2 = 100;
  • (120110)2=100(120 − 110)^2 = 100;
  • (110110)2=0(110 − 110)^2 = 0.

Sum = 200

Variance=200366.67\text{Variance} = \frac{200}{3} \approx 66.67

Interpretation:
The average squared distance from the mean is about 66.67.

Standard Deviation

Note
Definition

Standard deviation is the square root of the variance. It brings the spread back to the original units of the data.

Formula:

σ=σ2\sigma = \sqrt{\sigma^2}

Example:
If variance is 66.67:

σ=66.678.16\sigma = \sqrt{66.67} \approx 8.16

Interpretation:
On average, each day's visitor count is about 8.16 away from the mean.

Real-World Problem: Website Traffic Analysis

Problem:
A data scientist records the number of website visitors over 5 days:

120,150,130,170,140120, 150, 130, 170, 140

Step 1 — Mean:

120+150+130+170+1405=142\frac{120 + 150 + 130 + 170 + 140}{5} = 142

Step 2 — Variance:

  • (120142)2=484(120 - 142)^2 = 484;
  • (150142)2=64(150 - 142)^2 = 64;
  • (130142)2=144(130 - 142)^2 = 144;
  • (170142)2=784(170 - 142)^2 = 784;
  • (140142)2=4(140 - 142)^2 = 4.
Variance=484+64+144+784+45=14805=296\text{Variance} = \frac{484+64+144+784+4}{5} = \frac{1480}{5} = 296

Step 3 — Standard Deviation:

σ=29617.2\sigma = \sqrt{296} \approx 17.2

Conclusion:

  • Mean = 142 visitors per day;
  • Variance = 296;
  • Standard Deviation = 17.2.

The website traffic varies by about 17.2 visitors from the average day.

question mark

What is the relationship between variance and standard deviation?

Vänligen välj det korrekta svaret

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 46

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Avsnitt 1. Kapitel 46
some-alt