🤖

AI & ML for Kids

advanced · 20 lessons

Build intelligent apps with machine learning and large language models.

Try in Applaa Builder — Free

20 lessons

  1. 1

    Data and simple patterns

    AI often starts with data: numbers, lists, categories. A simple 'pattern' might be: the average of a list, or the most common item. Here we work with a list of numbers and find the average—like a tiny step toward what ML does with lots of data.

    3 min10 XPQuiz
  2. 2

    Simple prediction rule

    A very simple 'model' is a rule we write by hand. For example: if score >= 80 then predict 'pass'. Machine learning later learns such rules from data. Here we write a small rule and use it on a few examples.

    3 min10 XPQuiz
  3. 3

    Loops over data

    AI programs often loop over lots of data: for item in data: ... We might count, sum, or check a condition. Here we loop over a list and collect a result—like building a simple 'dataset' of answers.

    3 min10 XPQuiz
  4. 4

    Mean and median

    Mean is the average (sum / count). Median is the middle value when sorted. Both summarize a list of numbers. AI often uses these to understand data.

    3 min10 XPQuiz
  5. 5

    Counting by category

    Group data by category and count. Example: count how many fruits are 'apple', 'banana', etc. This is like building a simple histogram—useful before training a classifier.

    3 min10 XPQuiz
  6. 6

    Thresholds and rules

    Many simple AI rules use a threshold: if score > 70 then 'pass'. You can combine several rules. This is the idea behind decision rules and decision trees.

    3 min10 XPQuiz
  7. 7

    Lists of records

    Data for AI often comes as a list of records (dicts): each item has the same keys (e.g. age, score, result). You can loop and filter or aggregate by key.

    3 min10 XPQuiz
  8. 8

    Min, max, and simple scaling

    Sometimes we scale numbers to a range (e.g. 0–1). One way: (x - min) / (max - min). This can help when comparing different features in data.

    3 min10 XPQuiz
  9. 9

    Majority vote

    A simple way to 'combine' several answers is majority vote: count each label and pick the one that appears most. Used in simple ensemble ideas.

    3 min10 XPQuiz
  10. 10

    Distance between points

    In 2D, the distance between (x1,y1) and (x2,y2) is sqrt((x2-x1)**2 + (y2-y1)**2). Similar points have small distance. This idea is used in nearest-neighbour and clustering.

    3 min10 XPQuiz
  11. 11

    Train vs test idea

    In ML we often split data: use part to 'train' (learn) and part to 'test' (check how well it works on new data). Here we simulate: take 80% of a list as train, 20% as test.

    3 min10 XPQuiz
  12. 12

    What are features?

    Features are the inputs we use to make a prediction (e.g. age, score, colour). We often store them as numbers or categories. Good features help the model; bad ones don't.

    3 min10 XPQuiz
  13. 13

    Simple vs complex rules

    A very simple rule (e.g. always predict 'yes') might miss patterns (bias). A very complex rule might fit noise (variance). In practice we try to find a balance.

    3 min10 XPQuiz
  14. 14

    Accuracy

    Accuracy = correct predictions / total predictions. After we have predictions and true answers, we count how many match and divide by total. It's the simplest metric for classification.

    3 min10 XPQuiz
  15. 15

    Prompts and LLMs

    LLMs take text (a prompt) and generate more text. The prompt tells the model what to do. In code we might call an API with a prompt. Here we simulate: a function that 'responds' based on keywords.

    3 min10 XPQuiz
  16. 16

    Fairness and ethics

    AI can reflect biases in data. If training data is unfair, the model might be unfair too. We should think about who is affected and whether the system is fair. Checking data and results helps.

    3 min10 XPQuiz
  17. 17

    Data pipeline idea

    Real AI often has a pipeline: load data → clean (fix missing, errors) → transform (features) → train → evaluate. Here we do a tiny pipeline: load a list, filter, then compute a stat.

    3 min10 XPQuiz
  18. 18

    Text as tokens

    LLMs see text as tokens (pieces: words or subwords). Longer text = more tokens. We can simulate by splitting a string into words and counting.

    3 min10 XPQuiz
  19. 19

    Embeddings idea

    An embedding turns text (or other data) into a list of numbers so that similar things have similar numbers. We don't build one here—we just understand: same idea as 'encode as a vector' for comparison.

    3 min10 XPQuiz
  20. 20

    AI concepts recap

    You've seen: data and patterns, simple rules, loops over data, mean/median, counting by category, thresholds, train/test split, features, accuracy, prompts, fairness, pipelines, tokens, embeddings. These are building blocks for real ML and LLMs.

    3 min10 XPQuiz