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
      48 of 102

      Twenty jelly beans

      You run tests separate tests on things that are really pure luck, and flag any test whose surprise (from “Is it luck?”) comes out below your threshold. On pure luck, a test gets flagged with chance equal to the threshold. Write threshold(tests, overall): the threshold for each test, so that the chance of any false alarm across all of them stays at overall, like 0.05.

      Twenty jelly bean colours, each tested for a link to acne. None of them is real, so every test is pure luck. Here the allowance, 0.05, is used as the threshold on every test: one study, then 100 of them.

      tests
      one study: 20 colours tested on pure luck, flagged if the surprise is below 0.05(0.05 is the whole allowance, used on every test)0.620.180.910.440.270.730.550.0310.860.390.120.680.970.240.510.080.790.350.600.15

      type a threshold to try one, or pick another number of tests

      Your functionthreshold(tests, overall)
      testshow many separate tests you rune.g. 1
      overallthe chance of ANY false alarm you can live with, e.g. 0.05e.g. 0.05
      returnsthe threshold to use for each test
      solution.pyLoading Python
      Sign in for an AI hint
      ← Is it luck?Better than guessing the average? →