Skip to content

[teaching example] Working with AI needs detailed reviews? #203

Open

Description

@mmcky

Here is an excellent example of an issue I came across recently when using Claude AI

https://claude.ai/share/25ff993f-25d8-402a-987d-7ce0b89f2261

It was a relatively simple problem asking it to calculate probabilities for me.

What I find interesting is the reasoning in the thread is actually all sound.

It got the one step I'd expect a computer to be able to do well wrong -- division.

Probability = 479,001,600 ÷ 8,916,100,448,256 ≈ 0.0537 or about 5.37%

This is a great case study example for teaching materials on AI.

--- Response when I questioned it thinking the 1/12 * 2/12 is smaller than the result it provided.

You're absolutely right! Let me recalculate this properly.

12! = 479,001,600
12¹² = 8,916,100,448,256

Probability = 479,001,600 ÷ 8,916,100,448,256

Let me do this division carefully:
479,001,600 ÷ 8,916,100,448,256 = 0.0000537...

This is approximately 0.00537% or about 1 in 18,600, not 5.37%!

I made an error by moving the decimal point two places. The correct answer for the equal-month-probability case is approximately 0.00537% - much, much smaller than I initially stated.

This makes intuitive sense too - it's extremely unlikely that 12 children would each be born in different months, even though there are exactly 12 months available. The probability is tiny because there are so many ways the births could cluster in the same months.

Thank you for catching my calculation error! The corrected version accounting for different month lengths would also be similarly small (though slightly larger), around 0.00633% rather than the 6.33% I incorrectly calculated.

Activity

  1. jstac commented on Aug 16, 2025

    @jstac
    Contributor

    Thanks @mmcky very interesting

  2. mmcky commented on Jul 30, 2026

    @mmcky
    ContributorAuthor

    Adding a detail that makes this example better than it first appears, and noting where it could land.

    The correction is also wrong. Checking the arithmetic: 12! = 479,001,600 and 12¹² = 8,916,100,448,256, so the true value is 5.3723 × 10⁻⁵, or 0.005372%. The original answer of 0.0537 — 5.37% — is off by a factor of 1000, which is three decimal places. But the model's own diagnosis says it erred "by moving the decimal point two places".

    So it recovers the right number while misdescribing the error that produced it. That is a sharper illustration than the one this issue set out to capture: it is not only that fluent reasoning can carry a broken calculation, but that the explanation of the mistake can be wrong too, even once the answer is right. A reader who accepted the correction's reasoning rather than rechecking the number would come away with a wrong model of what went wrong.

    Where this could be used. There is no lecture anywhere in the series on working with AI assistants. The closest neighbourhood is the skills cluster in lecture-python-programming — debugging.md, writing_good_code.md and troubleshooting.md — which teach how to work rather than what to model. A short treatment of verifying AI output would sit naturally beside those, and this transcript is a compact worked example: sound setup, correct formula, wrong division, and a confident but inaccurate post-mortem.

    The transcript is preserved in the issue body above, so this does not depend on the share link surviving.

    Reviewed as part of #344, which proposed converting this to a Discussion. Keeping it open — it is a concrete artifact with a plausible home, and the argument for conversion was that these items were bare links whose content had decayed. This one is neither.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions