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

      Two for two

      A rookie steps up to the free-throw line. Write skill(made, shots, guess_weight): the chance they make their next free throw, after making made of their shots so far. Before seeing a single shot you’d guess 50%, and that guess is worth guess_weight shots of evidence.

      A rookie makes their first two free throws: 2 of 2. Before any shot you’d have guessed 50%, and that guess is worth 2 shots of evidence. Is this a 100% shooter? Take more shots and watch the tally.

      the linethe shots so farmademissedmade 0 of 0their real rate: hiddenBefore any shot you guessed 50%, and that guess is worth 2 shots.the next shot: chance they make it?

      what chance should skill() give the next shot? that’s for you to work out

      Your functionskill(made, shots, guess_weight)
      madefree throws madee.g. 7
      shotsfree throws takene.g. 10
      guess_weighthow many shots your 50% guess is worthe.g. 0
      returnsthe chance they make the next one
      solution.pyLoading Python
      Sign in for an AI hint
      ← Two cluesHow surprising? →