Spooky Sale: 10% off Premium yearly · $118.80 for the first year · until Nov 6Get it

Deep-ML
Learn
Problems1,200+ hands-on ML problemsLearning PathA guided route through the fundamentalsLabsInteractive labs on real techniquesProjectsBuild a GPT, an RL agent, CUDA kernelsCollectionsCurated problem sets and videosMathPen-and-paper math for MLIntuitionInvent the idea behind the formula yourselfPlaylistsYour own problem lists, shareableStudy AssistantAn AI teacher that knows your progress
Interview Prep
Compete
ContestsFresh problem sets, ranked liveLeaderboardWhere you stand, globallyBuddiesSolve with a friend: streaks, a weekly board, chat
Discuss
Deep-Path
Premium
      Intuition
      10 of 102

      How sure is the average?

      A pollster asks people “coffee or tea?”. Each answer counts 100 (coffee) or 0 (tea), so one answer wobbles by about spread points around the town’s true share (a standard deviation, from “How spread out?”). A poll’s result is the average over the n people asked. Write wobble_of_average(spread, n): how much does a poll’s result wobble from one poll to the next?

      A town where really half prefer coffee and half tea. A pollster asks 25 people at random, again and again, and reports the share saying coffee.

      A town where really half prefer coffee, half tea.coffeetea· the town20%30%40%50%60%70%80%% saying coffeereally 50%50% ± ?COFFEE AHEAD, 64–36TEA AHEAD, 64–36the polls, % coffeeHow much does a 25-person poll wobble? ± ?one answer counts 100 (coffee) or 0 (tea), so on its own it wobbles ± 50 points: spread = 50, n = 25
      Your functionwobble_of_average(spread, n)
      spreadhow much one person's answer wobbles, in points (a standard deviation)e.g. 50
      nhow many people the poll averagese.g. 1
      returnshow much the poll's result wobbles
      solution.pyLoading Python
      Sign in for an AI hint
      ← Who did better?Odd one out →