---
title: "Patterns and Classification"
description: "Sorting items by a shared rule is classification. A computer can learn patterns from examples, and varied examples help us test whether its sorting works on new items."
canonical: https://lightmysky.com/learn/computing/patterns-and-classification-mt_ofOGCQ7FWj
source: https://lightmysky.com/learn/computing/patterns-and-classification-mt_ofOGCQ7FWj.md
retrieved: 2026-10-19
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Patterns and Classification

Sorting items by a shared rule is classification. A computer can learn patterns from examples, and varied examples help us test whether its sorting works on new items.

Subject: Computing · Area: Artificial Intelligence · Ages 7 to 9
Page: https://lightmysky.com/learn/computing/patterns-and-classification-mt_ofOGCQ7FWj

## Ready when they can

- Sort a set of items into categories and explain the rules they used
- Explain that computers learn patterns by looking at many examples
- Explain why varied examples and checks on new items matter when a computer learns a pattern

## Lesson: Sorting and Spotting Patterns

Sorting things into groups by a shared rule is called classification. You could put red blocks in one group and blue blocks in another. Your rule would be color. You could choose a different rule, such as shape.

*(drawing: Priya sorted by shape. This chart shows how many counters are in each group.)*

**Example.** Priya sorts 8 buttons. Each is round or square. There are 3 round buttons, so 8 minus 3 leaves 5 square buttons. Her rule is shape: round together, square together. A sorting rule should give each item a place. If she later finds a triangle button, she can add a triangle group.

A computer can learn a sorting pattern from examples. To train a new cat-and-dog picture sorter, people can give it pictures labeled 'cat' or 'dog'. It uses clues in those pictures to make guesses about new pictures. People write the software that lets it learn.

*(drawing: A sorter uses examples to learn clues for new guesses.)*

Cats can look different from each other. Varied pictures show more of those differences. A few pictures do not prove that a sorter works well on new cats. Check its guesses on pictures it did not train on. There is no fixed number of pictures that works for every sorter.

**Recap.** Classification groups things by a rule. Computers can learn sorting patterns from examples, but their guesses on new items need checking.

## Practice

8 questions on this page, each with its working shown.

## Needs first

- [Data and Information for Computers](https://lightmysky.com/learn/computing/data-and-information-for-computers-mt_kH1DzOPsXG)

## Opens up

- [Recommendation Systems and Filter Bubbles](https://lightmysky.com/learn/computing/recommendation-systems-and-filter-bubbles-mt_EedcpioR0v)
- [AI in Computer Games](https://lightmysky.com/learn/computing/ai-in-computer-games-mt_fT4G0QloX5)
- [Machine Learning Basics](https://lightmysky.com/learn/computing/machine-learning-basics-mt_K6qtan847r)
