How AI Learns from Data
Grade 8, Grade 9Lesson 9 of 10 in Computing for Ages 11 to 14 Course
What you will learn
- Recognize AI in everyday life, tell hand-written rules apart from learning from examples, and name the parts of a machine-learning system.
- Recognize AI and describe what it doesSay what makes a computer system AI, describe how it turns inputs into outputs, and find examples in daily life, games and public services.
- Compare hand-written rules with learning from examplesExplain the difference between rule-based systems and machine learning, and choose the right approach for a problem.
- Name the parts of a machine-learning systemUse the words data, feature, label, model, training and prediction correctly, and describe the steps of a machine-learning project.
- Recognize AI and describe what it does
- Follow how a classifier learns from labeled examples, measure how well it works on new data, improve it from evidence and compare the main ways of training.
- Train a classifier from labeled examplesDescribe how a classifier uses labeled examples and features to learn, and follow the training process with real numbers.
- Test a model on data it has not seenExplain why test data must stay separate from training data, calculate accuracy, read a table of results and recognize overfitting.
- Investigate errors and improve a modelForm a hypothesis about how a model works from its inputs and outputs, improve it by changing its data, and report honestly on what it can do.
- Compare supervised and unsupervised learningExplain how training with labels differs from training without labels, and choose the right approach for a task.
- Train a classifier from labeled examples
- Judge whether training data is good enough, trace how bias enters a system, and check whether a system treats different groups fairly.
- Judge the quality of training dataUse clear questions to evaluate a data set, and explain how missing, rare or unrepresentative data shapes a model's output.
- Trace where bias in AI comes fromDefine bias, explain the main ways it enters an AI system, and use real cases to show its effects.
- Check for fairness and reduce biasTest how a system performs for different groups, explain why fairness needs human judgment, and describe ways to reduce harm.
- Judge the quality of training data
- Explain how generative AI produces content, get better results with clear prompts, and check what it produces, including computer code.
- Explain how generative AI creates contentTell predictive AI from generative AI, and explain how a large language model produces text one piece at a time.
- Write and refine promptsWrite clear prompts that say what you want, then improve the output step by step.
- Check AI output for errors and biasExplain why generative AI makes things up, and use a clear routine to check facts, sources and fairness.
- Review AI-generated codeWeigh the benefits and limits of AI coding tools, and test and improve the code they produce.
- Explain how generative AI creates content
- Know what AI cannot do, use generative tools honestly and safely, respond to deepfakes, and make reasoned judgments about AI's benefits and risks.
- Recognize the limits of AI and when to rely on peopleDescribe what AI does poorly, compare human and artificial intelligence, and decide when AI is the right tool.
- Use generative AI honestly and safelyFollow the rules for using AI in schoolwork, stay the main creator of your work, and protect your privacy and other people's rights.
- Spot and respond to deepfakes and misleading AI contentExplain what deepfakes are and why they matter, check suspicious content, and know what to do if you meet one.
- Weigh AI's effects on work, privacy, ownership and the environmentDescribe the benefits and risks of AI for people and society, and reach a reasoned judgment about a real use of AI.
- Recognize the limits of AI and when to rely on people
How AI Works study guide
1See how AI turns data into answers
AI can recommend music, recognize speech, or control a game character. To understand these systems, start with what goes in and what comes out. Compare rules written by people with patterns learned from examples, then follow the parts of a machine-learning project. These distinctions help you choose an approach that fits a problem and see where people shape the result.
1.1 Find the input, task, and output
A phone finds beach photos without you naming every picture. A game guard chases a player. Both can use artificial intelligence, or AI: computing that tackles tasks usually linked with human thinking.
Follow the data
An AI system takes inputs and works out outputs to meet a goal. The output might be a prediction, a recommendation, a decision, or new content. Start with a robot vacuum. Distance sensors measure nearby objects. Those readings become data inside the computer. The system uses them to choose a change of direction before reaching a wall.
A sensor turns something in the world into data. A microphone records sound, a camera records images, and a motion sensor records movement. AI can also take input that someone types or that another program collects. It does not need its own sensors or a moving body.
Recognize patterns in pictures
A digital picture is a grid of pixels. Each pixel's color is stored as numbers. An image-recognition system works with patterns in these numbers, including edges, shapes, and textures. Its output can be a label such as “cat.” A photo search can use such labels to find pictures of beaches.
The input is the picture data, the task is recognizing what it shows, and the output is a label. Naming these three parts says much more than calling an app “smart.”
Notice different uses
AI can turn speech into text, translate a message, or recommend a song. A bank may flag an unusual payment for review. A medical system may help a doctor examine a scan. Generative tools create text, images, audio, video, or code. These are different tasks, with different inputs and outputs.
In a game, a guard might hear a noise, approach it, and chase the player. A programmer can write rules for all these actions. The guard still counts as game AI even though it learns nothing. AI is wider than machine learning.
Look past the appearance
A robot is a physical machine. AI is a way of handling a task. A spam filter has no body, while a factory arm may repeat fixed movements without AI. A calculator performing ordinary arithmetic is not AI just because it gives an answer quickly.
Many AI systems are narrow: they are built for one kind of task. A chess-playing program cannot recognize an animal simply because it plays chess well. People can bring experience from many parts of life to a new problem.
A chatbot may write, “I'm happy to help.” That shows it can produce friendly language. It gives no evidence that the system feels happy. Judge a system by the task it can perform and the evidence about its results, not by how human its words sound.
Key Takeaways
- An AI system turns inputs into outputs to meet a goal.
- AI can be software without a robot body.
- Game AI can follow hand-written rules.
- A narrow AI system is built for one kind of task.
1.2 Choose rules or learning from examples
Some problems have exact steps. Others have patterns that are hard to describe. Choosing a computing approach starts with the problem you need to solve.
Use clear instructions where they fit
Step-by-step instructions suit a task such as adding scores. Rule-based logic suits a clear condition: “If the player touches lava, remove one life.” People write these rules in advance. The computer applies them to the input.
An expert system is rule-based AI built from expert knowledge. A plant-care helper might ask about yellow leaves and wet soil. It follows if-then rules to suggest overwatering. Showing which rules fired makes its reasoning easier to check.
Learn a pattern where rules are hard to write
In machine learning, people supply examples and a learning algorithm finds patterns. For supervised learning, the examples include correct answers. Training on messages labeled “spam” and “not spam” produces a model that can classify a new message.
| Approach | What people supply | What the system does |
|---|---|---|
| Rule-based | Rules and input data | Applies the written rules |
| Supervised learning | Examples with answers | Learns a model for new inputs |
Other learning methods can use examples without answer labels. Learning does not always mean copying supplied answers.
Compare two spam filters
A written rule checks for the phrase “you won.” It misses “y0u w0n” because the characters differ. Someone must change the rule to cover that spelling.
A trained filter can use several clues, such as unusual links and requests for money. It may catch the altered message through those patterns. It can still make mistakes, and developers need new examples when scams change.
The same difference appears in movie reviews. Give “great” a score of +1 and “bad” a score of −1. The phrase “The movie was not bad” then receives −1 and is wrongly called negative. A model trained on many labeled reviews can learn patterns involving whole phrases.
Match the approach to the task
Rule-based systems need no training data. They are predictable and often easy to explain. They become hard to build when the conditions are messy, such as recognizing every possible cat photo.
Machine learning helps when useful patterns are too complex to write by hand. It needs good examples, and its answers can be wrong. More complexity also makes some models hard to explain.
Ask: Can I write exact steps? Can I list clear conditions? If neither works well, do I have good data, and how serious would mistakes be? A grade average needs an exact calculation. A song recommendation can use learned patterns.
Real systems can combine approaches. A bank might use a model to score unusual payments, a fixed rule to block very large ones, and a person to review flagged cases. People still choose the goal, collect the data, and check the system.
Key Takeaways
- Use exact steps for exact calculations.
- Rule-based systems apply conditions written by people.
- Supervised learning finds patterns in examples with correct answers.
- Machine learning needs good data and can make mistakes.
- One system can combine rules, models, and human review.
1.3 Keep data, training, and the model separate
A trained model is one part of a machine-learning system. To explain the whole project, keep the information, the learning steps, and the result of learning separate.
Name the parts
Data is the information available to a system. An example is one item, such as one movement recording. A feature is a measurable property of that item. A label gives its correct answer in supervised learning.
For a wristband, a feature could be movement strength. The label could be “walking” or “running.” The recording is the example; the class name attached to it is the label. Mixing those up hides what the computer actually receives.
Training finds patterns in the examples. A learning algorithm is the sequence of steps used to find them. A model is what training produces and keeps for use with new inputs, usually patterns stored as numbers. Different data can produce a different model even with the same learning algorithm.
Follow a project
A team wants a wristband to tell walking from running. It first defines those two classes. It records people doing each activity and labels the recordings. Most recordings train the model. Separate recordings check how it handles inputs it did not learn from.
If fast walking and slow running are often confused, the team studies those errors. It can collect more recordings of both, train again, and check the changed model. A project is a loop because evidence can send people back to an earlier step.
The main sequence is:
- Define the problem.
- Collect and, for supervised learning, label data.
- Train the model.
- Check its predictions on separate data.
- Improve it, check again, and decide how to use it.
Separate training from use
During training, the model changes as the algorithm finds patterns. During use, a finished model receives a new input and gives a prediction. Many models keep the same learned patterns until developers retrain them. Using a model does not mean it learns from every interaction.
“Prediction” does not always mean forecasting the future. Labeling a photo “cat” is a prediction about what is already in the picture. A prediction may be a category or a number. It is an output to check, not a fact guaranteed by the computer.
Include the physical computer
A learning system needs hardware, as well as data and algorithms. Training a large model involves huge numbers of calculations. A graphics processing unit, or GPU, can perform many calculations at once. This makes GPUs useful for training large models.
People and models both learn from examples, but they do so differently. A child can connect a few animal pictures with wider experience of living things. A model works from the patterns available in its data and usually needs many more examples.
Key Takeaways
- Features describe an example; labels give its correct answer.
- The learning algorithm trains; the model is the result.
- Training changes a model, while use produces predictions.
- Many models stay fixed until retraining.
- Data, algorithms, and hardware all matter.
- A prediction can describe a present input.
2Train a model and check how it performs
A model's value depends on how well it handles new inputs. Follow a small classifier from labeled examples to a learned boundary, then check its mistakes and accuracy. Use separate data to improve and test it, and compare learning with and without labels. The aim is to understand what a score tells you and what evidence is still needed before using a model.
2.1 Learn a boundary from labeled examples
A classifier sorts inputs into categories called classes. It might label a message “spam” or “not spam.” Training gives it examples of what belongs in each class, including non-examples of the thing it should recognize.
Choose useful features
A feature should carry information about the class. Color and shape can help distinguish apples from lemons. The date of a photo is usually a poor clue. If all lemon photos happen to be taken on one date, a model could learn that accidental pattern.
A cat detector also needs pictures that are not cats. With only cats, it has no examples showing where the class should stop.
Train a tiny movement model
A wristband measures movement strength from 0 to 10. Walking recordings are 2, 3, 3, and 4. Running recordings are 7, 8, 8, and 9. Find the mean of each group:
This simple learning method places a boundary halfway between them:
The model calls readings above 5.5 “running”; readings at or below it are “walking.” A new reading of 6.2 is running, while 5.0 is walking. The training data produced the boundary. A person did not choose 5.5 in advance.
This model keeps a boundary, not a lookup table of the eight readings. Some other models keep their examples and compare new inputs with them. Both approaches aim to handle new inputs.
See a weight change
A weight says how much a feature counts. A tiny spam model adds word weights and flags scores of 3 or more. Initially, “free,” “prize,” and “click” each count 1; “homework” counts 0.
The labeled spam message “prize click” scores 2, so the model misses it. A simple update adds 1 to each word in that message. Now “prize” and “click” each count 2, and the message scores 4.
Check all four training messages again:
| Message | New score | Prediction |
|---|---|---|
| “free prize click” | 5 | Spam |
| “prize click” | 4 | Spam |
| “free homework” | 1 | Not spam |
| “homework” | 0 | Not spam |
All four now match their labels. Many weighted models repeat prediction, error checking, and small weight changes. Other learning methods, such as the movement means, work differently.
Check labels and confidence
A wrong label changes training. If the running value 9 is mislabeled as walking, the walking mean becomes 4.2. The running mean becomes about 7.67. The new boundary is about 5.93, so a real running reading of 5.7 gets called walking.
Some classifiers give a confidence score, their estimate of how likely an answer is to be right. Near-boundary readings can be uncertain. Poor data can also produce confident mistakes, so confidence needs checking against real results.
Key Takeaways
- A classifier needs labeled examples of every intended class.
- Useful features help distinguish classes.
- Training can learn a boundary or adjust feature weights.
- Wrong labels can move a learned boundary.
- Confidence is the model’s estimate, not a checked result.
2.2 Test on new data and read the errors
A model can perform well on examples it trained on and fail on new ones. Testing asks whether it learned a useful pattern beyond those familiar examples.
Keep test examples separate
Training data helps build the model. Test data checks its performance on examples it did not see during training. Testing on training examples is like giving a student the same questions whose answers they memorized.
One common split is 80% for training and 20% for testing. The split is a useful habit, not a required rule. With 200 photos, it gives 160 training photos and 40 test photos. If there are 100 cats and 100 dogs, randomly select within each class: 80 cats and 80 dogs for training, then 20 of each for testing. A purely random split across all photos might leave a rare class poorly represented.
Calculate accuracy
Accuracy is the share of predictions that match the checked labels:
For 34 correct answers out of 40:
The denominator counts every test example, including mistakes. Using only correct examples in both places would hide the errors.
Read a table of results
A confusion matrix compares real classes with predicted classes. It reveals mistakes that one overall score hides.
| Real class | Predicted cat | Predicted dog | Total |
|---|---|---|---|
| Cat | 18 | 2 | 20 |
| Dog | 4 | 16 | 20 |
The correct cells are 18 cats and 16 dogs: 34 of 40 overall. For cats, the model gets 18 of 20 right, or 90%. For dogs, it gets 16 of 20 right, or 80%. The table shows which class needs more work.
People must check the real labels too. If a hand-applied tag is wrong, the comparison can unfairly count a correct prediction as an error.
Ask what a high score hides
Suppose 90 of 100 messages are real and only 10 are spam. A model saying “not spam” for every message scores 90%. It catches none of the spam. Check each class and the job the system is meant to do before praising its accuracy.
Overfitting means fitting training examples too closely, including accidental details, so performance is poor on new data. Training accuracy of 99% and test accuracy of 71% leave a gap of 28 percentage points. More varied data, a simpler model, or stopping training sooner may help.
More training can make overfitting worse. Also check the test conditions: good results on daylight photos do not tell you how well a model works at night. A test is a sample of situations, so it should match real use.
Key Takeaways
- Test data must be separate from training data.
- Accuracy divides correct predictions by all predictions.
- A confusion matrix shows which classes are confused.
- A high overall score can hide failure on a rare class.
- A large training/test gap can warn of overfitting.
- Test conditions should match real use.
2.3 Use errors to choose a useful improvement
An error tells you where to investigate. It does not tell you to add data at random. A useful change starts with a possible explanation that you can test.
Form a hypothesis
A hypothesis is an explanation to check against evidence. If a classifier labels several striped animals “tiger,” perhaps it relies too heavily on stripes. A striped shirt is a useful probe. If the model calls that a tiger too, the result supports the idea. Try inputs that separate the suspected clue from the intended subject.
Look for wrong labels, missing classes, too few examples, or examples from one setting. An outlier differs greatly from the other examples. Check it before removing it: a faulty sensor reading is different from a genuine rare event.
Work through an improvement
A bird-feeder model sorts robins and sparrows. The team holds 40 labeled photos aside as a validation set for comparing changes. Its first result is:
Most errors occur at dusk. The training photos were nearly all taken in daylight. The team hypothesizes that the model lacks low-light examples. It adds 60 new dusk photos showing both birds and trains again.
The changed model gets 36 of the same 40 validation photos right:
Using the same validation examples makes the before/after comparison useful. The new training photos must be separate pictures, not copies of those validation photos. Adding many more daylight robin pictures would not address the observed weakness.
Keep a final test untouched
The validation results helped guide the team's decisions. Repeatedly choosing changes from those results can make that score too flattering. Once changes are finished, use a separate test set that has played no part in them.
On 40 untouched test photos, the model gets 35 right:
Report 87.5% as the final test result.
Record the purpose and limits
A model card explains what a model is for, the training data, test performance, and limits. For example: “Sorts robins and sparrows in garden photos. Correct on 35 of 40 untouched test photos, or 87.5%. Untested in rain and on other birds.”
A model can change behavior when a weight changes. In the spam model, a lone “click” scores 2 and stays below the cutoff of 3. Raising its weight to 3 flags that same input. Controlled changes help reveal what the output depends on.
Keep checking after release. New scams, slang, or users can differ from old training data. Developers may need fresh examples, retraining, and new tests.
Key Takeaways
- Start an improvement with evidence from errors.
- Test a hypothesis with inputs that separate possible causes.
- Validation data helps compare changes.
- Use untouched test data for the final reported score.
- Check outliers before removing them.
- A model card records performance, purpose, and limits.
- Keep checking after release as the world changes.
2.4 Decide whether training needs labels
Sometimes you know the categories you want. Sometimes you want to discover groups in the data. These aims call for different learning approaches.
Learn from correct answers
Supervised learning uses labeled examples. Each example includes the answer the model should learn to predict. A photo app can learn object names from labeled pictures. A model can also learn to predict a number, such as a house price from its size and location. Supervised learning is wider than classification.
The labels guide learning. They do not mean a person stands beside the model for every prediction. Creating labels takes time and money, and people can disagree or make mistakes.
Find groups without answer labels
Unsupervised learning uses data without supplied correct answers. It looks for structure. Clustering is one approach: examples with similar features are placed together.
A music service records weekly listening hours for pop and classical music. It has these pairs:
| Listener | Pop hours | Classical hours |
|---|---|---|
| A | 9 | 1 |
| B | 8 | 2 |
| C | 9 | 2 |
| D | 1 | 8 |
| E | 2 | 9 |
| F | 2 | 7 |
A, B, and C have similar numbers. D, E, and F form another group. An algorithm can find these groups without anyone attaching “pop fan” or “classical fan” labels first.
Interpret the groups
The algorithm finds numerical patterns. A person then gives a useful meaning to the groups. The name “pop fans” is a human interpretation of the listening features. People also choose the data, features, and often the number of groups to seek.
Unsupervised learning avoids creating answer labels. But there is no ready list of correct labels for a simple accuracy check. People must judge whether the groups are useful for the task. A group may reveal a pattern worth investigating without explaining why that pattern exists.
Choose from the purpose
| Question about the task | Likely approach |
|---|---|
| Predict a known class from examples with answers | Supervised classification |
| Predict a number from examples with known values | Supervised learning |
| Discover similar groups without answer labels | Unsupervised clustering |
A shop can cluster customers by buying patterns. A bank can look for payments unlike ordinary patterns. The choice depends on what information is available and what the system must do.
Key Takeaways
- Supervised learning trains on examples with correct answers.
- Supervised outputs can be classes or numbers.
- Unsupervised learning finds structure without answer labels.
- Clustering groups examples with similar features.
- People interpret clusters and judge their usefulness.
3Check the data and look for unfair results
Training data is a selected picture of the world. Missing examples, wrong labels, and past unfair decisions can all shape what a model learns. Examine how those problems arise, then compare results for different groups. A fairness check needs both numbers and people: the numbers reveal uneven performance, while people judge the harm and decide what needs to change.
3.1 Ask whether the data fits real use
A model learns from the examples available to it. If those examples leave out important situations, training cannot fill the gaps by itself.
Check where data came from
Ask who collected the data and why. Check labels, missing information, age of records, and the range of people or situations included. Also ask whether collection had permission and protected privacy. A data set is a selection made by people, not a complete copy of the world.
Good data must fit the task. A large collection of clear daylight images is still a poor match for a camera used at dusk. Correct labels and enough variety matter alongside the number of examples.
Compare the sample with the users
Representative data reflects the population or conditions the system will meet. A voice assistant has 1,000 training clips: 900 adult voices and 100 child voices. That is 90% adults and 10% children. Half its users are children. The training data gives their voices much less space than real use does.
The assistant is likely to make more mistakes with children. Adding voices from children of different ages and accents addresses the missing range. Adding more adult clips would make the collection larger without solving that problem.
Representative does not mean every class must always have equal numbers. It means the collection needs to support the people, classes, and conditions relevant to the task. Rare but serious cases need deliberate attention too.
Notice a missing class
The zero problem occurs when an intended class has no training examples. A classifier trained to choose among known animal classes cannot name a zebra class that it has never been trained to output. With horses but no zebras, it may confidently call a zebra a horse.
This is different from having a few zebra examples. Zero examples provide no training information about that class. A useful fix must address the missing class and its examples.
Break an accidental pattern
Suppose nearly all wolf photos show snow, while dog photos show grass. A model might learn “snow means wolf.” A dog in snow then gets the wrong label. Even a test can look good if its photos repeat the same background pattern.
Use photos of both animals in several settings to separate animal features from backgrounds. A model should learn clues that carry information about the intended class.
Include unusual real events
Self-driving systems see many ordinary road scenes and few rare events. Yet a rare event, such as someone lying in the road, can be crucial. Teams seek rare examples, use simulations, and add safety rules.
Wrong labels, old records, few examples, and one-source collections can all weaken a model. More data helps when it improves these weaknesses. A million examples of the same narrow situation keep teaching the same narrow picture.
Key Takeaways
- Check accuracy, labels, completeness, relevance, age, and permission.
- Compare the data with the people and conditions of real use.
- A missing class needs examples and a place among the outputs.
- Accidental background patterns can mislead a classifier.
- Rare cases can matter even when they are uncommon.
- Useful variety matters more than raw data volume.
3.2 Trace how unfair patterns enter a model
Bias is a repeated pattern in which a system's errors or decisions unfairly favor or harm some groups. One random error is different from an uneven pattern. Several routes can bring bias into a system.
Uneven representation
In 2018, Joy Buolamwini and Timnit Gebru tested three commercial systems that classified gender from face photos. Error rates reached 34.7% for darker-skinned women, compared with at most 0.8% for lighter-skinned men. Two widely used face data sets they examined contained 79.6% and 86.2% lighter-skinned people. Looking separately at groups revealed a problem that a broad performance claim could miss.
An unfair past and subjective labels
A hiring tool reported in 2018 learned from about ten years of résumés, mostly from men. It marked down phrases such as “women's chess club captain.” Accurate records can preserve unequal past opportunities. Training on them can carry those patterns forward.
Labels can also contain judgments. People marking comments “rude” may disagree because of their backgrounds. A way of speaking that is normal in one community can be judged harshly by another. The model learns those labels too.
Choosing the wrong measure
A stand-in measure is something easy to measure in place of what really matters. A 2019 US study examined a health-care tool using past spending to estimate illness. Less had been spent on Black patients with the same needs, so the tool treated them as healthier than equally sick White patients.
The problem was not just a shortage of data. Spending was a poor stand-in for medical need because access and spending were unequal. Collecting more of the same spending records would keep that problem.
Removing a sensitive feature also leaves other clues. A zip code can carry information about income or background. Removing a group name does not erase every pattern linked with the group.
Design choices and stereotypes
People choose a model's goal, its success measures, and who is tested. A team with similar backgrounds may miss harms that affected people notice immediately.
Generative tools can repeat stereotypes. A narrow image collection may make “a doctor” produce mostly one group. Translation can add an unsupported gender too. Turkish uses the same pronoun in “O bir doktor. O bir hemşire.” A tool that outputs “He is a doctor. She is a nurse” has added a pattern the original did not specify.
Watch the feedback
A feedback loop can amplify a pattern. More police patrols in one area can produce more recorded incidents there. If those records guide the next patrol choices, the system may send still more patrols to that area.
Math does not remove the human choices behind data and design.
Key Takeaways
- Bias is a repeated pattern of unfair results.
- Data can preserve unequal representation or an unfair past.
- Human labels and stand-in measures can introduce bias.
- Other features can carry clues about a removed sensitive feature.
- Design choices shape whose needs are tested.
- Feedback loops can amplify an existing pattern.
- Generated content can repeat stereotypes.
3.3 Compare group results and reduce harm
An overall score can hide who struggles with a system. A fairness check starts with the people affected and the consequences of mistakes.
Ask who bears the errors
Identify the users and anyone affected by the decisions. Ask which groups may be missing from data. Then test the system for each group. Compare rates as well as counts, because differently sized groups have different totals.
A face-unlock system is tested on 1,000 people. Group A has 800 people and 768 correct results. Group B has 200 people and 132 correct results.
Together, the correct results total 900:
The overall 90% hides a large gap. Group A has 32 failures. Group B has 68 failures, despite having only a quarter as many people. Members of group B face a much higher failure rate.
Judge the harm, not just the rate
A poor song recommendation is easy to ignore. A wrong medical, hiring, loan, or police decision can seriously harm someone. Stronger checks are needed when mistakes have greater consequences.
Different mistakes matter differently too. Blocking a real payment inconveniences a customer. Missing fraud loses money. Ask who bears each cost and whether there is a way to correct it.
Fairness involves equal consideration, but there is more than one way to measure it. Different measures can conflict. People must decide which fits the purpose and the harm involved. A calculation can reveal an uneven result without settling every question about fairness.
Choose changes that fit the problem
Collect data representing the full range of users. Review labels for unfair judgments. Include people with different backgrounds on the team, and ask affected people about problems. Test results separately for relevant groups.
For the voice assistant with 900 adult and 100 child clips, gather more varied child voices. Train again and report results for adults and children separately. Repeat checks after release as users and conditions change.
Make review possible
Accountability means people take responsibility for how the system behaves. Tell people when AI affects a decision. Publish the purpose, performance, and limits in a model card. Provide a way to question a decision and have a responsible person review it.
A person in charge must have time and authority to examine the result. Simply accepting every output adds little protection.
Key Takeaways
- Compare results separately for affected groups.
- Use each group’s own total when calculating its accuracy.
- Judge error costs as well as error rates.
- People choose fairness measures that fit the situation.
- Improve representation, labels, design, and review routes.
- Keep checking fairness after release.
4Generate, refine, and check AI content
Generative AI can produce fluent text, realistic images, and runnable code. Understanding how it creates these outputs helps you use them thoughtfully. Follow how a language model builds text, write a prompt with a clear purpose, and practice checking the result. Code needs its own close review: a program can run successfully while calculating the wrong answer.
4.1 Follow how a language model builds text
A spam classifier selects a class. A chatbot writes a reply. Both can learn from data, but the job they perform is different.
Distinguish prediction and generation
Predictive AI classifies inputs or forecasts outcomes. Generative AI creates content such as text, images, audio, video, and code. Generative models learn patterns from training examples too. Their output is not simply a stored answer retrieved on demand.
A large language model, or LLM, learns from huge amounts of text. It processes tokens, which can be whole words or pieces of words. It predicts what token could come next in the current text.
Build one continuation
Consider the words “The cat sat on the”. To make the process visible, imagine these made-up next-word chances:
| Continuation | Chance |
|---|---|
| “mat” | 0.55 |
| “sofa” | 0.20 |
| “floor” | 0.15 |
| “moon” | 0.01 |
| All other words together | 0.09 |
The chances add to 1. The model selects a continuation, adds it, then works out the next choice using the longer text. Repeating this process builds a whole answer. Real systems work in tokens, so one choice can be part of a word.
A model does not always select the most likely token. Some randomness lets it produce different continuations. Repeating the same prompt can therefore give different answers without the model having learned anything new between them.
Train an assistant's behavior
First, language models learn next-token prediction from large text collections. Further training on helpful replies and people's ratings shapes them into assistants. This training encourages useful responses and reduces harmful ones. It still leaves mistakes.
Image generators learn relationships between text descriptions and visual patterns. Many start with random noise and refine it through repeated steps toward a picture matching the prompt. Audio, video, and code tools learn patterns in their own kinds of examples.
Separate likely wording from checked facts
An LLM on its own is not a live search engine or a checked database. It generates text using learned patterns and the current context. It receives information about events after its training data through tools or user input. Even a tool that searches can misunderstand a page or report it incorrectly.
A smooth sentence can describe a nonexistent event. Generated content can also repeat stereotypes or closely resemble work in the training data. Being newly generated says how content was produced; it says nothing by itself about its accuracy or fairness.
Key Takeaways
- Predictive AI estimates outputs; generative AI creates content.
- Language models process words or word pieces called tokens.
- A reply grows through repeated next-token choices.
- Randomness can make repeated prompts produce different replies.
- Assistant training improves behavior but leaves errors.
- Fluent output still needs factual and bias checks.
4.2 Write a useful prompt and refine the reply
A prompt is the request you give a generative tool. Before writing it, decide what you need the output to help you do.
Give the tool a clear job
A strong prompt supplies useful details: the task, audience, context, format, tone, and limits. You do not need every detail in every prompt. Include what changes the kind of answer you need.
Compare “Write about volcanoes” with “Explain to a 12-year-old how a volcano erupts. Use no more than 80 words, one everyday comparison, and end with one question that checks understanding.”
The first leaves the focus and audience open. The second names the process, learner, length, style of example, and final format. Those details reduce guesses about what would be useful.
Replace vague requests
“Make it short” leaves the length unclear. “Use three bullet points of no more than ten words each” gives a limit that you can check. “Make it better” names no problem. “Use simpler words and add an example” tells the tool what change to try.
Context can matter as much as length. If a translation mistakes “the bank of the river” for a money bank, reply: “Here ‘bank’ means the side of a river. Please correct the translation.” You have identified the meaning that was lost.
Read, diagnose, and refine
Prompting often works as a conversation. Read the output before asking for more. Identify the most important gap, then give a clear new instruction. Check whether the change actually addresses that gap.
For example, an explanation may use words its audience has not learned. Ask for everyday words and a concrete example. If the new version is understandable but omits the main process, ask for the missing step. Refinement follows the problem you observe.
An example can show a desired style more clearly than a description. Provide one quiz question in the style you want and request three more. The example guides form; you still need to inspect the new questions and answers.
Compare versions against a purpose
Ask for several possible titles or poster ideas when choice would help. Compare them with the audience and purpose you decided at the start. A title that is clever but unclear may fit worse than a simple one that tells readers what the poster is about.
Keep checking separate
A precise prompt improves fit. It does not turn output into verified evidence. Asking the tool to “be accurate” can still produce wrong information. Check important claims using independent sources even when the reply follows every instruction.
Key Takeaways
- Decide the purpose before writing the prompt.
- Specify details that affect the needed output.
- Replace vague requests with checkable instructions.
- Refine the problem you observe in the reply.
- Choose versions against your audience and purpose.
4.3 Check facts, sources, and representation
A chatbot can give a wrong answer in a confident voice. Hallucination is the term for false or made-up content presented as true.
Understand why mistakes appear
A language model produces likely text. That process does not by itself compare every claim with the world. Rare facts appear less often in training data and can be especially difficult. Training and scoring can also reward giving an answer instead of admitting uncertainty.
A hallucination may be a false date, an invented quotation, a nonexistent book, or a convincing-looking reference. In 2023, a US federal court penalized lawyers who filed citations to nonexistent court cases generated by a chatbot. Their failure to check turned the generated errors into errors in a real court filing.
Break a sentence into claims
Consider this reply: “The Eiffel Tower was finished in 1899 and is 500 meters tall.” It contains two claims to check: completion year and height.
The tower's official information gives 1889 and about 330 meters. Checking only the year leaves a second error in place. A whole paragraph can contain many claims, even when it reads as one smooth account.
Use a checking routine:
- Pick out the factual claims.
- Check them in trustworthy sources independent of the AI reply.
- Open named references and verify what they actually say.
- Check dates and calculations.
- Look for important missing information.
A reference can exist without supporting the claim beside it. Read the relevant part, not just the title. Asking the same chatbot “Are you sure?” can produce another unsupported answer, including a defense of the original mistake.
Spend checking effort where it matters
Recent events, specialist or local facts, exact quotations, references, and numbers deserve particular attention. A tool may lack fresh information or confuse details that look alike. Recalculate arithmetic from the stated values.
Also check validity for the task. A true statement about school rules in another place may not answer your question. A useful answer must fit the audience, location, and purpose, and include enough information.
Check for bias as well as errors
Accurate statements can still present an unfairly narrow picture. Ask whose viewpoints appear, whose are missing, and which roles different groups receive. If an image generator produces ten “scientist” pictures, examine who appears. Comparing equivalent prompts with different names can reveal uneven treatment too.
A fact check and a bias check ask different questions. The person who uses the output is responsible for the claims and representation they carry into their own work.
Key Takeaways
- Hallucinations are false or invented content presented as true.
- Split output into factual claims and check each important one.
- Open references and check that they support the claim.
- Recalculate numbers and check dates and local relevance.
- Check representation and missing viewpoints as well as truth.
- The person using the output is responsible for it.
4.4 Trace and test AI-generated code
AI coding tools can suggest a starting point, explain errors, and propose fixes. Their code still needs review. A program can run without crashing and return the wrong result.
Read the code before trusting it
Explain what each line does. Check unfamiliar functions in official documentation. Trace a small input by hand, then test normal, boundary, and unusual inputs. Also look for readable names and unnecessary complexity.
If a line is unclear, learn what it does before using it. A tool's explanation can help, but the actual code and its results still need checking.
Trace a skipped score
Suppose a tool supplies this Python function:
def average(scores):
total = 0
for i in range(1, len(scores)):
total = total + scores[i]
return total / len(scores)
A list holds values in numbered positions starting at 0. In [4, 6, 8], position 0 contains 4, position 1 contains 6, and position 2 contains 8. len(scores) is 3. Python's range stops before its end value.
The loop therefore visits positions 1 and 2. It adds 6, then 8, giving 14. The function divides by 3 and returns about 4.67. The intended mean is:
The program runs, but its loop skipped the first value. Changing the start to range(0, len(scores)) makes it visit all three positions.
Test a boundary
The corrected loop still leaves a problem for an empty list, []. Its length is 0, so dividing the total by its length attempts division by zero. Decide what an empty input should mean before writing a guard.
One clear choice is to return a message:
def average(scores):
if len(scores) == 0:
return "No scores"
total = 0
for i in range(0, len(scores)):
total = total + scores[i]
return total / len(scores)
Check a typical list, a one-score list, and an empty list. Each probes a different part of the intended behavior.
Check names and claimed features
A plain Python list has no mean method. Code such as scores.mean() fails for that kind of object. A convincing function name is not evidence it exists. Check the object's documented operations.
Names such as total and scores help a reader follow the purpose. Names such as x and y2 make that harder. Simple code is easier to inspect and maintain when it meets the task.
Coding tools can save time, but relying on code you cannot explain blocks your learning. Protect private information in prompts, follow school rules, and acknowledge tool help. Responsibility for tested behavior stays with the person using the code.
Key Takeaways
- Code that runs can still calculate the wrong result.
- Explain and trace each line before relying on it.
- Python list positions start at 0.
- Test typical, boundary, and unusual inputs.
- Check that unfamiliar functions exist for the object used.
- Decide how empty input should behave before fixing it.
- Clear names make code easier to review.
5Make responsible choices about AI
Choosing whether to use AI means thinking about people as well as performance. Compare low-risk help with decisions that need human judgment. Keep your own role clear in schoolwork, check suspicious media before sharing, and weigh benefits against privacy and environmental costs. A reasoned decision explains who gains, who could be harmed, and what a simpler option could do.
5.1 Know when a person needs to decide
AI can process large amounts of data quickly. People bring experience, values, empathy, and responsibility. Choosing a tool means understanding these different strengths.
Recognize limits in new situations
A model can work well on one task and fail when inputs change slightly. Researchers showed that black and white stickers on a stop sign could make an image classifier read it as a speed-limit sign. A person could still recognize the stop sign. A small change in the input had disrupted the model's learned pattern.
Language tools can lose meaning too. A word-by-word translation of “It's raining cats and dogs” misses the meaning of heavy rain. Speech recognition may struggle with accents or names. Spell checkers, text-to-speech, translators, and autocomplete are useful, but important meaning needs checking by someone who understands the context.
Ask how an answer can be checked
Some models have millions of weights. Their result may come with no simple explanation a person can follow. That matters when someone needs to know why a decision affected them.
AI works from data patterns, without human lived experience or common sense grounded in a person's life. It may give no outward sign when it is wrong. A person can ask what a recommendation means for someone and whether it fits the wider situation.
Match checks to the consequences
Sorting holiday pictures by subject is low risk. A wrong label is easy to change. A spelling suggestion is useful if you read the change and check the meaning.
A decision about a program place or medical treatment has greater consequences. AI can help supply information, but a responsible person should decide. The harder an output is to check and the greater the harm of an error, the stronger the need for human judgment.
Before using AI, ask:
- What task needs doing, and would a simpler method work?
- Does suitable data exist for this situation?
- How serious would a mistake be, and can I check it?
- Does the task involve private information?
- Is the energy and effort worthwhile?
Make human review real
A human in the loop reviews or approves output before it takes effect. This helps only when the person actually examines it. Automation bias is trusting a computer's answer too readily. A reviewer who clicks “approve” without checking can allow the same error through.
Human review needs enough understanding to question the output and enough authority to change it. For a high-stakes decision, a person's name on the process means little if they cannot challenge the recommendation.
Claims about AI's abilities also need checking. Ask who made the claim, what test was used, and which limits were reported. A successful demonstration on selected inputs may say little about the situation you face.
Key Takeaways
- AI can fail when inputs differ from training examples.
- People bring context, empathy, values, and responsibility.
- Higher-stakes decisions need stronger checks and human judgment.
- Human review helps when the reviewer truly examines the output.
- Automation bias means trusting computer output too readily.
5.2 Keep learning, honesty, and privacy in view
Responsible use begins with a purpose. A tool should help you learn and create while you keep control of the work you submit.
Check the rules first
School rules can differ between tasks. A teacher may allow brainstorming for one assignment and forbid AI help for another. Check before starting. Services can also have minimum ages, so check the conditions of the service you plan to use.
An explanation in simpler words, extra practice questions, or starting ideas can support learning. Handing in generated writing as your own skips the thinking the task was meant to build.
Stay the main creator
For a report about a local river, a student asks for three possible angles. The student chooses one, researches it, and writes the report. AI supplied possible starting points; the student made the choices and did the main work.
Pasting in the assignment and handing in its generated reply does not serve that learning purpose. Changing a few words leaves the main thinking with the tool.
A useful acknowledgment names the role clearly: “I used an AI chatbot to suggest three topic ideas. I chose the topic, wrote the text, and checked the facts myself.” Use the acknowledgment format your school asks for. Honesty is about describing what actually happened.
Protect personal information
Information entered into a tool may be stored, read by staff, or used in future training, depending on the service. Keep full names, addresses, passwords, private photos, and health details out of prompts. This applies to other people's information too.
Remove identifying details before asking for help. “My friend” often gives enough context without naming the person. Think about what the request needs, then leave out unrelated personal information.
Respect other creators and subjects
Get permission before uploading someone's photo, voice, or written work. A realistic AI image should not be presented as a photograph of a real event. Follow school guidance on crediting images and check service terms.
Do not use a tool to bully, impersonate, or trick someone. The person making or sharing content remains responsible for its effects.
Choose people for personal support
A chatbot can sound warm without understanding your life. It can give unsafe advice. For health, safety, or personal worries, speak with a trusted adult or qualified professional. Friendly wording does not turn a tool into a doctor, counselor, or friend.
Key Takeaways
- Check task rules and service conditions before use.
- Use AI to support the thinking the task is meant to build.
- Describe the help you actually used.
- Keep private information out of prompts.
- Get permission before uploading other people’s content.
- Take personal worries to a trusted adult or qualified professional.
5.3 Check suspicious media before sharing it
A realistic voice or video can be generated or altered. A deepfake makes a person, place, or event falsely appear genuine. An obvious cartoon is different because viewers would not mistake it for real footage.
Understand what is at stake
Short recordings can be misused to create a convincing imitation. A cloned voice may pretend to be a relative asking for money. False clips can spread news that never happened or target a person with harassment.
Deepfakes also weaken trust in real evidence. People may dismiss a genuine recording as AI. The problem includes both believing false evidence and rejecting real evidence without a reason.
The underlying technology can have good uses with consent and clear labeling, such as film dubbing, special effects, or a synthetic voice for someone who has lost speech. Purpose, consent, and presentation matter.
Slow down and investigate
Content that makes you angry or scared can push you to share quickly. Pause and check:
- Who first posted it, and can that source be trusted?
- Can you find the original version?
- Do reliable sources report the same event?
- Do the date and place fit the claim?
- Does a reverse image search reveal an older or different use?
Many repeating posts may copy the same false source. Popularity is different from independent evidence.
Work through a school-closure claim
A new account shares a video of a mayor saying schools will close tomorrow. The official city website and local news have no such announcement. A reverse image search finds the background in an older speech.
These clues make the claimed announcement unreliable. Do not pass it on as news. Check through the school's or city's known communication channels. A missing announcement alone would not settle the video's origin; the checks together give reason to pause and investigate.
Do not rely on visible flaws
Odd hands, mismatched lip movement, or strange lighting can prompt a check. Good fakes may have no obvious flaw. Watermarks and labels help when present, but they can be absent or removed. Neither a realistic appearance nor a missing AI label establishes authenticity.
Respond to harm safely
Do not forward harmful content. Report the post and tell a trusted adult. Keep the post details or a record for reporting without spreading the material. If an image is sexual, record the account and link instead of copying the image. Fake sexual or humiliating images can cause serious harm, and making or sharing them can have legal consequences.
For a call asking for money or secrets, hang up. Call the person back through a number you already know. Hearing a familiar voice is not enough to verify who called.
Key Takeaways
- Deepfakes falsely make generated or altered media seem genuine.
- Check origin, independent reporting, date, and place.
- Appearance and missing labels cannot establish authenticity.
- Repetition across posts can come from one false source.
- Report harmful content without spreading it.
- Verify suspicious calls through a known contact route.
5.4 Weigh benefits, risks, and alternatives
A decision about AI should name both the benefit and the people who bear its risks. The same system can help one group while creating costs for another.
Consider work and access
AI can support earlier disease detection, captions, reading aloud, translation, and safer work. It can save time on repetitive tasks. These benefits depend on whether the system works well for the people using it.
Automation changes work. Some tasks shrink or disappear, new roles appear, and many jobs change. A chatbot may answer simple customer questions while staff handle difficult ones. People affected by these changes may need training and support. “AI changes tasks” is more useful than assuming every job has the same outcome.
Ask what happens to data and creative work
Recommendation systems can track viewing and buying. Face recognition can identify people in public. Ask what data is collected, who can access it, how long it stays, and whether people agreed.
Models have been trained on creative work without every creator being asked or paid. Questions about training permission and ownership of generated work remain disputed across countries. Communities' cultural knowledge and stories also deserve permission and respect. Do not assume that accessible material is free for any use.
Laws differ and change. A responsible evaluation names the privacy and ownership questions without pretending one worldwide rule settles them.
Count the physical resources
Large AI models usually train and run in data centers. These need electricity, hardware, and often cooling water. Manufacturing hardware uses resources, and generating electricity can produce carbon emissions. Smaller models can run on devices such as phones; those devices use energy and hardware too.
In its 2025 report, the International Energy Agency estimated that all data centers used about 415 terawatt-hours in 2024, around 1.5% of global electricity. It projected about 945 terawatt-hours in 2030, with AI driving much of the growth. A terawatt-hour is one billion kilowatt-hours. These figures cover all data centers, and the 2030 number is a projection.
Reach a reasoned judgment
A school considers face recognition for attendance. The benefit is a few minutes saved per class. The risks include sensitive face data, possible differences in errors between groups, and students having little choice. Calling the roll is an available alternative. One reasoned judgment is that the limited benefit does not justify these risks.
For another proposal, ask who gains, who could be harmed, how likely and serious the harms are, and which safeguards would help. Compare a simpler option. Then state a decision with reasons grounded in the situation.
Responsibility belongs with people who build, choose, and use systems. Misuse such as scams and surveillance needs attention alongside accidental errors.
Key Takeaways
- AI brings benefits and changes tasks and jobs unevenly.
- Check data collection, access, retention, and consent.
- Ownership and training permission remain disputed across countries.
- AI uses physical resources, including electricity and hardware.
- The IEA figures describe all data centers and include a dated projection.
- Compare benefits, harms, safeguards, and simpler alternatives.
- People remain responsible for building and using systems.
How AI Works examples
1Follow an AI system from input to output
12 steps
- 1IntroductionStart with a photo search
A phone can find beach pictures without you labeling every photo. What enters the system, what task does it perform, and what comes out?
Follow those parts first. Then compare a system following written rules with one trained on examples. This helps explain why AI can work without a robot body and why people still shape what a learning system does.
- 2ExplanationTrace the picture data
A digital photo is a grid of pixels, stored as numbers. Image recognition looks for patterns such as edges, shapes, and textures. Its output can be a label like “beach.”
The picture is the input. Identifying its subject is the task. The label is the output. A photo app can then use that label to organize a search result.
- 3ChallengeFind another input and output
A robot vacuum senses a wall and turns before reaching it. Name its input and its output. Does the moving body itself make it AI?
---reveal---
Distance readings are the input; the chosen change of direction is the output. A moving body alone does not establish AI. AI concerns how a task is handled, while a robot is a physical machine.
- 4ExampleTry a written spam rule
A programmer writes: “If a message contains ‘you won’, mark it as spam.” The filter applies that condition exactly.
A scammer changes the phrase to “y0u w0n.” The characters no longer match, so this rule misses the altered phrase. Someone needs to add or change a rule. The system has no learning process for discovering that new spelling.
- 5ExplanationTrain on labeled messages
A supervised spam filter receives many examples labeled “spam” or “not spam.” A learning algorithm finds useful patterns in those examples and produces a model.
The model may recognize other clues in an altered scam message, such as a strange link. It can still make mistakes. Developers choose the data and check whether the learned patterns work.
- 6ChallengeChoose a method for a score total
A club needs the exact total of its members’ quiz scores. Should it train a model to estimate the total or write calculation steps? Explain the choice.
---reveal---
Write exact calculation steps. Adding known scores has a clear method and a correct total. A learned estimate introduces avoidable errors; machine learning is useful when the needed pattern is difficult to write as exact instructions.
- 7ConnectionCombine approaches when needed
A bank can combine a learned model, fixed rules, and a person. A model scores unusual payment patterns; a rule blocks certain very large payments; a person examines flagged cases.
These approaches solve different parts of the task. “Uses AI” does not mean every part learns from examples. It is useful to ask which part produces each decision.
- 8ExplanationName an example’s parts
A wristband records people walking and running. One recording is an example. Movement strength is a feature, a property the system can measure. “Walking” attached to a checked recording is its label.
During training, the algorithm uses labeled examples to find a pattern. The resulting model is kept for classifying new recordings.
- 9AnalogySeparate the procedure from the result
Think of a learning algorithm as a procedure for building a model. The data is the material it works on, and the model is what it produces.
The same procedure can produce different models when given different examples. In the wristband project, collecting more slow-running examples can change the learned pattern without changing the learning algorithm itself.
- 10ChallengeSeparate training from using the model
A finished wristband labels a new recording “running.” No retraining occurs. What is this output called, and has this use necessarily changed the model?
---reveal---
The output is a prediction. It describes the present recording, so “prediction” need not mean a forecast. This use has not changed the model: many systems keep their learned patterns fixed until developers retrain them.
- 11ChallengeExplain the whole project
A team records movement, labels recordings, trains a model, and installs it on a wristband. The wristband then classifies new recordings. Identify what the people supplied and what the model does during use.
---reveal---
People supplied the goal, examples, labels, and training choices. During use, the learned model turns new motion inputs into class predictions. The training process built the model; it is separate from making each prediction.
- 12RecapQuestions to ask about a system
For an unfamiliar system, ask:
- What enters, and what output serves its goal?
- Which decisions follow written rules?
- Which patterns came from training examples?
- What did people choose, and how was the result checked?
These questions give you a concrete way to examine the system’s behavior.
2Build a small classifier and report its results
18 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionA result needs a fair check
- 2ExampleFind the walking mean
- 3ExamplePlace the learned boundary
- 4ChallengeApply the learned model
- 5ExampleCorrect an error by changing weights
- 6ExplanationKeep the test unfamiliar
- 7ExampleCount correct results
- 8ChallengeLook behind a strong total
- 9Key InsightNotice a training–test gap
- 10ExampleFind the weak condition
- 11ExampleCheck a targeted change
- 12ChallengeChoose the final reported score
- 13TipInvestigate an unusual example
- 14ExplanationChoose whether answers are available
- 15ExampleRead two listener groups
- 16ChallengeChoose learning for a new goal
- 17ChallengeRepair a model report
- 18RecapRead a model report critically
3Find missing examples and hidden unfairness
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the people and conditions
- 2ExampleCompare voice data with users
- 3ChallengeChoose data that fills a gap
- 4Key InsightSeparate absence from rarity
- 5ExplanationTrace bias through human choices
- 6ExampleInspect a stand-in measure
- 7ChallengeLook for a remaining route into bias
- 8ConnectionFollow the new data back
- 9ExampleCalculate each group’s result
- 10ExampleCompare with the pooled score
- 11ChallengeDecide what an overall improvement leaves open
- 12ChallengePlan a response to an unfair result
- 13RecapQuestions for a fairness review
4Ask for help and inspect the result
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionA useful reply still needs inspection
- 2ExplanationBuild text one token at a time
- 3ExampleChoose among possible continuations
- 4ChallengeExplain two different replies
- 5ExampleMake the request useful
- 6TipRefine the observed problem
- 7ChallengeFix a translation request
- 8ExplanationLook for generated claims
- 9ExampleCheck two facts separately
- 10ChallengeCheck what a citation supports
- 11ConnectionCheck representation too
- 12ExampleRead the loop’s positions
- 13ExampleCompare actual and intended results
- 14ChallengeTest after fixing the loop
- 15TipVerify unfamiliar operations
- 16ChallengeChoose evidence for a coding claim
- 17RecapInspect each output in a fitting way
5Choose a responsible use of AI
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionBegin with the decision people face
- 2ExplanationMatch oversight to the stakes
- 3ChallengeExamine a review process
- 4ExampleKeep the student’s thinking central
- 5ChallengeDecide whether editing is enough
- 6TipRemove information a prompt does not need
- 7ExplanationCheck the apparent event
- 8ExampleInvestigate a closure clip
- 9ChallengeVerify a familiar voice
- 10ExplanationLook beyond one user’s benefit
- 11ExampleCompare an attendance proposal
- 12ChallengeEvaluate a claimed improvement
- 13ChallengeSeparate a projection from a measurement
- 14RecapGive reasons for a choice
How AI Works practice questions
Set 1: Evaluate results and choose useful improvements10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Recognize systems and apply a learned model10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Trace bias and improve the fit of AI output10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Check claims and test generated code10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
total = 0, adds scores[i] for i in range(1, len(scores)), then returns total / len(scores). What does it return for [3, 9, 12]?Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
value >= 10. The only test used was [12, 15]. What next test most directly exposes the logic error?Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
[6]. The developer claims this proves the loop includes every value and handles all inputs. What tests best challenge both parts of that claim?Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Judge real uses and challenge misleading claims10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Accountability
Accuracy
Acknowledgment
AI bias
Algorithm
Artificial intelligence
Audience
Automation
Automation bias
B
Boundary case
C
Carbon emissions
Class
Classification
Classifier
Clustering
Code trace
Confidence score
Confusion matrix
Context
D
Data
Data center
Data quality
Data-driven approach
Decision boundary
Deepfake
E
Example
Expert system
F
Fact checking
Fairness
Feature
Feedback loop
G
Generative AI
GPU
Group accuracy
H
Hallucination
Human in the loop
Human judgment
Hypothesis
I
Image recognition
Impersonation
Independent source
Input
L
Label
Large language model
Logic error
M
Machine learning
Method
Misinformation
Model
Model card
N
Narrow AI
Non-example
O
Outlier
Output
Overfitting
Ownership
P
Percentage point
Permission
Personal data
Prediction
Predictive AI
Prompt
Prompt refinement
R
Rare event
Representative data
Retraining
Reverse image search
Rule-based system
S
Stand-in measure
Stereotype
Supervised learning
T
Terawatt-hour
Test data
Token
Training
Training data
U
Unsupervised learning
V
Validation set
Validity
W
Watermark
Weight
Z
Zero problem
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.