Probability for Computer Scientists
- 41Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why did the early strategy of translating languages by manually writing all the rules prove ineffective?
Why did the early strategy of translating languages by manually writing all the rules prove ineffective?
41 questions
- 1
Why did the early strategy of translating languages by manually writing all the rules prove ineffective?
- A
Natural language is too complex for a complete hand-written rule set to capture reliably
- B
Probability theory prevents a computer from applying language rules consistently
- C
Translation requires images rather than written or spoken language
- D
Computers could not store enough words to represent two different languages
Correct answer
ANatural language is too complex for a complete hand-written rule set to capture reliably
Explanation
The content describes the world and language as too complex to capture by writing every translation rule. Early rule-based translation could produce results that changed the meaning of the original sentence.
- A
- 2
What was the central flaw in the prediction that machines would be able to do any work humans could do within 20 years of 1952?
- A
It expected computers to solve only mathematical problems rather than language tasks
- B
It assumed that machines could learn only from examples rather than written rules
- C
It greatly underestimated the complexity of human abilities and real-world tasks
- D
It assumed computers would have access to more data than people could collect
Correct answer
CIt greatly underestimated the complexity of human abilities and real-world tasks
Explanation
The prediction was presented as an example of excessive optimism about how quickly AI would solve difficult problems. The speaker emphasizes that the world is much more complex than early researchers assumed.
- A
- 3
What does the failed English-to-Russian translation example illustrate about early rule-based AI?
- A
A computer can translate accurately only when it has already seen the exact sentence
- B
A translation system can work only if both languages use the same alphabet
- C
A translation can preserve individual words while badly changing the original meaning
- D
A translation system must use image data to interpret every sentence
Correct answer
CA translation can preserve individual words while badly changing the original meaning
Explanation
In the example, translating a sentence into Russian and back produced a substantially different English sentence. It illustrates how rule-based systems struggled with the complexity and ambiguity of language.
- A
- 4
What was the AI winter described in the lecture?
- A
A period when funding dried up for researchers who claimed to work on AI
- B
A period when researchers stopped using probability in computer science
- C
A period when computers could not be operated because of cold weather
- D
A period when AI systems were used only for games and not for research
Correct answer
AA period when funding dried up for researchers who claimed to work on AI
Explanation
After early AI promises proved unrealistic, the lecture says that funders became unwilling to support researchers who described their work as AI. This period was called the AI winter.
- A
- 5
Which sequence correctly matches the AI milestones and years given in the lecture?
- A
Chess success in 1997, self-driving cars in 2005, and Jeopardy-playing computers in 2011
- B
Self-driving cars in 1997, Jeopardy-playing computers in 2005, and chess success in 2011
- C
Chess success in 2005, self-driving cars in 2011, and Jeopardy-playing computers in 1997
- D
Jeopardy-playing computers in 1997, chess success in 2005, and self-driving cars in 2011
Correct answer
AChess success in 1997, self-driving cars in 2005, and Jeopardy-playing computers in 2011
Explanation
The timeline in the lecture places chess success in 1997, self-driving cars in 2005, and computers playing Jeopardy in 2011.
- A
- 6
Which description best defines a classification task?
- A
Using an algorithm to translate an input into a different language without categorizing it
- B
Using an algorithm to generate every possible input that could belong to a group
- C
Using an algorithm to calculate how many pixels are contained in an input
- D
Using an algorithm to assign an input, such as an image, to one of several groups
Correct answer
DUsing an algorithm to assign an input, such as an image, to one of several groups
Explanation
Classification means examining an input and assigning it to a category, such as deciding whether an image shows a Chihuahua or a muffin, or whether a handwritten digit is a zero or a one.
- A
- 7
Why can recognizing a Chihuahua in an image be difficult for a computer even though it seems easy to a person?
- A
The computer cannot process images unless each object has been described in written rules
- B
The computer must identify every pixel as a separate object before it can consider the whole image
- C
The computer must infer what is depicted from raw pixel values, while human vision involves extensive brain processing
- D
The computer receives only the image's caption, while a person receives the underlying pixel values
Correct answer
CThe computer must infer what is depicted from raw pixel values, while human vision involves extensive brain processing
Explanation
A computer vision system starts with pixel values and must infer what they represent. Human recognition also relies on substantial processing, including activity in the visual cortex, even when the result feels immediate.
- A
- 8
In the lecture's simplified model of an artificial neuron, what happens to its inputs before it produces an output?
- A
The inputs are weighted, summed, and passed through a squashing function
- B
The inputs are classified separately and then discarded before firing
- C
The inputs are multiplied together and copied directly to the output
- D
The inputs are sorted, averaged, and converted into a written rule
Correct answer
AThe inputs are weighted, summed, and passed through a squashing function
Explanation
The cartoon neuron model assigns weights to inputs, sums the weighted values, and applies a squashing function. Its output is interpreted probabilistically.
- A
- 9
How does a neural network use its individual neuron-like units to make a classification?
- A
It lets each unit independently inspect the original image and selects whichever unit fires first
- B
It assigns one unit to every possible image and looks up the input in that complete collection
- C
It arranges units in layers so later units compute from earlier outputs and a final output represents class probabilities
- D
It gives each unit a complete hand-written definition of one class and selects the longest definition
Correct answer
CIt arranges units in layers so later units compute from earlier outputs and a final output represents class probabilities
Explanation
The lecture describes networks as layers of probability-like units. Later units use previously computed outputs, and a final layer can represent probabilities for classes such as the digits zero through nine.
- A
- 10
Where does the lecture say the learned intelligence of a neural network is primarily embodied?
- A
In the order in which examples are stored on the computer
- B
In the values of the network's weights
- C
In the number of pixels in each training image
- D
In a complete list of rules written by a programmer
Correct answer
BIn the values of the network's weights
Explanation
The network's structure alone does not make it intelligent. The lecture explains that well-set weights allow its outputs to make useful probability claims.
- A
- 11
What is the basic idea behind learning by example in the neural-network account?
- A
Change the correct label whenever the network's prediction differs from it
- B
Write a separate rule for every possible input before the network makes predictions
- C
Keep the weights fixed and remove every example the network classifies incorrectly
- D
Use examples to adjust the network's weights so its predictions become more accurate
Correct answer
DUse examples to adjust the network's weights so its predictions become more accurate
Explanation
Learning by example means showing the model examples and adjusting its weights in response to its predictions. Repeating this process can make the model better over time.
- A
- 12
In the lecture's example of a network misclassifying a digit, what does the loss represent?
- A
A measure of how poorly the model's probability prediction matches the correct answer
- B
A count of how many input pixels were missing from the image
- C
A count of how many classes the network is capable of predicting
- D
A measure of how much memory the network uses to store its weights
Correct answer
AA measure of how poorly the model's probability prediction matches the correct answer
Explanation
The model makes a probability claim, and the loss expresses how wrong that claim is relative to the known answer. Learning seeks changes to the weights that reduce the loss.
- A
- 13
Why can probability theory help a learning algorithm decide how to change its weights?
- A
It converts every input into a deterministic rule that needs no further adjustment
- B
It replaces the need to compare predictions with the examples' correct labels
- C
It provides a mathematical way to express prediction quality and seek weight changes that reduce loss
- D
It guarantees that every prediction will be correct before the model sees any examples
Correct answer
CIt provides a mathematical way to express prediction quality and seek weight changes that reduce loss
Explanation
The lecture explains that probability-based models allow requests such as making a prediction less wrong to be expressed mathematically. The model can then seek weight changes that minimize its loss.
- A
- 14
How did the lecture describe a text-to-image system such as DALL·E as producing images?
- A
It translates the text into a list of fixed drawing rules and always produces one deterministic image
- B
It models a probability distribution of images related to the text and samples images from that distribution
- C
It selects a random image without using the meaning of the text as a condition
- D
It searches the internet for the exact image described and returns the first matching file
Correct answer
BIt models a probability distribution of images related to the text and samples images from that distribution
Explanation
The system was described as inferring a distribution over images conditioned on the text prompt and sampling possible images from that distribution.
- A
- 15
According to the lecture, what qualities should an AI classifier aim for even if it is not perfect?
- A
It should maximize the number of categories and ignore errors between them
- B
It should always produce the same answer and avoid representing uncertainty
- C
It should eliminate the need for examples and guarantee flawless predictions
- D
It should be as accurate as possible and treat cases fairly
Correct answer
DIt should be as accurate as possible and treat cases fairly
Explanation
The lecture says AI does not have to be perfect, but it should be fair and as accurate as possible.
- A
- 16
What does the one-shot learning example reveal about a common limitation of machine learning?
- A
One-shot learning means that a model makes a single prediction and cannot learn from data
- B
People can often recognize a new instance from one example, while typical machine learning may need many examples
- C
A machine can recognize a symbol only if every possible version is identical to the training example
- D
People need millions of examples to recognize a symbol, while machines need only one
Correct answer
BPeople can often recognize a new instance from one example, while typical machine learning may need many examples
Explanation
The lecture contrasts people's ability to recognize a symbol after seeing one example with typical machine-learning methods that may need millions of examples.
- A
- 17
Why can a positive test result still correspond to a low probability of having a disease?
- A
A positive result cannot be used to update a belief unless the test is perfectly accurate
- B
A test's sensitivity determines the disease's prevalence in the population
- C
A positive result always means that the test has confused the patient's symptoms with another disease
- D
If the disease is rare, false positives among the much larger unaffected group can substantially affect the result
Correct answer
DIf the disease is rare, false positives among the much larger unaffected group can substantially affect the result
Explanation
The Zika example emphasizes the low prevalence of the disease. Even a fairly accurate test can produce false positives, and the rarity of the disease matters when interpreting a positive result.
- A
- 18
In the Zika example, what probability did the lecture give for having Zika after receiving a positive test?
- A
About 50 percent
- B
About 90 percent
- C
About 9 percent
- D
About 97 percent
Correct answer
CAbout 9 percent
Explanation
Given the example's stated prevalence and test characteristics, the lecture reports that the probability of having Zika after a positive result is only about 9 percent.
- A
- 19
What does probability theory provide when new evidence arrives about something uncertain?
- A
A method for discarding prior information whenever new evidence appears
- B
A guarantee that the original belief will remain unchanged
- C
A way to turn uncertain claims into certain facts without further assumptions
- D
A principled way to update beliefs in light of the new evidence
Correct answer
DA principled way to update beliefs in light of the new evidence
Explanation
The lecture describes probability theory as a clean way to incorporate additional information and update beliefs about uncertain events.
- A
- 20
Why is probabilistic analysis useful for studying algorithms?
- A
It replaces the need to reason about an algorithm's inputs and operations
- B
It proves that all algorithms are equally efficient on every possible input
- C
It can help explain algorithm behavior and support ideas for making algorithms faster
- D
It guarantees that every algorithm finishes after the same number of steps
Correct answer
CIt can help explain algorithm behavior and support ideas for making algorithms faster
Explanation
The lecture notes that modern algorithms use probabilistic analysis to explain how they work and to develop ideas for making them faster.
- A
- 21
In counting theory, what is an experiment?
- A
An action or process that can produce a set of possible outcomes
- B
A rule that assigns a probability to every event in advance
- C
A list containing only the outcomes that satisfy a chosen condition
- D
A calculation that determines how many steps an algorithm takes
Correct answer
AAn action or process that can produce a set of possible outcomes
Explanation
The lecture formalizes counting by considering an experiment, the outcomes it can produce, and the number of outcomes of interest.
- A
- 22
What does an event represent when counting outcomes?
- A
A condition that determines which outcomes of an experiment are being counted
- B
The complete list of every possible experiment that could be performed
- C
A sequence of steps that must always produce the same outcome
- D
A probability assigned to the experiment before any outcome occurs
Correct answer
AA condition that determines which outcomes of an experiment are being counted
Explanation
An event specifies the property of interest, such as getting an even number on a die. Counting the event means counting outcomes that satisfy that property.
- A
- 23
How many outcomes are possible when rolling one standard six-sided die, and how many are even?
- A
Three outcomes in total, of which one is even
- B
Six outcomes in total, of which two are even
- C
Six outcomes in total, of which three are even
- D
Three outcomes in total, of which two are even
Correct answer
CSix outcomes in total, of which three are even
Explanation
A single die has six possible outcomes: one through six. The even outcomes are two, four, and six, so there are three.
- A
- 24
What does the step rule of counting say about a process with two steps?
- A
If the steps occur in order, subtract the second step's choices from the first step's choices
- B
If the number of choices in the second step stays the same after the first step, multiply the two choice counts
- C
If the second step has fewer choices after the first, add the two choice counts
- D
If each step has several choices, count only the choices available in the first step
Correct answer
BIf the number of choices in the second step stays the same after the first step, multiply the two choice counts
Explanation
When a process can be broken into steps and the first choice does not change how many options are available in the next step, the total number of outcomes is the product of the step counts.
- A
- 25
Which condition is necessary to use the multiplication form of the step rule?
- A
The total number of choices must be the same at every step
- B
The choices in different steps must belong to mutually exclusive sets
- C
The number of options at a later step must not depend on which earlier choice was made
- D
Every possible outcome must contain the same object more than once
Correct answer
CThe number of options at a later step must not depend on which earlier choice was made
Explanation
The step rule applies when an earlier choice does not affect the number of available options in the next step. The choices themselves need not be identical across steps.
- A
- 26
When can the sum rule of counting be used to count outcomes from set A or set B by addition?
- A
When the number of outcomes in A equals the number in B
- B
When choosing an outcome from A changes the choices in B
- C
When the sets are mutually exclusive and share no outcomes
- D
When every outcome belongs to both sets
Correct answer
CWhen the sets are mutually exclusive and share no outcomes
Explanation
If outcomes can come from set A or set B and the sets have no elements in common, their sizes can be added directly.
- A
- 27
What does it mean for two sets of outcomes to be mutually exclusive?
- A
Every outcome in one set changes the size of the other set
- B
They have no outcome in common
- C
They contain exactly the same outcomes
- D
They have the same number of outcomes
Correct answer
BThey have no outcome in common
Explanation
Mutually exclusive sets do not overlap: no single outcome belongs to both sets.
- A
- 28
How does the inclusion-exclusion rule count outcomes that belong to set A or set B?
- A
Add the sizes of A and B, then subtract the size of their overlap
- B
Multiply the sizes of A and B, then subtract the size of their overlap
- C
Add the sizes of A and B, then add the size of their overlap
- D
Subtract the size of B from A, then add the size of their overlap
Correct answer
AAdd the sizes of A and B, then subtract the size of their overlap
Explanation
Adding the sizes of A and B counts shared outcomes twice. Inclusion-exclusion corrects this by subtracting the number of outcomes in both sets.
- A
- 29
Why does an 8-bit channel have 256 possible values?
- A
Each of its eight positions can be either 0 or 1, giving 28 possible bit patterns
- B
Each of its eight positions can be any of eight values, giving 82 possible patterns
- C
The channel has 8 values for each of 32 possible colors, giving 8×32 patterns
- D
Each of its four pairs of bits can form 16 values, giving 4×16 patterns
Correct answer
AEach of its eight positions can be either 0 or 1, giving 28 possible bit patterns
Explanation
Each bit has two possible values. By the step rule, eight binary choices give 28=256 possible patterns.
- A
- 30
How many orderings are possible for four distinct letters?
- A
16, because each of the four positions has two possible choices
- B
4, because each letter can appear in only one ordering
- C
10, because the successive choices are 4, then 3, then 2, then 1 added together
- D
24, because the successive choices are 4, then 3, then 2, then 1
Correct answer
D24, because the successive choices are 4, then 3, then 2, then 1
Explanation
For four distinct letters, there are four choices for the first position, three for the second, two for the third, and one for the last. The step rule gives 4×3×2×1=24.
- A
- 31
How many ordered outcomes are possible when rolling two six-sided dice?
- A
6, because the pair is determined by one die's outcome
- B
36, because each of the two rolls has six possible outcomes
- C
18, because the two dice share the same six possible values
- D
12, because each die contributes six possible outcomes
Correct answer
B36, because each of the two rolls has six possible outcomes
Explanation
There are six choices for the first die and six for the second. By the step rule, the number of ordered outcomes is 6×6=36.
- A
- 32
How many colors can one pixel represent if its red, green, and blue channels each have 256 possible values?
- A
256×3, because each channel contributes 256 choices
- B
256+3, because the channels add their possible values
- C
3256, because there are 256 choices among three channels
- D
2563, because the three channel choices combine independently
Correct answer
D2563, because the three channel choices combine independently
Explanation
A pixel's color is selected by choosing a red value, a green value, and a blue value. Each channel has 256 choices, so there are 256×256×256=2563 colors.
- A
- 33
Approximately how many colors can a computer represent for a single pixel with three 8-bit color channels?
- A
About 768
- B
About 17 million
- C
About 24
- D
About 256 thousand
Correct answer
BAbout 17 million
Explanation
Each of the three color channels has 256 possible values, so a pixel has 2563, or about 17 million, possible colors.
- A
- 34
If each of 12 pixels can take about 17 million colors, how many distinct images can be formed?
- A
About 17,000,000+12
- B
About 17,000,00012
- C
About 17,000,000×12
- D
About 1217,000,000
Correct answer
BAbout 17,000,00012
Explanation
Each of the 12 pixels is a step with about 17 million choices, and one pixel's choice does not change the choices for another. The step rule gives about 17,000,00012 images.
- A
- 35
Which expression gives the number of images possible with n pixels if each pixel can have about 17 million colors?
- A
17,000,000×n
- B
17,000,000+n
- C
n17,000,000
- D
17,000,000n
Correct answer
D17,000,000n
Explanation
Each of the n pixels has about 17 million choices, so multiplying that number once for each pixel gives 17,000,000n.
- A
- 36
What comparison did the lecture use to illustrate the enormous number of images possible from 12 pixels?
- A
The number is on the scale of 1077, close to the estimated number of atoms in the known universe
- B
The number is on the scale of 1012, close to the number of seconds in a year
- C
The number is on the scale of 108, close to the number of people in a large city
- D
The number is on the scale of 10300, exactly matching the number of atoms in the known universe
Correct answer
AThe number is on the scale of 1077, close to the estimated number of atoms in the known universe
Explanation
The lecture estimates the 12-pixel count at about 5.8×1077 and compares it with an estimate of roughly 1080 atoms in the known universe.
- A
- 37
Why can the number of possible combinations of a limited set of objects become extraordinarily large?
- A
Adding more possible arrangements reduces the number of distinct combinations
- B
Each object can be counted only once, regardless of its position or combination
- C
A finite set of objects automatically contains infinitely many individual objects
- D
Combining choices across many steps multiplies the number of possibilities
Correct answer
DCombining choices across many steps multiplies the number of possibilities
Explanation
The step rule shows that the number of combinations grows multiplicatively across choices. Thus, even a finite number of pixels can produce an enormous number of distinct images.
- A
- 38
How many 6-bit strings start with 01?
- A
16, because the remaining four positions each have two choices
- B
32, because the first position is fixed and five positions remain free
- C
64, because all six positions can be chosen freely
- D
8, because the first two positions are fixed and three positions remain free
Correct answer
A16, because the remaining four positions each have two choices
Explanation
The first two bits are fixed as 01. Each of the remaining four bits can be either 0 or 1, giving 24=16 strings.
- A
- 39
How many 6-bit strings end with 10?
- A
64, because all six positions can be chosen freely
- B
16, because the first four positions each have two choices
- C
8, because three positions remain free
- D
32, because only the final position is fixed
Correct answer
B16, because the first four positions each have two choices
Explanation
The last two bits are fixed as 10, leaving four unrestricted positions. There are 24=16 such strings.
- A
- 40
How many 6-bit strings both start with 01 and end with 10?
- A
4, because the middle two positions each have two choices
- B
16, because four positions remain unrestricted
- C
8, because three positions remain unrestricted
- D
2, because only one middle position can vary
Correct answer
A4, because the middle two positions each have two choices
Explanation
Fixing the first two and last two bits leaves two middle positions free. Each has two choices, so the overlap contains 22=4 strings.
- A
- 41
How many 6-bit strings start with 01 or end with 10?
- A
28, because 16+16 counts four overlapping strings twice
- B
36, because the two groups of 16 share four strings
- C
32, because there are 16 strings in each group and the groups never overlap
- D
12, because the four shared strings must be removed from both groups
Correct answer
A28, because 16+16 counts four overlapping strings twice
Explanation
There are 16 strings starting with 01 and 16 ending with 10. Four satisfy both conditions, so inclusion-exclusion gives 16+16−4=28.
- A

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