Probability for Computer Scientists
- 50Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What early achievements led some researchers in the 1950s to believe that artificial intelligence would be easy to develop?
50 questions
- 1
What early achievements led some researchers in the 1950s to believe that artificial intelligence would be easy to develop?
Model answer
Computers could play checkers at a high level and perform some automatic theorem proving, encouraging optimism that broader intelligent tasks would soon be solved.
Explanation
These successes made intelligence appear more straightforward to reproduce computationally than it proved to be.
- 2
Why was Herbert Simon’s prediction that machines would perform any work a human could do within 20 years considered overly optimistic?
Model answer
Computers of the time were still limited, and the complexity of human abilities and the world was much greater than his prediction assumed.
Explanation
The prediction was made in 1952, but machines had not achieved the claimed breadth of human capability by 1972.
- 3
Why did an attempt to translate English into Russian by writing explicit translation rules fail?
Model answer
Language and its context were too complex to capture adequately with a complete set of hand-written rules, leading to inaccurate translations.
Explanation
For example, translating a sentence about the spirit being willing but the flesh being weak and translating it back produced a sentence about vodka and rotten meat.
- 4
What was the AI winter, and what contributed to it?
Model answer
The AI winter was a period when funding for AI research declined sharply after early expectations proved unrealistic and progress disappointed.
Explanation
The failure of ambitious approaches, such as trying to encode all language rules, contributed to reduced confidence in AI.
- 5
Name three milestones that marked renewed progress in AI from the late 1990s through 2011.
Model answer
Computers achieved major success at chess in 1997, self-driving cars made progress in 2005, and computers played Jeopardy! in 2011.
Explanation
These milestones illustrated progress across different kinds of tasks rather than a single narrow application.
- 6
How did the outlook for speech transcription change over time?
Model answer
Speech transcription was once considered unlikely to be solved within a student’s academic lifetime, but it later became sufficiently reliable for everyday phone use.
Explanation
The example shows how rapidly AI capability can change over a relatively short period.
- 7
What is protein folding, and why is solving it useful?
Model answer
Protein folding is the task of inferring a protein’s three-dimensional structure from its amino acid sequence; solving it can support drug development and understanding the body.
Explanation
The structure is difficult to infer from the sequence, but AI systems have predicted structures for known sequences in a large database.
- 8
How can a text-to-image AI system generate images from a written prompt?
Model answer
It uses the prompt to model a probability distribution over related images and then samples images from that distribution.
Explanation
The generated images are constructed from the prompt rather than simply retrieved as existing pictures from the internet.
- 9
Why is recognizing an object in an image difficult for a computer, even when it seems easy to a person?
Model answer
A computer receives raw pixel values and must infer the object from them, while human vision relies on extensive processing by the visual system.
Explanation
The visual cortex is described as using about 30% of the brain, illustrating how much processing supports ordinary visual perception.
- 10
Give two examples of AI applications in everyday life besides image generation.
Model answer
AI can help find a route between locations and can translate text between languages.
Explanation
These examples show that AI includes practical systems used in everyday tasks, not only highly publicized breakthroughs.
- 11
In a simplified model of a biological neuron, what happens when its inputs produce enough charge?
Model answer
The neuron fires when the accumulated charge becomes large enough.
Explanation
The model describes inputs building charge until a threshold for firing is reached.
- 12
How does a simplified artificial neuron turn its inputs into an output?
Model answer
It weights its inputs, sums the weighted values, and passes the sum through a squashing function to produce an output interpretable as a probability.
Explanation
The weights let the model give different inputs different influence, and the squashing function maps the combined input to a probability-like value.
- 13
How do artificial neurons form a neural network?
Model answer
They are connected in groups or layers, so later neurons compute from values produced by earlier neurons.
Explanation
A network can have an input layer, hidden layers, and a final layer.
- 14
How can a neural network classify a hand-drawn digit from an image?
Model answer
It takes pixel values as inputs, processes them through layers of neurons, and produces output probabilities for possible digit classes.
Explanation
The final outputs can represent the probabilities that the image depicts each digit from 0 through 9.
- 15
Where does the useful capability of a neural network primarily reside?
Model answer
It resides in the network’s weights: well-set weights can produce useful probabilities, while random weights generally do not.
Explanation
The network’s structure alone does not guarantee intelligence; the learned values of its weights determine how it responds to inputs.
- 16
What does learning by example mean for a neural network?
Model answer
The network uses examples to adjust its weights, gradually improving its predictions instead of relying on a person to hand-write all the rules.
Explanation
Repeated small adjustments can make the model more accurate as it encounters examples.
- 17
How can a training example correct a neural network’s mistaken prediction?
Model answer
The example reveals the correct outcome, and the network adjusts its weights to reduce the error between its prediction and that outcome.
Explanation
For instance, if a model assigns high probability to the wrong digit, training can change its weights to reduce its loss.
- 18
What role does loss play in training a neural network?
Model answer
Loss measures how poorly the network’s probability prediction matches the correct outcome, and training seeks weight changes that reduce that loss.
Explanation
The model can use the change of loss with respect to its weights to determine how adjusting those weights could improve its predictions.
- 19
What qualities should a classification system aim for, even though it may not always be perfect?
Model answer
It should aim to be as accurate as possible and to be fair.
Explanation
The content identifies accuracy and fairness as goals without requiring that every prediction be correct.
- 20
Why can a positive test result still correspond to a low probability that a person has a rare disease?
Model answer
When the disease is rare, many positive results may come from people who do not have it, even if the test detects most cases correctly.
Explanation
The example gives a 90% detection rate for people with Zika and a 7% positive rate among people without it, yet reports only a 9% probability of disease after a positive result because the disease is rare.
- 21
Why must a positive test result be distinguished from the underlying fact that a person has a disease?
Model answer
A test result is evidence about the disease, not the disease itself, because tests can produce incorrect results.
Explanation
Reasoning about the probability of disease requires combining the test result with information about test accuracy and how common the disease is.
- 22
How does probability theory help someone respond to new evidence?
Model answer
It provides a principled way to update beliefs about an uncertain event as additional information becomes available.
Explanation
For example, a person can revise the estimated chance of having a disease as symptoms or other evidence change.
- 23
How could probability make an eye exam more efficient while still estimating how well someone can see?
Model answer
The exam can maintain a distribution of beliefs about the person’s visual ability and choose the next letter based on the answers received so far.
Explanation
Adapting each prompt to the current uncertainty can make the exam shorter and more accurate than using a fixed sequence.
- 24
How can conditional probability support a recommender system?
Model answer
It can represent how likely a user is to prefer an item given available information about that user or their past choices.
Explanation
Recommender systems are an example of using conditional probability without necessarily relying on deep learning.
- 25
Why is probabilistic analysis useful when studying algorithms?
Model answer
It can help explain why algorithms work well and provide ideas for making them faster.
Explanation
The content describes probabilistic analysis as a tool used in modern algorithms both to analyze performance and to develop improvements.
- 26
What is one important limitation of typical machine-learning systems compared with people?
Model answer
Typical systems may need millions of examples to learn a pattern that a person can recognize from a single example.
Explanation
This contrast is presented as an example of the open problem of one-shot learning.
- 27
Why is understanding the probability behind AI important beyond building AI systems?
Model answer
It helps people evaluate probabilistic claims, understand how systems work, and recognize when technology may be used in harmful or inappropriate ways.
Explanation
The content connects technical understanding with informed decision-making, ethics, and the codification of ethics into law.
- 28
In counting, what are an experiment, an outcome, and an event?
Model answer
An experiment is an action with possible results, an outcome is one possible result, and an event is a condition that some outcomes satisfy.
Explanation
For a die roll, rolling is the experiment, a particular face is an outcome, and getting an even number is an event.
- 29
How many outcomes are possible when rolling one standard die, and how many satisfy the event of rolling an even number?
Model answer
There are 6 possible outcomes, and 3 of them—2, 4, and 6—are even.
Explanation
Counting the outcomes in the event means counting only the die faces that meet its defining condition.
- 30
How many ordered outcomes are possible when rolling two standard dice?
Model answer
There are 36 ordered outcomes.
Explanation
Each die has 6 possible results, so the two-step count is 6×6=36.
- 31
State the step rule of counting and the condition required to use it.
Model answer
For a process with steps having a and b choices, the total is a×b if the number of choices in the second step is unchanged by the first step.
Explanation
The rule generalizes to more steps by multiplying the number of choices at each step when earlier choices do not change the number available at later steps.
- 32
Why can the step rule apply when the first choice changes which options remain, provided it does not change how many remain?
Model answer
The rule requires the number of choices in the next step to stay the same, not the identity of those choices.
Explanation
When ordering distinct letters, choosing any first letter leaves 3 choices for the second, even though the specific remaining letters depend on the first choice.
- 33
State the sum rule of counting and its condition.
Model answer
If outcomes come from either set A or set B, and the sets have no outcomes in common, the total number is ∣A∣+∣B∣.
Explanation
The condition prevents an outcome from being counted once in each set.
- 34
What is the inclusion-exclusion rule for counting outcomes in either of two sets?
Model answer
The number in A or B is ∣A∣+∣B∣−∣A∩B∣.
Explanation
Adding the set sizes counts every outcome in both sets twice, so the overlap must be subtracted once.
- 35
How are the step rule and the sum rule commonly distinguished?
Model answer
Counting choices across steps uses multiplication, while counting outcomes from mutually exclusive alternatives uses addition.
Explanation
The step rule requires the number of choices at later steps to remain unchanged; the basic sum rule requires the sets not to overlap.
- 36
How many colors can one pixel represent if its red, green, and blue channels each have 256 possible values?
Model answer
It can represent 2563=16,777,216 colors, or about 17 million.
Explanation
Choosing a color consists of three steps—choosing red, green, and blue—and each channel has 256 options.
- 37
Why can an 8-bit color channel represent 256 different values?
Model answer
Each bit has 2 possible values, so 8 bits have 28=256 possible patterns.
Explanation
The step rule multiplies the 2 choices available at each of the 8 bit positions.
- 38
How many unique images can be represented using 12 pixels if each pixel has about 17 million possible colors?
Model answer
About (17,000,000)12 images can be represented.
Explanation
The color choice for each pixel is a step with the same number of options, so the choices multiply across all 12 pixels.
- 39
How many images can be represented by n independently chosen pixels when each pixel has 2563 possible colors?
Model answer
The number is (2563)n, equivalently 2563n.
Explanation
Each of the n pixels has 2563 color choices, and the step rule multiplies those choices.
- 40
How does the number of possible 12-pixel images compare with the estimated number of atoms in the known universe?
Model answer
The number of images is about 5.8×1077, close to but below the estimated 1080 atoms in the known universe.
Explanation
The comparison illustrates how rapidly the number of combinations grows even when an image contains very few pixels.
- 41
Why does counting possible combinations matter in computer science?
Model answer
It helps estimate how much computation a task may require and can reveal why some problems are difficult to compute.
Explanation
A space of possible inputs or outputs can grow so quickly that checking every possibility becomes impractical.
- 42
A valid six-bit string must start with 01 or end with 10. How many strings start with 01?
Model answer
There are 24=16 such strings.
Explanation
The first two bits are fixed, leaving four positions, each with 2 possible values.
- 43
How many six-bit strings end with 10?
Model answer
There are 24=16 such strings.
Explanation
The final two bits are fixed, leaving four freely chosen bits.
- 44
How many six-bit strings both start with 01 and end with 10?
Model answer
There are 22=4 such strings.
Explanation
Fixing the first two and last two bits leaves two middle bits, each with 2 choices.
- 45
How many six-bit strings start with 01 or end with 10?
Model answer
There are 16+16−4=28 valid strings.
Explanation
The two groups overlap in 4 strings, so inclusion-exclusion subtracts that overlap from the sum.
- 46
How many different orderings are possible for n distinct letters?
Model answer
There are n! orderings.
Explanation
The positions have n, then n−1, continuing down to 1 choices, giving n(n−1)⋯1=n!.
- 47
How many orderings are possible for four distinct letters such as A, B, C, and D?
Model answer
There are 4!=24 orderings.
Explanation
There are 4 choices for the first position, then 3, then 2, then 1.
- 48
When ordering distinct letters, why can the step rule still be used even though a choice removes an option from later positions?
Model answer
The number of remaining options changes, but it is the same for every possible choice at each position.
Explanation
For four distinct letters, every first choice leaves 3 options, every pair of choices leaves 2, and so on.
- 49
How many unique orderings are there of the letters in Boba, where the letter B appears twice?
Model answer
There are 2!4!=12 unique orderings.
Explanation
The 4! arrangements treat the two identical B letters as different, so each unique ordering is counted 2! times.
- 50
How many unique orderings are there of the letters in Mississippi?
Model answer
There are 4!4!2!11!=34,650 unique orderings.
Explanation
The word has 11 letters, with 4 repeated Is, 4 repeated Ss, and 2 repeated Ps; dividing by the permutations of each repeated group removes duplicate arrangements.

Ask anything
We've read this whole study set, so questions about it get the best answers.