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

Quiz: Hypothesis Testing · Question 4 of 15

What does this print? (code)

What does this print?

import numpy as np
d = np.array([2, 4, 6])
print(round(d.mean() / (d.std(ddof=1) / np.sqrt(3)), 2))
  1. A.2.0
  2. B.3.46
  3. C.4.0
  4. D.6.93
Answer & explanation

Correct answer: 3.46

mean 4, sample sd 2, SE = 2/√3 ≈ 1.155, so t ≈ 3.46.

Can you get the rest right without peeking?

Take the timed Quiz: Hypothesis Testing quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →