Menu

AI 101: Key Concepts for Beginners

Start with the fundamentals of AI: machine learning, deep learning, natural language processing, everyday applications, and ethical questions.

Your inbox flags a suspicious message. A map estimates when you’ll arrive. A writing assistant suggests a clearer sentence. These familiar features can involve artificial intelligence, although the technology behind them varies. Some rely heavily on machine learning; others also use ordinary, programmed rules.

AI became much more visible when people started chatting with tools that could write, explain, and generate images on demand. But terms such as machine learning, deep learning, and large language model are easy to mix up. This AI 101 guide explains how they connect, what happens when a model learns, and where AI can still get things wrong.

What does artificial intelligence actually mean?

A widely used definition comes from the OECD’s AI principles. In simple terms, an AI system uses inputs to infer how to produce outputs, such as predictions, content, recommendations, or decisions.

That definition is broad because AI is a field, not one particular program. A chess-playing system, a fraud detector, and a conversational assistant may all be called AI, but their methods can be very different. Some traditional AI approaches rely on human-written rules or search strategies. Machine learning takes a different route: the system learns patterns from data.

Knowing the difference makes it easier to understand what an AI product actually does—and what claims about it mean.

AI, machine learning, and deep learning

These names describe related fields, not three interchangeable technologies. Machine learning is part of AI; deep learning is part of machine learning.

Diagram showing machine learning as a subset of artificial intelligence, deep learning as a subset of machine learning, and most modern generative AI inside deep learning.

Figure 1. A simplified relationship between the fields. Most modern generative AI uses deep learning, but generative AI is not universally a separate, neatly nested category.

Artificial intelligence (AI) is the broadest field. It includes systems that reason through rules, search for solutions, or learn from examples. A purely hand-written keyword rule, by itself, isn’t necessarily considered an AI system; it helps illustrate the contrast with learning from data.

Machine learning (ML) uses data to train a model to recognize patterns and make predictions or generate content. Rather than manually listing every suspicious phrase in an email, a developer can train a spam classifier on messages labeled spam and not spam. The model estimates which label fits a new message.

Deep learning is a family of machine-learning methods built around neural networks with many layers. It has been particularly effective with complex inputs such as images, speech, and text.

Generative AI produces content such as text, images, audio, or code. Most widely used generative AI systems today rely on deep learning. Large language models (LLMs), which power many modern AI chatbots, are examples.

The useful distinction: a chatbot is only one possible application of AI. Fraud detection, photo search, recommendation engines, and speech recognition can use AI without being chatbots.

Deep learning vs machine learning

Deep learning is one kind of machine learning. The practical question is whether a neural network can pick up something a simpler model would miss. Start by looking at what you can give the model.

Imagine you run a farm stand and want to flag bruised apples before packing them. If workers already record the size and color of each mark in a spreadsheet, a small decision tree is a reasonable first test. It takes little computing power to train, and you can follow the branches to see why it flagged an apple.

Now suppose a camera takes a photo of each apple. Measuring every mark by hand would defeat the point of using the camera. A neural network can learn visual patterns from labeled photos. Training one from scratch can take substantial data and computing time. You can also start with a network trained on other images and adapt it using a smaller set of your own photos. That’s called transfer learning.

Before switching, set aside a fresh crate. Have someone inspect the apples, then count how many bruised ones each method misses and how many good ones it sets aside. Include a few photos taken in different light. Is the improvement worth the extra work, and can you explain the mistakes well enough to fix them?

How does machine learning work?

Let’s use an example small enough to understand without advanced math: a spam filter.

A supervised-learning project typically involves:

  • Training data: examples the model learns from.
  • Labels: known answers attached to those examples, such as spam and not spam.
  • Features: numerical information extracted from the examples. For text, this might be how often each word appears.
  • Training: fitting the model to patterns connecting the features with the labels.
  • Prediction: applying the trained model to a new example.

Other kinds of machine learning don’t need labeled examples. Here, though, the labels make it easy to see what the model is being asked to learn.

Build a tiny spam filter in Python

This short example uses scikit-learn to train a classifier on six messages and predict two new ones. Install the library first:

python -m pip install scikit-learn

Then run this Python code:

spam_filter.py
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB

# Six example messages, labeled by a person
messages = [
    "Win a free prize now",
    "Claim your free gift card today",
    "You have won cash, click here",
    "Are we still meeting for lunch?",
    "Here are the notes from class",
    "Can you send me the report by Friday?",
]
labels = ["spam", "spam", "spam", "not spam", "not spam", "not spam"]

# Turn the training messages into word-count features
vectorizer = CountVectorizer()
X = vectorizer.fit_transform(messages)

# Learn which word patterns are associated with each label
model = MultinomialNB()
model.fit(X, labels)

# Use the same trained vectorizer on unseen messages
new_messages = ["Free cash prize, click now", "Lunch on Friday?"]
predictions = model.predict(vectorizer.transform(new_messages))

for message, label in zip(new_messages, predictions):
    print(f"{message!r} -> {label}")

Output:

'Free cash prize, click now' -> spam
'Lunch on Friday?' -> not spam

Figure 2. The example separates training from prediction. New messages must use the same fitted vectorizer.

Flowchart showing labeled emails converted into word-count features, used to train a spam classifier, and then used to classify new messages.

CountVectorizer turns the messages into word counts. MultinomialNB is a simple classifier suited to this kind of feature. It doesn’t understand the messages the way a person does; it uses statistical patterns associated with each label.

The two predictions above match our expectations, but that isn’t evidence of real-world accuracy. Six training examples cannot capture the variety of genuine email, and testing two chosen messages isn’t a reliable evaluation. A practical filter needs more representative data and a separate labeled test set.

Three common learning approaches

  • Supervised learning: learn from examples that have known answers, such as labeled spam messages.
  • Unsupervised learning: find structure in unlabeled data—for example, grouping similar documents.
  • Reinforcement learning: improve behavior using feedback tied to actions and outcomes. It has been used in game-playing systems and, in some forms, to improve how chatbots respond.

What is a large language model doing?

Many modern text-generating LLMs begin with pretraining that teaches them to predict the next token in a sequence. A token is a chunk of text—sometimes a whole word, sometimes only part of one. By learning patterns across vast collections of text, a model becomes capable of generating sentences, explanations, and code.

That doesn’t mean a chatbot is simply looking up a memorized answer. It generates output based on patterns learned during training and the information available in the current interaction.

Two terms are worth knowing:

  • Tokens: the pieces of text a language model processes and generates.
  • Context window: the amount of information a model can directly consider at once, including your prompt and relevant conversation history. Some products can summarize older context or retrieve additional information, but those are separate mechanisms.

After pretraining, many assistant models receive further training to follow instructions and produce more useful responses. That may include supervised fine-tuning, feedback from people, and other preference-training methods.

What AI does well—and where it fails

AI can be useful for identifying patterns, sorting information, drafting text, generating images, transcribing speech, and helping people explore complicated subjects. Whether it works well depends on the task, model, data, and how you use it.

There are also predictable failure modes.

It can produce false information that sounds convincing. These outputs are often called hallucinations. In a 2025 OpenAI research explanation, the authors describe an example in which a chatbot gave three incorrect titles for a researcher’s dissertation. They also argue that evaluation systems that reward guessing instead of acknowledging uncertainty can contribute to the problem.

It can reproduce biases and outdated assumptions. Models learn from data, and data can be incomplete or unrepresentative. Testing and additional safeguards help, but they don’t erase every limitation.

Its information may be out of date. A model’s training has limits. Some AI products can search the web, run tools, or retrieve documents, but those capabilities must actually be available and used to answer a current question.

It can make simple mistakes. A chatbot may explain an arithmetic rule correctly and then calculate a result incorrectly. Fluent writing isn’t a reliability guarantee.

A good habit is to use AI to move faster, then verify names, dates, numbers, code behavior, and consequential claims against dependable evidence.

Five beginner mistakes to avoid

1. Treating AI like a person. A useful answer doesn’t prove that a system understands a topic as a human would. Judge the result, not how confidently it’s written.

2. Trusting the tone of an answer. An incorrect response can sound just as polished as a correct one. Check important claims.

3. Thinking all AI means chatbots. Many AI applications classify, predict, recognize, or recommend rather than converse.

4. Waiting until you know advanced math. You can start learning how models work and run beginner examples before mastering statistics and linear algebra. Those subjects become more important as you go deeper.

5. Assuming a chatbot retrains itself during your conversation. A conversation can influence subsequent replies through its context, and some products provide saved-memory features. That is different from updating the model’s underlying parameters during an ordinary chat. Review a tool’s privacy settings before sharing sensitive information.

Key terms at a glance

TermMeaning
ModelA learned system used to make predictions or generate outputs
Training dataExamples or material used to train a model
FeatureA measurable input used by a model, such as a word count
Neural networkA family of machine-learning models built from connected computational units
PromptInput or instructions provided to an AI system
TokenA unit of text processed by a language model
Context windowInformation a model can directly consider in a given interaction
HallucinationGenerated information that is plausible but incorrect
Fine-tuningAdditional training that adapts a model to tasks or behaviors

Where to go next

For a clearer comparison of overlapping technical fields, read AI vs. Machine Learning vs. Data Science. If you’re curious about getting better results from AI assistants, continue with The Ultimate Guide to Prompt Engineering.

To explore machine learning more deeply, try Google’s free Machine Learning Crash Course. The course includes interactive explanations and practical exercises.

One easy place to begin: run the spam-filter example above, change one training message, and see whether the predictions change. That small experiment tells you more about learning from examples than memorizing another definition.

Sources and further reading

References reviewed November 25, 2026.

Get Edgelyst Updates

Subscribe for new AI articles, practical guides, and learning resources.