Introduction to Artificial Intelligence

What artificial intelligence means and where the field came from. Turing's imitation game and McCarthy's definition, the Dartmouth proposal of 1955, the four ways Russell and Norvig sort definitions, the symbolic and statistical approaches and how learning displaced hand-written rules, the history as a sequence of promises, disappointments and breakthroughs from 1950 to the transformer, what narrow and general mean, and a map of the unit's articles and the library's related collections. Worked problems on the number of games a test of Turing's forecast needs and on the leaves alpha-beta search examines.

Artificial intelligence is defined by its aim, not its method: programs that do what, done by a person, is taken as intelligence. This article covers Turing's 1950 imitation game, the 1955 Dartmouth proposal, the main definitions, and the two strategies of hand-written rules and learning from data. Its history, from early optimism through two AI winters to deep learning and transformers, shows learning displacing rules as data and computation grew. Two worked problems put numbers on it. Testing Turing's 70% bar against a true identification rate of 80% needs 119 games (5% level, 80% power). Best-first alpha-beta search examines $b^{\lceil d/2\rceil} + b^{\lfloor d/2\rfloor} - 1$ leaves, the proven minimum: 1,619,999 rather than $30^8$ at 30 moves and depth 8. That roughly doubles the reachable depth but leaves the growth exponential.

Three programs, written decades apart, have all been called artificial intelligence. The first is a checkers player of the late 1950s that improves its play with experience (Samuel, 1959). The second is a spam filter that counts how often words appear in mail people have marked as junk and in mail they have kept, and scores each new message with naive Bayes. The third is a chat assistant that writes a passable sonnet, a working Python function and a summary of a legal contract, all from the same trained network. The three share almost nothing in method. What they share is the aim: each does something that, when a person does it, is taken as a sign of intelligence.

That aim is the most stable thing about the field, and it is why the name has covered so many techniques. This article sets out what the name has meant to the people who coined and shaped it, the two broad strategies for pursuing it, how the field's history alternated between confidence and disappointment, and what can be said carefully about the systems of today. The rest of the unit covers machine learning, the two large application areas of vision and language, generative models and how they are prompted, and the risks that come with deploying all of them.

Can machines think?

Alan Turing's 1950 paper opens: "I propose to consider the question, 'Can machines think?'" (Turing, 1950, §1). He then declines to answer it as posed. Defining "machine" and "think" by how the words are commonly used would, he argues, reduce the question to an opinion poll, so he replaces it with a game. In the imitation game, an interrogator exchanges typed questions and answers with two hidden players and must decide which is which. Turing's question becomes whether the interrogator will "decide wrongly as often" when a machine takes one of the parts as when the game is played between a man and a woman (§1). He considered the original question "too meaningless to deserve discussion" (§6), and offered a forecast in its place: that in about fifty years computers with a storage capacity of about $10^9$ would play the game so well that an average interrogator would "not have more than 70 per cent. chance of making the right identification after five minutes of questioning" (§6).

The game, now usually called the Turing test, moves attention from what a machine is to what it does, which is the stance most of the field has taken since. It also has well-known limits. John McCarthy called it "a one-sided test": a machine that passes should be considered intelligent, but a machine could be intelligent without knowing enough about people to imitate one, and "some people are easily led into believing that a rather dumb program is intelligent" (McCarthy, 2007, §1). The second point has become more pressing as programs that produce fluent text have become common; the risks article returns to it.

Most of Turing's paper is a reply to objections, and its final section, "Learning Machines", proposes a different route to intelligent behavior from programming it directly: "Instead of trying to produce a programme to simulate the adult mind, why not rather try to produce one which simulates the child's?" (§7). He compares the trial-and-error search for a good child machine with evolution, identifying the structure of the machine with hereditary material, its changes with mutation, and natural selection with the judgment of the experimenter (§7). That analogy is the starting point of the Academics section's History of Evolutionary Computation; the idea of a machine that is educated rather than programmed is the starting point of machine learning.

The name and the definitions

The name comes from a funding proposal. In August 1955 John McCarthy, Marvin Minsky, Nathaniel Rochester and Claude Shannon proposed "a 2 month, 10 man study of artificial intelligence" at Dartmouth College for the summer of 1956 (McCarthy, Minsky, Rochester and Shannon, 1955, p. 2). The proposal states its working assumption directly:

The study is to proceed on the basis of the conjecture that every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it.

It then lists the problems the group would attack: how to make machines "use language, form abstractions and concepts, solve kinds of problems now reserved for humans, and improve themselves", along with neuron nets, the size of a calculation, and the role of randomness in creative thinking (p. 2). Most of those headings are still research areas.

Half a century later McCarthy gave a short definition: artificial intelligence "is the science and engineering of making intelligent machines, especially intelligent computer programs", and intelligence "is the computational part of the ability to achieve goals in the world" (McCarthy, 2007, §1). He added two qualifications that are easy to lose. The field is related to understanding human intelligence, "but AI does not have to confine itself to methods that are biologically observable"; and intelligence is not a single thing, so the question "is this machine intelligent or not?" has no yes-or-no answer, since a program can have some of the mechanisms and lack others (§1).

Russell and Norvig's textbook sorts the many published definitions along two lines: whether they concern thinking or acting, and whether they measure success against human performance or against an ideal standard of rationality. The four combinations are thinking humanly (modeling human cognition), acting humanly (the Turing test approach), thinking rationally (the "laws of thought" tradition of logic), and acting rationally (building agents that do the best they can given what they know). The textbook itself adopts the last, the rational-agent view (Russell and Norvig, 2020, §1.1; cited by attribution). The four are useful less as rival definitions than as a reminder that "artificial intelligence" can name a scientific question about minds or an engineering goal about behavior, and that a system can succeed at one without the other.

A common short definition, that AI is the use of algorithms and models "to mimic human thought", fits the first of the four but not the others. McCarthy's qualification applies: a chess program that searches millions of positions per move, or a classifier that weighs ten thousand word counts, achieves goals by means no person uses.

The parts of the field

Russell and Norvig's discussion of the Turing test lists the capabilities a machine would need to pass it: natural language processing to communicate, knowledge representation to store what it knows or hears, automated reasoning to answer questions and draw conclusions, and machine learning to adapt and detect patterns; a version of the test that includes physical interaction adds computer vision and robotics (Russell and Norvig, 2020, §1.1.1; cited by attribution). Those six headings are still a fair map of the field's subdivisions:

Area The question it asks Where this site covers it
Machine learning How can a program improve its performance from data? Machine Learning and most of this collection
Computer vision How can a program extract information from images and video? Computer Vision
Natural language processing How can a program analyze and generate language? Natural Language Processing, the Academics section's Text Processing and Indexing
Knowledge representation How should facts and relationships be stored so that a program can use them? the Academics section's Bayesian Inference Networks (a probabilistic example)
Automated reasoning and search How can a program draw conclusions or find a solution among many possibilities? the Academics section's Local Search and Evolutionary Computing
Robotics How can a program sense and act in the physical world? the Academics section's Evolutionary Robotics

The boundaries blur. Robots rely on vision and planning, language systems are built by machine learning, and a modern language model is used for reasoning and, through tools, for acting. Deep learning cuts across all of them. It refers to neural networks with many layers of learned transformations, the subject of the collection's neural network articles; it is a family of machine learning methods, not a separate area, and after 2010 it produced, in the words of James et al. (2021, introduction to Ch. 10), "a string of success stories" in image and video classification and in speech and text modeling.

Two strategies: rules and learning

From the start there were two ways to pursue the Dartmouth conjecture. One is to write the knowledge and the reasoning down. The proposal's second heading speculates that "a large part of human thought consists of manipulating words according to rules of reasoning and rules of conjecture" (McCarthy et al., 1955, p. 2), and much early work took that path: programs that proved theorems in logic, searched game trees, planned sequences of actions, and later, in the expert systems of the 1970s and 1980s, encoded a specialist's knowledge as hundreds or thousands of if-then rules. This tradition is called symbolic AI, because its programs manipulate explicit symbols for objects, properties and relations. Its strengths are transparency and precision: every conclusion can be traced to the rules that produced it, and a rule can be corrected by editing it.

The other way is to let the program find the regularities itself, from examples. The same proposal's third heading asks how "a set of (hypothetical) neurons" can be arranged "so as to form concepts" (p. 2), and Turing's child machine is the same idea in different words. This tradition, which includes neural networks and statistical learning, is often called statistical or connectionist AI. Its strength is that it does not need the knowledge to be articulated: nobody can write down rules that distinguish every handwritten 4 from every 9, but a network can learn to do it from labeled examples.

For most of the field's history the two coexisted, and the balance shifted toward learning as data and computation grew. LeCun, Bottou, Bengio and Haffner put the case for the shift plainly in their 1998 paper on reading handwritten checks: "better pattern recognition systems can be built by relying more on automatic learning, and less on hand-designed heuristics" (LeCun et al., 1998, §I). The trade-off runs in both directions. A learned model generalizes from data it was given, inherits that data's gaps and biases, and is much harder to inspect than a rule set; the library's Anthropic Research collection holds dozens of reading notes on research into what large learned models actually compute, and why it is difficult to find out. Many working systems combine the two, for example a learned language model that calls a calculator, a search engine or a database query written in SQL.

A history of promises and corrections

The field's history reads well as a sequence of problems that looked close to solved, the discovery that they were not, and the new approaches those discoveries prompted.

Early optimism (1950s and 1960s). After the Second World War several people independently began work on intelligent machines; McCarthy (2007, §1) suggests Turing may have been the first, in a lecture of 1947, and notes that by the late 1950s most researchers worked by programming computers rather than building special machines. The first programs played games, proved theorems and manipulated symbols, and the early neural networks, Rosenblatt's perceptron among them, learned simple classifications. The introduction to neural networks tells the neural side of the story, including the perceptron's limits.

The first reckoning (1966 to the mid-1970s). Progress on hard problems was slower than forecast. Machine translation is the clearest case: a review by the US National Academy of Sciences in 1966 found that very large sums had been spent with little useful result (as summarized by Lighthill, 1973, §3). In Britain the Science Research Council commissioned the mathematician James Lighthill to survey the field. His report, dated July 1972 and published in 1973, concluded: "In no part of the field have the discoveries made so far produced the major impact that was then promised." It singled out one general cause: "failure to recognise the implications of the combinatorial explosion", the explosive growth in the number of possibilities a program must consider as a problem grows (Lighthill, 1973, §3). Reduced funding followed, and the period is now often called the first AI winter (Russell and Norvig, 2020, §1.3; cited by attribution).

Expert systems and a second winter (1980s). Knowledge-based systems that encoded a narrow domain's rules found commercial use in the early 1980s, and a boom followed. The systems proved expensive to build and maintain and brittle outside their domains, and the collapse of the market in the late 1980s is often called a second winter (Russell and Norvig, 2020, §1.3; cited by attribution). The history of information retrieval on the Academics section shows a parallel course in a neighboring field, where hand-built indexing and exact-match Boolean search gave way to statistical ranking.

Statistical learning (1990s and 2000s). Learning from data became the main approach to many problems. LeCun et al. (1998) report a convolutional network that reads handwritten digits and was deployed commercially to read checks, and methods such as support vector machines, boosting and random forests, all covered in this collection, became standard tools. James, Witten, Hastie and Tibshirani (2021, introduction to Ch. 10) describe how neural networks "fell somewhat from favor" as these methods arrived: the new methods were more automatic, and on many problems they outperformed poorly trained networks, which remained the position through the first decade of the 2000s.

Deep learning (2010s). Larger labeled datasets and graphics processors made it practical to train much larger networks. In 2012 a convolutional network trained on the 1.2 million labeled images of the ImageNet challenge, entered in a variant form, won its classification task with a top-5 error rate of 15.3%, against 26.2% for the second-best entry (Krizhevsky, Sutskever and Hinton, 2012, abstract). The computer vision article explains what that network did and what the benchmark measured. Speech and text modeling followed the same path (James et al., 2021, introduction to Ch. 10).

Transformers and language models (2017 onward). The transformer architecture, introduced for machine translation, replaced recurrence with attention (Vaswani et al., 2017), and language models built from it and trained on very large text collections turned out to perform many tasks from instructions or a few examples written into their input (Brown et al., 2020). The language article and the generative AI article cover this period, and the library's Language Models from Scratch builds a small model of the same kind step by step.

The pattern across these episodes is not simply that optimism was wrong. Problems that resisted the methods of one period (reading handwriting, recognizing objects, translating) were later solved to a useful standard by different methods, usually ones that relied more on data and computation and less on hand-written knowledge.

Narrow and general

A system that does one task, such as reading postal codes or recommending films, is often called narrow AI; a hypothetical system that could learn and perform the full range of intellectual tasks a person can is called general AI, or artificial general intelligence. The distinction is useful but blurrier than the two words suggest. A single large language model now attempts translation, programming, summarization and question answering from the same weights, which is far broader than a postal-code reader, yet its competence across those tasks is uneven and difficult to predict.

McCarthy's comparison of program and human abilities, written in 2007, already described that unevenness: "Some abilities that children normally don't develop till they are teenagers may be in, and some abilities possessed by two year olds are still out" (McCarthy, 2007, §1). A 2022 Anthropic paper describes the same tension for large generative models, which combine predictable improvement in overall loss as they grow with specific capabilities that appear unpredictably; the library's note on Predictability and Surprise in Large Generative Models summarizes the argument and its evidence. For a reader of this collection, two cautious statements are safe. Performance on a benchmark is evidence about that benchmark, and the methods of honest evaluation apply to AI systems as much as to a regression model. And claims that a system "understands" or "reasons" are claims about mechanisms, which the library's Anthropic Research collection, especially its interpretability notes such as Tracing the thoughts of a large language model, treats as open research questions rather than settled facts.

Where data science fits

Almost every method in this collection is part of artificial intelligence in the broad sense. Logistic regression is the single neuron of a neural network; nearest neighbors, decision trees and ensembles are standard machine learning methods; clustering and dimension reduction are how a learning system finds structure without labels. The difference between a data science project and an AI product is often one of deployment: the model is placed inside software that acts on its predictions, at scale and often without a person checking each decision. That shift raises the stakes of everything the collection says about evaluation, and it is why this unit includes an article on risks and ethics.

Worked problems

These problems were written for this article; each puts a number on a claim of its history. The script tools/experiments/data-science/introduction-to-artificial-intelligence.py computes every number in them and asserts it.

Problem 1 (how many games would test Turing's forecast). Turing's bar is an interrogator who is right no more than 70% of the time after five minutes. How many games would show, at the 5% level with 80% power, that a machine fails the bar when interrogators in fact identify it 80% of the time? And what does one interrogator's ten games show?

Solution. Treat each game as an independent trial in which the interrogator identifies the machine correctly with probability $p$, and test $H_0: p = 0.7$, the machine exactly at Turing's bar, against $p > 0.7$. With $n$ games the test rejects when the number of correct identifications $X$ reaches a critical count $c$, the smallest for which $P(X \ge c \mid p = 0.7) \le 0.05$; its power is $P(X \ge c \mid p = 0.8)$. Searching $n$ upward with exact binomial probabilities, the first $n$ with power at least 0.8 is 119, rejecting at 92 or more correct (size 0.0478, power 0.8036). The normal approximation of Tests and Sample Size for a Proportion,

$$n = \left(\frac{z_{0.95}\sqrt{0.7 \times 0.3} + z_{0.8}\sqrt{0.8 \times 0.2}}{0.8 - 0.7}\right)^2 = 118.9,$$

agrees. If the true rate is 0.75, close to the bar, the exact answer is 501 games (reject at 368 or more). In the other direction, an interrogator who plays 10 games at a true rate of exactly 70% scores 4 or more correct with probability 0.989 (the 2.5% and 97.5% points of the distribution are 4 and 10), so a handful of games cannot place a machine on either side of the bar. Turing's question, read strictly, compares two rates, the machine's game against the game between a man and a woman, and a comparison of two rates estimated from separate games needs about twice as many games in each, since the variance of a difference of independent estimates is the sum of their variances (Comparing Two Proportions). The forecast is a precise statistical claim, and testing it is a matter of sample size.

Problem 2 (the combinatorial explosion, and how much pruning buys). Lighthill named the combinatorial explosion as the general cause of disappointment. A full minimax search of a game tree with $b$ moves per position to depth $d$ examines $b^d$ positions at its leaves. Alpha-beta pruning, which skips moves that cannot change the result, examines $b^{\lceil d/2\rceil} + b^{\lfloor d/2\rfloor} - 1$ leaves when every position's moves are searched best first (Knuth and Moore, 1975). Show that no correct search can examine fewer leaves than that, check that best-first alpha-beta examines exactly that many, and compare it with $b^d$ for 30 moves per position and depth 8.

Solution. The lower bound is proved here; that best-first alpha-beta attains it is Knuth and Moore's theorem, cited, and the script confirms it. A MAX strategy keeps one move at each of MAX's positions and every move at each of MIN's; a MIN strategy keeps one move at each of MIN's positions and every move at each of MAX's. The root's value is at least $v$ exactly when some MAX strategy has all its leaves at least $v$, since MAX can then follow it whatever MIN does, and at most $v$ exactly when some MIN strategy has all its leaves at most $v$. Now take any search that has determined the root's value $v$ from the leaves it examined. Suppose no MAX strategy had all its leaves examined and at least $v$. Then lowering every unexamined leaf far below $v$ would leave every MAX strategy with a leaf below $v$, so the root's value would fall below $v$, while every examined leaf stayed the same; the search could not have known $v$. So it examined all the leaves of some MAX strategy, and by the same argument with the roles exchanged (raising the unexamined leaves), all the leaves of some MIN strategy. A MAX strategy and a MIN strategy share exactly one leaf: from the root, follow the MAX strategy's choice at MAX's positions, which the MIN strategy contains because it keeps every MAX move, and the MIN strategy's choice at MIN's positions, which the MAX strategy contains; this path reaches a leaf in both, and any leaf in both is reached by a path that must make those same choices, so there is only one. MAX moves at the even levels $0, 2, 4, \ldots$ of the $d$ levels above the leaves and MIN at the odd ones, so MAX has $\lceil d/2 \rceil$ levels and MIN $\lfloor d/2 \rfloor$. A MAX strategy branches $b$ ways at each MIN level and once at each MAX level, so it has $b^{\lfloor d/2\rfloor}$ leaves; a MIN strategy has $b^{\lceil d/2\rceil}$. Together they hold $b^{\lceil d/2\rceil} + b^{\lfloor d/2\rfloor} - 1$ distinct leaves, and no correct search examines fewer. With best-first ordering, alpha-beta's first line down the tree is the best line and each later move is cut off after the one reply that refutes it; Knuth and Moore (1975) prove that it then examines exactly this minimum, which is not proved here. The script builds 30 random trees for each of five sizes, orders the moves best first and counts the leaves alpha-beta evaluates. The counts match the formula in every tree:

Moves $b$, depth $d$ Full search $b^d$ Formula Alpha-beta, best first Alpha-beta, random order (median of 30)
2, 3 8 5 5 6.5
3, 4 81 17 17 44
4, 5 1,024 79 79 364
5, 4 625 49 49 231.5
6, 4 1,296 71 71 405.5

For 30 moves to depth 8, a full search examines $30^8 = 656{,}100{,}000{,}000$ leaves and perfectly ordered alpha-beta $2 \times 30^4 - 1 = 1{,}619{,}999$, a ratio of about 405,000. Pruning roughly doubles the depth reachable with a given effort, since $b^{d/2}$ grows like the full search of half the depth; it does not remove the exponential growth that Lighthill described. In random order the saving is much smaller, which is why practical game programs spend effort on ordering their moves.

Open questions

  • How often do interrogators now identify a language model in five minutes? Problem 1 gives the number of games a test of Turing's 70% needs. A preregistered study with that many five-minute games, a man-and-woman control game as Turing specified, and interrogators who know the task, would settle the forecast for a named model at a stated date.
  • Where would classical AI live on this site? Search, planning, logic and constraint satisfaction appear here only through the evolutionary course's Local Search and Problem 2. An article that implements alpha-beta with move ordering and iterative deepening on a small game such as Connect Four, with node counts measured against the bounds above, would be a natural start.
  • Can "general" be measured? The narrow-general distinction is described in words. Scoring several models on a fixed suite of tasks, normalizing each task by a human baseline, and reporting both the mean and the spread across tasks, would turn "uneven competence" into a number that can be compared across models and dates.

The articles in this unit

The articles below make up the unit Artificial Intelligence in Data Science, whose page says what each establishes and where the rest of the site goes deeper.

  1. Machine Learning: the three settings of supervised, unsupervised and reinforcement learning, what generalization means, and a reinforcement learning experiment on the 10-armed bandit.
  2. Computer Vision: images as arrays, convolution worked by hand on a handwritten digit, convolutional networks from LeNet to AlexNet, ImageNet, and an experiment that shifts test digits by one pixel.
  3. Natural Language Processing: tokens, bags of words, word vectors computed from the Brown corpus, attention and transformers, and how language systems are evaluated.
  4. Risks and Ethics in AI: bias and fairness worked on census income data, hallucination, privacy, misuse, environmental and labor costs, and regulation.
  5. Generative AI: generative and discriminative models, a small generative model of digits, autoencoders, adversarial networks, diffusion, autoregressive language models and scaling laws.
  6. Prompt Engineering: zero-shot and few-shot prompting, chain of thought, system prompts, structured outputs, sampling temperature, and how to evaluate a prompt.

References

  • Brown, T. B., Mann, B., Ryder, N., et al. (2020). Language models are few-shot learners. In Advances in Neural Information Processing Systems 33. arXiv:2005.14165. record · 4 pages
  • James, G., Witten, D., Hastie, T., and Tibshirani, R. (2021). An Introduction to Statistical Learning with Applications in R (2nd ed.). Springer. Ch. 10. record · 39 pages
  • Knuth, D. E., and Moore, R. W. (1975). An analysis of alpha-beta pruning. Artificial Intelligence, 6(4), 293–326. https://doi.org/10.1016/0004-3702(75)90019-3. Cited by attribution for the theorem that best-first alpha-beta examines exactly the minimal tree; not read for this article. record
  • Krizhevsky, A., Sutskever, I., and Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems 25 (pp. 1097–1105). record · 2 pages
  • LeCun, Y., Bottou, L., Bengio, Y., and Haffner, P. (1998). Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 2278–2324. record · 2 pages
  • Lighthill, J. (1973). Artificial intelligence: A general survey. In Artificial Intelligence: A Paper Symposium. Science Research Council. Report dated July 1972; read in the online edition of the Chilton Computing archive (chilton-computing.org.uk), consulted in November 2026 through the Internet Archive's capture of 5 November 2026, because the site no longer resolves. record · 2 pages
  • McCarthy, J. (2007). What is artificial intelligence? Stanford University, revised November 12, 2007. http://jmc.stanford.edu/articles/whatisai/whatisai.pdf record
  • McCarthy, J., Minsky, M. L., Rochester, N., and Shannon, C. E. (1955). A proposal for the Dartmouth summer research project on artificial intelligence. Dated August 31, 1955. http://jmc.stanford.edu/articles/dartmouth/dartmouth.pdf. Reprinted in AI Magazine, 27(4), 12–14 (2006). record
  • Russell, S., and Norvig, P. (2020). Artificial Intelligence: A Modern Approach (4th ed.). Pearson. Cited by attribution; not read for this article. record · 6 pages
  • Samuel, A. L. (1959). Some studies in machine learning using the game of checkers. IBM Journal of Research and Development, 3(3), 210–229. Cited by attribution; not read for this article. record
  • Turing, A. M. (1950). Computing machinery and intelligence. Mind, 59(236), 433–460. record · 3 pages
  • Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. (2017). Attention is all you need. In Advances in Neural Information Processing Systems 30. arXiv:1706.03762. record · 9 pages

Reviewed: verified, 23 Nov 2026 · citations checked, 23 Nov 2026 · editorial review, 23 Nov 2026 · 7 revisions