Skip to content
Exercises · Q5

Q.Consider the temperature (in Celsius) of 7 days of a week as 34, 34, 27, 28, 27, 34, 34. Identify the appropriate statistical technique to be used to calculate the following:

(a) Find the average temperature.
(b) Find the temperature Range of that week.
(c) Find the standard deviation temperature.
CBSENCERTSubjective· 3mImportance★★★★★
12% · 12/97 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Use arithmetic mean for average, range (max − min) for spread, and standard deviation for variability around the mean.

Understanding the Statistical Techniques

When we have a dataset of numerical observations—here, daily temperatures—we need different measures to summarize and understand its characteristics. Each part of this question asks for a specific statistical property, and each requires its own technique.

The temperatures for the week are: 34, 34, 27, 28, 27, 34, 34 (in °C).


(a) Average Temperature – Arithmetic Mean

The arithmetic mean is the appropriate technique to find the average. It gives us the central tendency by summing all values and dividing by the count.

Why the mean? When we want a single representative value that balances all observations equally, the mean is the standard choice. It tells us what a "typical" temperature might be if the heat were distributed evenly across the week.

Formula:

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

where xix_i are the individual temperatures and nn is the number of days.

import numpy as np

temperatures = [34, 34, 27, 28, 27, 34, 34]

# Calculate mean
mean_temp = np.mean(temperatures)
# Or manually: sum(temperatures) / len(temperatures)

print(f"Average temperature: {mean_temp}°C")

Calculation:

Mean=34+34+27+28+27+34+347=2187=31.14°C\text{Mean} = \frac{34 + 34 + 27 + 28 + 27 + 34 + 34}{7} = \frac{218}{7} = 31.14°C

Output:

Average temperature: 31.14°C

Rounded to two decimal places: 31.14°C


(b) Temperature Range

The range is the appropriate technique to measure the spread between the highest and lowest temperatures.

Why the range? It gives us the simplest measure of variability—how much the temperature fluctuated during the week. A large range means high variability; a small range means stable conditions.

Formula:

Range=Maximum value−Minimum value\text{Range} = \text{Maximum value} - \text{Minimum value}

# Calculate range
max_temp = max(temperatures)
min_temp = min(temperatures)
temp_range = max_temp - min_temp

print(f"Maximum temperature: {max_temp}°C")
print(f"Minimum temperature: {min_temp}°C")
print(f"Temperature range: {temp_range}°C")

Calculation:

Range=34−27=7°C\text{Range} = 34 - 27 = 7°C

Output:

Maximum temperature: 34°C
Minimum temperature: 27°C
Temperature range: 7°C

(c) Standard Deviation

The standard deviation is the appropriate technique to measure how much individual temperatures deviate from the mean.

Why standard deviation? Unlike the range, which only uses two values, standard deviation considers every observation. It tells us how tightly clustered the temperatures are around the average. A small standard deviation means temperatures were consistent; a large one means they varied significantly.

Formula (Population standard deviation):

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

where μ\mu is the mean and nn is the number of observations.

Note

For a complete dataset (all 7 days of the week), we use the population standard deviation (dividing by nn). If this were a sample representing a larger population, we'd use the sample standard deviation (dividing by n−1n-1).

# Calculate standard deviation (population)
std_dev = np.std(temperatures)  # Population std by default in NumPy

print(f"Standard deviation: {std_dev}°C")

# Step-by-step calculation for clarity …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.