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

      How surprising?

      Something is about to happen, and you know the chance of each outcome. Write uncertainty(chances): one number for how uncertain the outcome is before you see it. 0 means you already know.

      Tomorrow’s weather is already decided, but hidden from you. You know the chances: sun 70%, rain 20%, snow 10%. Your function turns those chances into one number for how uncertain you are.

      tomorrow’s weatheruncertainty?

      how uncertain is that? that’s for you to decide

      Your functionuncertainty(chances)
      chancesone chance per outcome, adding up to 1e.g. [1, 0]
      returnshow uncertain the outcome is (0 = you already know)
      solution.pyLoading Python
      Sign in for an AI hint
      ← Two for twoBest question to ask →