🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Sampling and Confidence Intervals: all 15 questions

Quiz: Sampling and Confidence Intervals · Question 8 of 15

What does this print? (code)

What does this print?

import numpy as np
s = np.array([4, 8, 6, 2])
print(s.std(ddof=1) / np.sqrt(len(s)) > s.std() / np.sqrt(len(s)))
  1. A.True
  2. B.False
  3. C.1.29
  4. D.Error
Answer & explanation

Correct answer: True

ddof=1 divides by n − 1, giving a slightly larger standard deviation than ddof=0.

Can you get the rest right without peeking?

Take the timed Quiz: Sampling and Confidence Intervals quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →