Skills101
← All practice quizzes

Quiz: Probability and Bayes

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Probability from counts, conditional probability, independence, Bayes' theorem with a natural-frequency tree, the base-rate trap behind "99% accurate" tests, and a Naive Bayes spam filter written from scratch in Python.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Out of 80 students with an internship, 72 were placed. What is P(placed | internship)?

  2. Question 2

    P(placed) = 0.69 and P(placed | internship) = 0.9. What can you conclude?

  3. Question 3

    What does this print?

    def bayes(prior, hit, false_alarm):
        return prior * hit / (prior * hit + (1 - prior) * false_alarm)
    print(round(bayes(0.5, 0.9, 0.1), 2))
    
  4. Question 4

    A detector catches 90% of AI-written work and wrongly flags 8% of honest work, but only 5% of work is AI-written. Why are most flags wrong?

  5. Question 5

    Which formula is Bayes' theorem?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →