Bird
0
0

You have two datasets:

hard📝 Application Q15 of 15
NumPy - Aggregation Functions
You have two datasets:
data1 = np.array([10, 12, 14, 16, 18])
data2 = np.array([10, 10, 10, 10, 10])
Which statement is true about their standard deviation and variance?
Adata1 has higher variance and standard deviation than data2
Bdata2 has zero variance and standard deviation
Cdata2 has higher variance but lower standard deviation than data1
DBoth datasets have the same variance and standard deviation
Step-by-Step Solution
Solution:
  1. Step 1: Analyze data2 values

    All values in data2 are the same (10), so variance and standard deviation must be zero because there is no spread.
  2. Step 2: Analyze data1 values

    data1 values vary from 10 to 18, so variance and standard deviation are greater than zero, meaning data1 has higher spread.
  3. Final Answer:

    data1 has higher variance and standard deviation than data2 -> Option A
  4. Quick Check:

    Constant data variance = 0; varying data variance > 0 [OK]
Quick Trick: Constant data has zero variance and std [OK]
Common Mistakes:
  • Assuming equal variance for different spread data
  • Confusing variance with mean
  • Thinking zero variance means error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NumPy Quizzes