← AI Foundations

AI Foundations: recap

For after the lessons: one card per lesson, to check what you remember. Answer each question in your head or on paper first, then check it. Nothing here is marked.

How AI generates text

1. Can you predict the next word?

Try firstWhat happens to the most frequent ending when five roof examples are added?

Check your answer

Roof becomes most frequent: six roof, three mat and two chair.

A simple fixed-context model counts possible endings. Mat appears three times, chair twice and roof once. Mat is the most frequent, but not the only possible word. Changing the examples changes these counts. A modern language model is far more complex, and a plausible suggestion still needs checking against what you mean.

How examples shape a prediction
Open the lesson →

2. Build a text generator with dice

Try firstCan roof appear twice in a row without the model changing?

Check your answer

Yes. Each roll can select the roof face; two such rolls do not alter the mapping.

Give mat three faces, chair two and roof one. Each roll chooses one face. Mat is more likely, but chair and roof remain possible. Ten rolls can produce different counts from the expected three-to-two-to-one proportions. Sampling is choosing an outcome using assigned probabilities, not verifying whether a sentence is true.

One roll, one possible word
Open the lesson →

3. Let the computer take over

Try firstWhat must you still understand after automating the rolls?

Check your answer

How the six faces map to words, what the results mean, and how to judge whether the model suits the task.

The computer can repeat the same die-and-table procedure quickly. Running a hundred or a thousand trials gives more data to compare, but it does not make the words true or the model suitable. We can delegate repetitive execution while retaining judgement about the model and checking our own understanding. When an AI tutor over-helps, ask it for one hint at a time.

Repetition is not understanding
Open the lesson →

How AI learns

4. How does a machine learn?

Try firstWhy can adding one example change a sorter's prediction?

Check your answer

The sorter copies its nearest examples, so a new nearby example can change which label wins.

A label is the answer an example is taught. The sorter copies the labels of the examples closest to a new fruit, so changing the examples can change its answer. A prediction is something to check.

A flowchart of the fruit sorter. It keeps its labelled examples. A new fruit comes in. The sorter finds the closest examples and copies their label. Then ask: is the new fruit like any example it has seen? If yes, the prediction is probably right. If no, it is a guess: check it.
How the sorter makes a prediction
What do examples and labels teach? · Sound on for the voiceover
Open the lesson →

5. Why does AI make mistakes?

Try firstA sorter with all correct labels still calls a fruit wrongly. What is the most likely reason?

Check your answer

Its examples do not cover that kind of fruit well, so its nearest examples point the wrong way.

A model learns from its examples. A wrong label teaches it the wrong answer. Missing examples leave it guessing from cases that are not like the new one. The program can be working perfectly and the answer can still be wrong.

Investigate the model's decision · Sound on for the voiceover
Open the lesson →

6. How do models combine clues?

Try firstColour weight 2, shape weight 0. What does the unit predict for a green, long fruit, and why?

Check your answer

Apple: only colour counts, and green pushes the score below zero, even though a long fruit is probably a banana.

The transparent model illustrates one part of classification. Real machine learning can use richer features and still make mistakes.

Combining clues · Sound on for the voiceover
Open the lesson →

7. Can a neural network learn?

Try firstWhat changes during training, and what happens during testing?

Check your answer

Training updates network parameters using labelled examples; testing uses them without updating.

This model has two input features, two hidden neurons and one output. Training genuinely changes weights using an error-based adjustment. The toy data is intentionally limited and is not a realistic image-recognition task.

Training changes a network · Sound on for the voiceover
Open the lesson →

8. What kind of AI is it?

Try firstA chatbot gives you a made-up fact, and a bell app rings at the wrong time. Why do they go wrong in different ways?

Check your answer

The chatbot makes new content, so it can make something likely-sounding that isn't true. The bell app follows a rule a person typed in, so the rule (or the time typed in) was wrong.

  1. Rules written by people: it follows instructions; it goes wrong when the rule is wrong, for everyone at once.
  2. Learns to predict or sort: it learned from examples; it goes wrong when examples are wrong or missing.
  3. Makes new content: it makes text or pictures; it can make something convincing that isn't true.
  4. Takes actions: it does things for you; it can act on a mistake before anyone checks. Ask which kind it is first, then you know where to look.
Open the lesson →

Communicating with AI

9. How do you communicate with AI?

Try firstRewrite 'Help me study' so an assistant could give useful help. What did you add, and why?

Check your answer

The subject or skill, what I already know, and the kind of help I want (for example a hint or practice questions). Each one changes what useful help looks like.

An AI assistant may respond differently when the goal, context or kind of help changes. Prepared board responses illustrate this principle without simulating an LLM.

Describe what you need · Sound on for the voiceover
Open the lesson →

10. How do you work with an AI response?

Try firstAn AI's first reply uses words you don't understand. Which follow-up fixes that, and why won't 'give more context' fix it?

Check your answer

Ask for a simpler explanation with an example. More context changes what the AI knows about you, not the words it uses.

A follow-up is what you say after reading the AI's reply, aimed at whatever was wrong with it: tell it what you really have, ask it to say it more simply, ask for a hint instead of the answer, or ask why it claimed something. Work out the problem first, then pick the follow-up. And whatever it says back, you still check it yourself: the AI sounding surer isn't the same as being right.

A conversation can change direction · Sound on for the voiceover
Open the lesson →

Getting good help from AI

11. Ask for the right kind of help

Try firstYou used the worked example. How can you tell whether you learned the method?

Check your answer

Try a new question without looking back. If you can do it, the example helped you learn; if not, you followed it without learning it yet.

These are prepared cases and feedback, not outputs of an AI language model. The learning objective is transferable judgement, not a vendor-specific technique.

Choose how much help to request · Sound on for the voiceover
Open the lesson →

12. Check what AI tells you

Try firstA dataset records plant height but not plant health. Can it support 'the eight-hour plants were healthier'?

Check your answer

No. Height is not health; you would need measurements of health to support that claim.

These are prepared cases and feedback, not outputs of an AI language model. The learning objective is transferable judgement, not a vendor-specific technique.

Evidence before confidence · Sound on for the voiceover
Open the lesson →

13. Decide what to hand over

Try firstYour goal is to understand controlled variables. What would you keep, and what could you hand over?

Check your answer

Keep writing the explanation (that is the skill); you could hand over formatting or spelling checks, then check the result.

These are prepared cases and feedback, not outputs of an AI language model. The learning objective is transferable judgement, not a vendor-specific technique.

Choose what thinking to keep · Sound on for the voiceover
Open the lesson →