Probability for Computer Scientists
- 55Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
Why did early attempts to build AI by writing explicit rules for every situation often fail?
Real-world problems are too complex to capture with a complete set of hand-written rules.
Or swipe the card
55 cards
Why did early attempts to build AI by writing explicit rules for every situation often fail?
Real-world problems are too complex to capture with a complete set of hand-written rules.
What did the failed English-to-Russian translation example illustrate?
A rule-based system could produce a badly distorted translation: “The spirit is willing, but the flesh is weak” became “The vodka is good, but the meat is rotten.”
What was the AI winter?
A period when enthusiasm and funding for AI research declined after early expectations proved unrealistic.
What milestones in AI were highlighted as signs of progress after the AI winter?
Computers began winning at chess in 1997, self-driving cars made major progress around 2005, and a computer played Jeopardy! in 2011.
What is protein folding, and why is it important?
It is the task of predicting a protein’s 3D structure from its amino-acid sequence; solving it can help researchers understand the body and develop drugs.
What change in speech recognition illustrates AI’s rapid progress?
Speech transcription was once considered extremely difficult, but modern devices can transcribe spoken words into text.
What is one-shot learning, and how does it differ from typical machine learning?
One-shot learning aims to recognize a new category from a single example; typical machine-learning systems may require millions of examples.
How can a text-to-image model generate an image from a prompt?
It models a probability distribution over images conditioned on the text prompt, then samples an image from that distribution.
Why is probability useful when reasoning about uncertain events?
It provides a mathematical way to represent uncertainty and to update beliefs when new evidence arrives.
How should a belief about an uncertain event change when new evidence becomes available?
Update the belief by incorporating the new evidence into the probability estimate.
Why can a positive test result still correspond to a low probability of having a rare disease?
If the disease is rare, false positives among the much larger group without the disease can make up a substantial share of positive results.
In the lecture’s Zika example, what was the probability of having Zika after a positive test?
About 9%.
How can probability improve an eye exam?
It can represent uncertainty about a person’s visual acuity and help choose the next letter or prompt to show.
What advantage did the adaptive eye-exam approach described in the lecture have over conventional exams?
It could be more accurate while requiring a much shorter exam.
How does probability appear in recommender systems?
Conditional probability can help estimate what a person may prefer based on available information.
Why is probability useful for analyzing algorithms?
Probabilistic analysis can explain how algorithms perform and help develop ways to make them faster.
What do the inputs and weights represent in a cartoon model of an artificial neuron?
Inputs provide values to the neuron, and weights determine how strongly each input contributes.
What computation does a simple artificial neuron perform before producing its output?
It weights its inputs, sums the weighted values, and passes the result through a squashing function.
How can the output of an artificial neuron be interpreted probabilistically?
As a probability that the neuron fires or does not fire.
Where is a neural network’s learned “intelligence” represented?
In its weights.
Why combine many artificial neurons into a network?
A collection of neurons can represent more complex patterns and computations than a single neuron.
What are the typical layers of a neural network?
An input layer, one or more hidden layers, and a final output layer.
How can a neural network classify a handwritten digit?
It processes pixel values through layers of neurons and produces probabilities for possible digit classes.
How does learning from examples improve a neural network?
The network compares its prediction with the example’s correct answer and adjusts its weights to reduce error.
What is loss in the context of training a neural network?
A measure of how far the model’s prediction is from the desired answer.
What does minimizing loss with respect to a network’s weights mean?
Finding weight changes that would make the model’s predictions less wrong.
What is classification in machine learning?
Assigning an input, such as an image, to one of a set of categories.
Why can a task that seems visually simple to a human be difficult for a computer?
A computer starts with raw pixel values and must infer what they represent, while human vision relies on extensive brain processing.
What is a counting experiment?
A process that can produce a set of possible outcomes.
What is an event in counting and probability?
A condition that some outcomes of an experiment satisfy.
How many outcomes are possible when rolling one standard die, and how many are even?
There are 6 possible outcomes, of which 3 are even.
What is the relationship between counting and probability theory?
Counting provides a foundational way to reason about the possible outcomes of experiments and events.
Why is counting useful in computer science?
It can help estimate the amount of work an algorithm must do, such as the number of iterations it performs.
Why can the number of possible combinations become enormous even when the number of components is small?
Each component can have multiple options, and the choices combine multiplicatively across components.
What is the step rule of counting?
If a process has successive steps with fixed numbers of choices, multiply the number of choices at each step to get the total.
When can the step rule be used for a two-step process?
When the number of choices in the second step is the same regardless of the choice made in the first step.
How many outcomes are possible when rolling two standard dice?
How many colors can one pixel represent if its red, green, and blue channels each have 256 possible values?
2563, or about 17 million colors.
Why can an 8-bit color channel represent 256 values?
Each of its 8 bits has 2 choices, so there are 28=256 possible bit patterns.
How many distinct images can be represented by 12 pixels if each pixel has about 17 million possible colors?
About 17,000,00012, or 5.8×1077 images.
How many distinct images can be represented by n pixels if each pixel has 17 million possible colors?
17,000,000n.
How many six-bit strings start with 01?
24=16.
How many six-bit strings end with 10?
24=16.
What is the sum rule of counting?
If outcomes come from either of two mutually exclusive sets, add the number of outcomes in each set.
What does it mean for two sets of outcomes to be mutually exclusive?
They have no outcomes in common.
How do the step rule and sum rule relate to multiplication and addition?
Counting successive steps generally uses multiplication; counting mutually exclusive alternatives uses addition.
What is the inclusion-exclusion rule for two sets?
∣A∪B∣=∣A∣+∣B∣−∣A∩B∣.
Why must the overlap be subtracted when counting outcomes in either of two non-mutually-exclusive sets?
Outcomes in both sets are counted twice when the two set sizes are added.
How many six-bit strings start with 01 and also end with 10?
How many six-bit strings start with 01 or end with 10?
How many ways can four distinct letters be arranged in order?
4×3×2×1=24.
Why does arranging distinct letters fit the step rule?
At each position, the number of remaining choices is fixed regardless of which earlier letters were chosen.
How many arrangements of n distinct items are there?
n×(n−1)×⋯×2×1.
Why does arranging the letters in a word with repeated letters require extra care?
Repeated letters are indistinguishable, so treating each copy as distinct can count the same visible arrangement more than once.
Why can’t the number of arrangements of Boba be found by treating all four letters as distinct?
The two copies of B are identical, so swapping them does not create a new unique ordering.

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