AI, machine learning, and generative AI
AIB-C01 · Lesson 1 of 26 · 4:08
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Lesson 1 of the free AWS Certified AI Business Strategist series (AIB-C01 beta exam, domain 1, AI fundamentals and literacy). In this lesson: algorithms, models, and training; inference in business terms; AI, machine learning, and generative AI; predict or generate; learning from historical data; and what history cannot tell. With three quick checks and a recap, and AnyCompany Foods, a fictional maker of soups, sauces, and snacks, as the running example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Every department wants AI
AnyCompany Foods sells soups, sauces, and snacks to supermarkets and online shoppers, and every department now wants AI. The sales team wants better demand forecasts, the contact center wants an assistant, and marketing wants product descriptions written in seconds. Before you can judge any of these ideas, you need the basic vocabulary, so this lesson starts there.
Algorithms, models, and training
An algorithm is a procedure that learns patterns from data, such as a method that fits a line or grows a decision tree. Training means running that algorithm on data, and the result is a model: a set of learned patterns that can be reused. Inference is when you send new inputs to the trained model. The output of inference is a prediction, like next week's demand for tomato soup, or the topic of a customer email.
Inference in business terms
Training happens now and then, and it can be expensive, while inference happens every time someone uses the model. For a business, that difference matters: training is mostly a project cost, while the cost of inference grows with usage. A prediction is also a probability, not a certainty: a model can forecast about four hundred cases for a store, with a range around that number. Good business decisions take that uncertainty into account.
AI, machine learning, and generative AI
Artificial intelligence is the broad field: any technique that lets machines perform tasks we link to human intelligence, including systems built from hand-written rules. Machine learning is a subset of AI, where systems learn patterns from data instead of following rules that people write. Generative AI is a subset of machine learning that creates new content, such as text, images, code, or audio, with large models trained on huge amounts of data. So every generative AI system is machine learning, and every machine learning system is AI, but not the other way around.
Predict or generate?
A simple test helps: traditional machine learning predicts or classifies, while generative AI produces something new. Forecasting demand, flagging a late shipment, or scoring the chance that a customer leaves are traditional machine learning. Drafting a product description, summarizing a complaint, or answering a question in natural language are generative AI. Generative AI runs on foundation models, very large models trained on broad data, which can be adapted to many tasks.
Learning from historical data
Machine learning models learn from historical data: past examples where the outcome is already known. For a demand model, each example has features, such as the season, the price, and promotions, and a label, the quantity that was actually sold. Teams split that data: most of it trains the model, a validation set helps tune it, and a test set that the model never saw measures how it will do on new data. A model that scores well on its training data but poorly on the test set has memorized instead of learning, which is called overfitting. And because the world changes, models are trained again on fresh data, so they keep improving over time.
What history cannot tell
Historical data has limits. A model only knows the patterns of the past, so a new product, a new market, or a sudden event can surprise it. If the history contains a bias, such as stores that were never offered a promotion, the model learns that bias too. That is why a business owner should always ask which data trained a model, and how recent that data is.
Recap
Let's recap. An algorithm learns from data during training, and the result is a model. Inference sends new inputs to the model, and returns predictions, which are probabilities, not certainties. Machine learning is a subset of AI, and generative AI is a subset of machine learning that creates new content. Models learn from historical data, split into training, validation, and test sets. And a model only knows its past: ask which data trained it, and how recent it is.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
AnyCompany’s demand model was trained last month, and now planners send it fresh store data every morning to get order forecasts. What happens each morning?
- The model is trained again
- The algorithm is designed
- The model runs inference
- The data is labeled
Show the answer
The model runs inference
Sending new inputs to a trained model to get predictions is inference. “The model is trained again” is wrong, since training happened last month, and new inputs do not change the model. “The algorithm is designed” is wrong, because the algorithm was chosen before training, not every morning. And “The data is labeled” is wrong, since labeling attaches known answers to training examples, while the planners only ask for forecasts.
Marketing wants a tool that writes a first draft of the description for each new sauce, from its list of ingredients. Which type of AI fits?
- Generative AI, which creates new content
- A demand forecasting model
- A classification model
- A clustering model that groups products
Show the answer
Generative AI, which creates new content
Generative AI creates new content, such as a product description, from a prompt. “A demand forecasting model” is wrong, since a forecasting model predicts numbers, like demand, and it does not write text. “A classification model” is wrong, because a classification model assigns a category, instead of producing a new description. And “A clustering model that groups products” is wrong, since clustering groups similar products, without writing anything.
AnyCompany’s new demand model scores almost perfectly on its training data, but its forecasts for the test set are poor. What does this suggest?
- The model is ready for production
- The test set can be ignored
- Generative AI would do better
- The model memorized its data: overfitting
Show the answer
The model memorized its data: overfitting
A model that does well on its training data but poorly on unseen data has memorized it, which is overfitting. “The model is ready for production” is wrong, because the test set shows how the model will behave on new data, and here it fails. “The test set can be ignored” is wrong, since the test set exists precisely to reveal this problem, so it cannot be ignored. And “Generative AI would do better” is wrong, because demand forecasting is a prediction task, and generative AI is not automatically better at it.