Data quality, bias and feature engineering
10 questions on biased data, what makes data high quality, the AI project lifecycle and feature engineering. With explanations.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
A model is trained on data that is biased. What should you expect from its outputs?
- Biased outputs too, because a model learns from the data it is given
- Fair outputs, because the algorithm is neutral
- Random outputs
How it works
- One question per screen. An answer is final once sent.
- You see right away whether you were right, with a short explanation.
- The stopwatch runs: on equal scores, the faster player ranks first.
- Only your best attempt counts, so replaying is never risky.
About this quiz
A machine learning model can only learn from what it is shown. If the data is dirty, lopsided, out of date or missing whole groups of people, even a clever algorithm will produce poor results, and it will usually do so with great confidence. That is why practitioners say that much of the real work in AI happens before any model is trained. Preparing the data is where projects succeed or quietly fail.
The most important idea is simple: a model learns from the data it is given, so biased input leads to biased output. If the available data does not represent the problem space, the population or the phenomenon being studied, the model will carry that gap into its predictions. This is not a flaw that a better algorithm can fix on its own. It has to be noticed and addressed in the data, and the earlier it is noticed, the cheaper it is to repair.
High-quality data has several traits. It is clean, meaning inconsistencies and errors have been removed. It is relevant to the problem and contributes to its solution. It is diverse enough to include different scenarios and variations, which helps a model generalise. In classification problems it is balanced, so each class is fairly represented. It is up to date, reflecting the current state of the problem. It is accessible, so it can be found and processed when needed. And it is legally collected and used, in line with regulations. Having a lot of data is not on the list, because volume cannot make up for poor quality.
AI projects also follow a lifecycle, from collecting data to working on it, building the model, deploying it, collecting results and validating them. These stages do not have to happen in a strict order, and teams often loop back as they learn what the data can and cannot do.
One of the most valuable steps in that lifecycle is feature engineering. It is the work of preparing a dataset for machine learning: extracting, selecting, transforming and creating features from raw data so that they are more meaningful for the model. A simple change of representation, such as describing points by angle and distance instead of by horizontal and vertical position, can turn a hard problem into an easy one. Good features usually need expert knowledge of the subject, which is why the work is slow and why many people consider applied machine learning to be mostly feature engineering.
Teams often discover these problems late, after a model has already been shown to users. A quick habit helps: before training, ask where the data came from, who and what it leaves out, how old it is, whether each class appears often enough, and whether you are allowed to use it. Five minutes spent on those questions can save weeks of retraining and a good deal of embarrassment, because a model's mistakes are rarely random. They tend to mirror exactly the weaknesses the data had from the start.
This quiz has 10 questions on bias, the traits of good data, the project lifecycle and feature engineering. Most are short, realistic cases, such as a hiring model trained on a narrow history or a model built on stale data. Every answer is explained. It suits beginners, analysts and managers who want to ask better questions about the data behind an AI project.
Questions and answers
›How long does the quiz take?
About 3 to 4 minutes, since there are 10 questions of roughly 20 seconds each. An explanation follows every answer.
›Do I need to program?
No. The questions are about reasoning and examples, not about code. You only need to think about how a model learns from the data it receives.
›How does bias get into a machine learning model?
Mostly through the data. If the examples a model learns from under-represent some groups, reflect past unfair decisions or leave out important situations, the model reproduces those patterns. The algorithm itself is neutral, but it learns whatever regularities the data contains, including unwanted ones.
›What makes data high quality?
Good data is clean, relevant to the problem, diverse, balanced between classes, up to date, easy to access and legally collected. Each trait protects against a different failure, from noisy errors to a model that describes an outdated world. A smaller dataset with these traits often beats a huge one without them.
›Why does balanced data matter in classification?
If one class dominates, a model can look accurate just by favouring it, while failing on the rare classes that often matter most. Balanced data fairly represents each class, so that the model has to learn the differences between them rather than the odds of the common case.
›What are the stages of an AI project?
A typical project includes data collection, data operations, modelling and development, deployment, results collection and validation. The stages are not strictly sequential. Results from validation often send a team back to collect better data or change the model, so the work is a loop rather than a line.
›What is feature engineering?
It is the process of preparing data for modelling by extracting, selecting, transforming and creating features from raw data so that they carry more useful signal. It can mean combining columns, changing a scale or representing the same information in a new way. It often takes domain knowledge and a lot of time.
›Why can changing how data is represented help a model?
A model finds patterns more easily when the representation makes them simple. Points that form a tangled shape in one coordinate system can separate cleanly in another. Choosing a better representation exposes structure that was always in the data but hard for the model to see, which is the core idea behind feature engineering.