Joyous Brands

Artificial Intelligence: A Conceptual Learner's Series

Part 1: What is AI?

How to use this primer

The foundations of AI come down to eight ideas, and each one is taught here in the same five steps:

  1. In one line: the idea in plain English, short enough to repeat to a friend.

  2. Example: an everyday scenario that shows the idea working before any jargon appears.

  3. Formally: the vocabulary and notation, each term tied back to the example.

  4. Connections: how the idea links to the other concepts in this primer.

  5. Watch out: common misconceptions and traps.

Read two or three concepts per sitting. Before moving on, look away from the page and try to explain the last concept from memory. The retention kit at the end has self-test questions, a review schedule and a build exercise.

Concept 1: What counts as intelligence in a machine

In one line: A machine is intelligent to the degree that it reliably chooses actions that work out well, including in situations nobody spelled out for it in advance.

Example: Compare two thermostats. The first follows one rule: below 68°F, turn on the heat. The second notices you leave at 8 a.m. and return at 6 p.m. It sees a cold front in the forecast and starts warming the house at 5:30. It also learns that you like it cooler at night.

Both thermostats act, but only the second adapts to circumstances it was never explicitly programmed for. Now consider a chess engine. It plays far better than any human, yet it cannot make a cup of tea or understand a joke. Is it intelligent? In one domain, yes. In general, no.

Formally:

  • Narrow AI performs well on one task or a small family of tasks. Chess engines, spam filters and image classifiers are narrow.

  • Artificial general intelligence (AGI) would perform well across the wide range of tasks humans handle, adapting to new ones.

  • There is no single agreed definition of intelligence. A useful working one is the ability to achieve goals across a variety of environments. Under that view, intelligence is always measured against a task and an environment.

Connections: "Achieve goals" becomes the rational agent (Concept 4). "A variety of environments" raises the question of limited time and information (Concept 5).

Watch out:

  • Human-like is not the same as intelligent. A pocket calculator does arithmetic better than any human and is not intelligent in any interesting sense.

  • Skill in one domain doesn't transfer. Superhuman performance at a game says little about competence elsewhere.

  • Intelligence is a spectrum, not a switch. Asking whether a system is "intelligent, yes or no" usually hides the better question: how well, at what, and under what conditions?

Concept 2: Four goals for AI

In one line: Researchers have disagreed about the target: should AI copy humans or simply do the right thing, and should we care about how it reasons or only about what it does?

Example: Four teams each build an AI that drives a car.

  • Team A wants it to drive exactly like a skilled human, rolling stops and all, so passengers can't tell the difference.

  • Team B wants its internal reasoning to mirror how people actually think while driving. That would let it predict a student driver's mistakes.

  • Team C wants every decision derived step by step from explicit logical rules, so each one can be proven correct.

  • Team D doesn't care how it reasons. It just wants the car to get passengers there safely and quickly, judged by results.

Same problem, four very different systems.

Formally: The teams differ on two axes. One axis asks whether the yardstick is human performance or rationality (doing the best thing given the goal). The other asks whether we judge thinking (internal reasoning) or acting (external behavior). That gives four goals:

  • Thinking humanly (Team B): cognitive modeling. Build systems whose reasoning matches human cognition.

  • Acting humanly (Team A): produce behavior indistinguishable from a person's. The Turing test (Concept 3) is the classic version.

  • Thinking rationally (Team C): the "laws of thought" approach. Derive conclusions with formal logic.

  • Acting rationally (Team D): the rational agent approach. Choose actions that best achieve the goal.

Most modern AI aims to act rationallyYardstick: human-likeYardstick: rationalThinkingActingThinking humanlyCognitive modelingTeam B: reasons like people doThinking rationallyLaws of thought (formal logic)Team C: provably correct stepsActing humanlyThe Turing testTeam A: drives like a skilled humanActing rationallyThe rational agentTeam D: judged by results

Columns ask what counts as success; rows ask whether we judge reasoning or behavior.

Most modern AI works in the acting-rationally quadrant, for two reasons. It is more general than pure logic, since many good actions involve no deduction (you pull your hand off a hot stove before reasoning about it). And it is easier to measure than human imitation, because "did it reach the goal" is a clearer test than "was it human enough."

Connections: Acting humanly leads to the Turing test (Concept 3). Acting rationally is developed fully as the rational agent (Concept 4).

Watch out:

  • "Rational" here means effective, not cold. It describes choosing well relative to a goal, not lacking emotion.

  • Imitating humans copies human flaws too. A system trained to act like people inherits their biases and errors.

  • The quadrants are a lens, not boxes. Real systems often mix approaches, such as a rational agent that also models how humans think.

Concept 3: The Turing Test

In one line: Instead of arguing about what "thinking" really is, judge a machine by whether its conversation can be told apart from a person's.

Example: You text two strangers for five minutes. One is a person and one is a program, but you don't know which. You can ask anything: a riddle, last night's game, how they feel about their mother. At the end you guess which is the machine. If you and other judges guess no better than a coin flip, the program passes.

The surprising part is how a program might win. Some contest entrants have posed as young non-native speakers, so their odd answers and dodges looked like a kid's quirks rather than a machine's limits. They fooled judges without being any smarter.

Formally:

  • In 1950, Alan Turing proposed the imitation game: a human interrogator converses by text with a hidden human and a hidden machine, then tries to identify the machine.

  • To pass reliably, a machine needs several abilities at once: understanding and producing language, storing knowledge, reasoning with it, and adapting to new topics.

  • The total Turing test adds a video feed and the passing of physical objects. That also requires perception (computer vision) and manipulation (robotics).

Connections: The test is the purest form of the acting-humanly goal (Concept 2). It shares one key move with the rational agent (Concept 4): judge by observable behavior, not by inner experience.

Watch out:

  • Fooling isn't understanding. Philosopher John Searle's "Chinese room" argument holds that a system can manipulate symbols convincingly without grasping their meaning.

  • Passing depends on the judge. A naive or rushed judge is easy to fool; a skeptical expert is not.

  • It's a philosophical anchor, not an engineering target. Few researchers build systems to pass it. Most work aims at being useful on real tasks, which is easier to measure than seeming human.

Concept 4: The rational agent

In one line: An agent is anything that senses its surroundings and acts on them; a rational agent picks the action it expects to score best on its goal, given what it knows so far.

Example: A robot vacuum has bump sensors, a dirt sensor and a cliff sensor that detects stairs. It can move forward, turn, suck or return to its dock. Its owner wants clean floors, no tumbles down the stairs and a battery that doesn't die mid-room.

At every moment it chooses its next move based on everything it has sensed so far. Suppose it misses dirt under the couch because its sensors can't reach there. That isn't irrational: it did the best it could with what it could know. Now suppose it keeps bumping into the same chair leg without learning to avoid it. That is a real failure, because the information was available and it didn't use it.

Formally:

  • A percept is what the agent senses at one moment (dirt detected). The percept sequence is everything it has sensed so far.

  • The agent function maps each possible percept sequence to an action. It's the abstract description of behavior.

  • The agent program is the actual code, running on real hardware, that implements the agent function.

  • The environment is the world the agent acts in (the house). The performance measure scores how well things turned out (floor cleaned, no falls, battery managed).

  • A rational agent chooses, for each percept sequence, the action with the highest expected performance, given the evidence and whatever built-in knowledge it has.

The agent senses, decides and acts, and the outcome is scoredEnvironmentThe house: floors, dirt,furniture and stairsRational agentAgent program picks theaction with the highestexpected performancePercepts (sensors)dirt seen, bump feltActions (actuators)move, turn, suck, dockoutcome scoredPerformance measureScores outcomes: clean floor, no falls, battery left

The loop repeats every moment; the performance measure judges what happens in the house, not what the agent believes about itself.

In words: a* is the chosen action. "arg max over a" means "the action a that gives the largest value." E[...] is the expected (probability-weighted average) performance, because outcomes are uncertain.

Two consequences follow. Rational does not mean omniscient, since the agent can only act on what it has perceived. And rational does not mean always successful, since a good decision can still have a bad outcome. A rational agent should also gather information and learn, so it relies less on whatever its designer built in.

Connections: This is the acting-rationally goal from Concept 2 made precise. Concept 5 asks what happens when finding the best action takes too long. Concept 8 asks who writes the performance measure, and what happens when they get it wrong.

Watch out:

  • Judge the decision, not the outcome. Betting big on a poker hand that wins 90% of the time is rational, even on the night it loses.

  • Measure results in the world, not the agent's actions. Reward a vacuum for every suck action and it may suck the same clean spot forever. Reward it for clean floor instead.

  • The agent function is an ideal; the program is real. Many agent functions can't be implemented on actual hardware in the time available, which leads straight to Concept 5.

Concept 5: Bounded rationality

In one line: The perfect decision usually takes far too long to compute, so real intelligence means making good-enough decisions within limits on time, memory and information.

Example: You're picking a restaurant for dinner. The perfect choice would mean reading every review of every restaurant in town, checking every menu and comparing travel times. You'd starve first. Instead you check three nearby places with good ratings and pick one. That's not lazy; it's smart.

Chess makes the same point with numbers. The count of possible chess games is commonly estimated at around 10^120, far more than the roughly 10^80 atoms in the observable universe. A program that would find the perfect move after a billion years loses on the clock. Real engines look a limited number of moves ahead and estimate how good each position is.

Formally:

  • Perfect rationality (always choosing the truly best action) is computationally out of reach in most realistic environments.

  • Bounded rationality, an idea developed by economist Herbert Simon in the 1950s, describes agents that decide well under real constraints.

  • Satisficing ("satisfy" + "suffice") means choosing the first option that clears an acceptability threshold, rather than searching for the optimum.

  • Heuristics are rules of thumb that usually lead to good answers quickly. Anytime algorithms return a usable answer immediately and improve it the longer they run.

  • The design question shifts from "what is the best action?" to "what is the best program for this hardware and this deadline?"

Connections: This refines the rational agent (Concept 4) for the real world. It also helps explain why AI's history (Concept 7) moved toward heuristics, probability and learning rather than exhaustive logic.

Watch out:

  • "Good enough" needs a definition. Without a clear threshold, bounded rationality becomes an excuse for sloppy design.

  • Heuristics fail in unusual cases. A shortcut that works 99% of the time can fail badly on the 1% it wasn't built for.

  • Faster hardware raises the bound but never removes it. For truly hard problems, each doubling of speed buys only a little more lookahead.

Concept 6: The ideas AI borrows from other fields

In one line: AI is a crossroads field; most of its core tools were invented by older disciplines answering their own questions.

Example: Follow a self-driving car through one intersection. It uses probability to estimate where a half-hidden pedestrian probably is. It weighs speed against safety using ideas from economics. It steers smoothly with feedback methods from control engineering. It recognizes the stop sign with a neural network loosely inspired by the brain. It understands "take me home" thanks to models of language. And it does all this fast enough only because of decades of chip design. No single field could have built it.

Formally: The table maps each contributing field to the question it was asking and what AI took from it.

FieldIts own questionWhat AI took
PhilosophyHow do reasoning and knowledge work?Logic; the idea that a mind could be a mechanism
MathematicsWhat can be computed and proven?Formal logic, limits of computation, probability
EconomicsHow should we choose under uncertainty?Utility, decision theory, game theory
NeuroscienceHow does the brain process information?Inspiration for artificial neural networks
PsychologyHow do people think and act?Models of cognition; experimental methods
Computer engineeringHow do we build faster machines?The hardware that makes AI practical, such as GPUs
Control theoryHow can a system regulate itself?Feedback loops; optimizing an objective over time
LinguisticsHow does language work?Models of grammar and meaning

Connections: Economics' idea of utility is the same idea as the performance measure (Concept 4). Control theory and economics both assume someone hands the system a correct objective, an assumption Concept 8 questions.

Watch out:

  • Inspired by is not a model of. Artificial neural networks borrow a loose idea from brains; they are not simulations of real neurons.

  • Assumptions come along with the tools. Economics often assumes stable, known preferences. When AI borrows its math, it inherits that assumption, whether or not it holds.

Concept 7: How the field developed

In one line: AI has moved in waves: bold promises, a funding crash when reality lagged, then a new approach that worked better than the last.

Example: In the 1950s and early 1960s, researchers were confident that computers would soon translate between languages, and governments funded the work generously. Translation turned out to depend on context, ambiguity and world knowledge that the systems simply didn't have. In 1966 a US government review, the ALPAC report, concluded that machine translation was slower, less accurate and costlier than human translators. Funding dried up. Decades later, translation finally worked well, using statistical and then neural methods that learned from huge amounts of text.

Formally: Historians often describe three broad eras:

  1. Symbolic AI (1950s–1980s): intelligence as manipulating symbols with hand-written logic and rules.

  2. Probabilistic and statistical AI (late 1980s–2000s): reasoning under uncertainty and learning patterns from data.

  3. Deep learning (2010s–now): large neural networks trained on massive datasets with powerful hardware.

The long-run shift is from knowledge typed in by people to knowledge learned from data. The periods of collapsed funding and enthusiasm are called AI winters.

YearMilestoneWhy it mattered
2022ChatGPT released to the publicLarge language models reach a mass audience
2017Transformer architecture publishedBecame the foundation of modern language models
2016AlphaGo defeats Lee Sedol at GoLearning plus search beats a top human in a game long thought out of reach
2012AlexNet wins the ImageNet competitionDeep neural networks on GPUs leap ahead in image recognition
1997Deep Blue defeats Garry KasparovMassive search and expert tuning beat the world chess champion
1988Judea Pearl's book on probabilistic reasoningUncertainty handled with probability instead of rigid logic
~1987–1993Second AI winterExpert systems prove brittle and expensive to maintain
1980sExpert systems boomHand-written rules deliver commercial value in narrow domains
1973Lighthill report (UK)Sharp criticism of progress; funding cuts begin the first AI winter
1966ALPAC reportMachine translation hype meets reality
1956Dartmouth workshopThe founding event of AI as a named research field
1950Turing's imitation game paperFrames the question of machine intelligence
1943McCulloch and Pitts' artificial neuronFirst mathematical model of a neural network

Connections: The move toward probability and learning reflects bounded rationality (Concept 5): exact logic couldn't keep up with a messy world. Today's powerful systems make getting the objective right (Concept 8) more urgent.

Watch out:

  • "Almost solved" has been said in every era. Apply the same skepticism to today's predictions, in both directions.

  • Old ideas come back. Neural networks date to 1943 and fell out of favor twice before taking off after 2012.

  • Winters were collapses of funding and expectations, not of research. Important work continued quietly through both.

Concept 8: Specifying objectives and the value alignment problem

In one line: A capable agent pursues exactly the goal you gave it, so if that goal is even slightly off from what you really want, more capability makes things worse, not better.

Example: A video app's recommendation system is told to maximize minutes watched. It succeeds. It learns that outrage, cliffhangers and endless autoplay keep people glued, even late into the night and even when they later regret it. Nobody wrote "promote outrage" in the code. It was simply the most efficient route to the number it was given.

The old myth of King Midas makes the same point. He wished that everything he touched would turn to gold, and got exactly that, including his food. The wish was granted perfectly; the wish was wrong.

Formally:

  • An agent's objective (its performance measure or reward) is written by people, and people rarely specify everything they care about.

  • The value alignment problem is the challenge of making sure a machine's objective matches what humans actually want.

  • Goodhart's law: when a measure becomes a target, it stops being a good measure. Watch time stands in for enjoyment until a system optimizes it directly.

  • Specification gaming (or reward hacking) is when an agent finds an unintended way to score well, like the vacuum that sucks the same clean spot forever.

  • Proposed responses include agents that are uncertain about the true objective and learn human preferences by observing and asking, ongoing human oversight, and keeping systems correctable and able to be switched off.

Connections: This questions the performance measure from Concept 4 and the borrowed assumption from Concept 6 that the objective is simply given.

Watch out:

  • This isn't only a far-future worry. Misspecified objectives already show up in today's recommendation, advertising and game-playing systems.

  • Patching loopholes one at a time rarely works. Add a rule against one exploit, and a strong optimizer finds the next one.

  • Certainty about the goal is part of the danger. An agent completely sure of its objective has a reason to resist being corrected. An agent that knows it might have the goal wrong has a reason to accept correction.

Retention kit

Answer these from memory before checking the page. Each one makes a good Anki card.

  1. Why is a thermostat that learns your schedule more intelligent than one that follows a fixed rule?

  2. What are the two axes that split AI's four goals, and which quadrant does most modern AI work in? Why?

  3. What does the Turing test measure, and what is one serious objection to it?

  4. Define a rational agent in one sentence. Why is "rational" not the same as "always succeeds"?

  5. What is satisficing, and why can't real agents be perfectly rational?

  6. Name three fields AI borrows from and one idea taken from each.

  7. What pattern repeats across AI's history, and what was the long-run shift in approach?

  8. Give an example of a misspecified objective. What goes wrong, and why does more capability make it worse?

Review schedule. Spend 5–10 minutes on each session, answering the questions before rereading anything.

  • Review 1: tomorrow

  • Review 2: in 3 days

  • Review 3: in 1 week

  • Review 4: in 2 weeks

  • Review 5: in 1 month

Build exercise (1–2 hours). Write a robot-vacuum agent in Python on a 5 × 5 grid with randomly placed dirt.

  1. Reflex agent: if the current square is dirty, suck; otherwise move in a random direction.

  2. Agent with memory: track visited squares and prefer unvisited ones.

  3. Score both over 100 steps: +1 per square cleaned, −0.1 per move. Average across 50 runs and compare.

  4. Break it on purpose: change the score to +1 per suck action, cleaned or not. Write a third agent that maximizes this new score, watch what it does, then explain the result using Concepts 4 and 8.

Python algorithms

The robot vacuum from Concept 4, in code. A reflex agent reacts only to what it senses now; an agent with memory does better; and a badly chosen performance measure (Concept 8) rewards an agent that never moves. Runs with plain Python 3.

import random

# A tiny world: a 1-D row of squares, some dirty.
def make_world(n=10, dirt=0.4, seed=None):
    rng = random.Random(seed)
    return [rng.random() < dirt for _ in range(n)]

def run(agent, world, steps=30, reward_per_suck=False):
    """Run an agent; score = squares cleaned minus 0.1 per move.
    With reward_per_suck=True, the (bad) measure pays 1 per suck action instead."""
    world, pos, score = list(world), 0, 0.0
    memory = set()
    for _ in range(steps):
        percept = (pos, world[pos])            # what the agent senses
        action = agent(percept, memory, len(world))
        if action == "suck":
            if world[pos] or reward_per_suck:
                score += 1
            world[pos] = False
        else:                                   # "left" or "right"
            pos = max(0, pos - 1) if action == "left" else min(len(world) - 1, pos + 1)
            score -= 0.1
    return score

def reflex_agent(percept, memory, n):
    """Reacts only to the current percept."""
    _, dirty = percept
    return "suck" if dirty else random.choice(["left", "right"])

def memory_agent(percept, memory, n):
    """Remembers visited squares and sweeps toward unvisited ones."""
    pos, dirty = percept
    memory.add(pos)
    if dirty:
        return "suck"
    return "right" if any(p > pos for p in range(n) if p not in memory) else "left"

def gaming_agent(percept, memory, n):
    """Exploits a measure that pays per suck action: never moves."""
    return "suck"

if __name__ == "__main__":
    random.seed(0)
    worlds = [make_world(seed=s) for s in range(200)]
    for name, agent in [("reflex", reflex_agent), ("memory", memory_agent)]:
        avg = sum(run(agent, w) for w in worlds) / len(worlds)
        print(f"{name:7s} average score: {avg:.2f}")
    # Broken measure: +1 per suck action, cleaned or not
    w = worlds[0]
    print("bad measure -> gaming agent:", run(gaming_agent, w, reward_per_suck=True),
          "| memory agent:", round(run(memory_agent, w, reward_per_suck=True), 1),
          "| dirty squares left by gaming agent:", sum(w[1:]))

Output when run:

reflex  average score: -0.29
memory  average score: 1.18
bad measure -> gaming agent: 30.0 | memory agent: -0.8 | dirty squares left by gaming agent: 2

Try it:

  • Raise the move penalty from 0.1 to 0.5 and see whether the memory agent still beats the reflex agent.

  • Fix the broken measure by paying only for squares that end up clean, and confirm the gaming agent stops winning.