1. Home
  2. Explore
  3. Mathematics
  4. Probability for Computer Scientists

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Probability for Computer Scientists

  • 41Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: AI Foundations

Why did the early strategy of translating languages by manually writing all the rules prove ineffective?

41 questions

  1. 1

    Why did the early strategy of translating languages by manually writing all the rules prove ineffective?

    1. A

      Natural language is too complex for a complete hand-written rule set to capture reliably

    2. B

      Probability theory prevents a computer from applying language rules consistently

    3. C

      Translation requires images rather than written or spoken language

    4. D

      Computers could not store enough words to represent two different languages

    Correct answer
    A

    Natural 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.

  2. 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?

    1. A

      It expected computers to solve only mathematical problems rather than language tasks

    2. B

      It assumed that machines could learn only from examples rather than written rules

    3. C

      It greatly underestimated the complexity of human abilities and real-world tasks

    4. D

      It assumed computers would have access to more data than people could collect

    Correct answer
    C

    It 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.

  3. 3

    What does the failed English-to-Russian translation example illustrate about early rule-based AI?

    1. A

      A computer can translate accurately only when it has already seen the exact sentence

    2. B

      A translation system can work only if both languages use the same alphabet

    3. C

      A translation can preserve individual words while badly changing the original meaning

    4. D

      A translation system must use image data to interpret every sentence

    Correct answer
    C

    A 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.

  4. 4

    What was the AI winter described in the lecture?

    1. A

      A period when funding dried up for researchers who claimed to work on AI

    2. B

      A period when researchers stopped using probability in computer science

    3. C

      A period when computers could not be operated because of cold weather

    4. D

      A period when AI systems were used only for games and not for research

    Correct answer
    A

    A 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.

  5. 5

    Which sequence correctly matches the AI milestones and years given in the lecture?

    1. A

      Chess success in 1997, self-driving cars in 2005, and Jeopardy-playing computers in 2011

    2. B

      Self-driving cars in 1997, Jeopardy-playing computers in 2005, and chess success in 2011

    3. C

      Chess success in 2005, self-driving cars in 2011, and Jeopardy-playing computers in 1997

    4. D

      Jeopardy-playing computers in 1997, chess success in 2005, and self-driving cars in 2011

    Correct answer
    A

    Chess 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.

  6. 6

    Which description best defines a classification task?

    1. A

      Using an algorithm to translate an input into a different language without categorizing it

    2. B

      Using an algorithm to generate every possible input that could belong to a group

    3. C

      Using an algorithm to calculate how many pixels are contained in an input

    4. D

      Using an algorithm to assign an input, such as an image, to one of several groups

    Correct answer
    D

    Using 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.

  7. 7

    Why can recognizing a Chihuahua in an image be difficult for a computer even though it seems easy to a person?

    1. A

      The computer cannot process images unless each object has been described in written rules

    2. B

      The computer must identify every pixel as a separate object before it can consider the whole image

    3. C

      The computer must infer what is depicted from raw pixel values, while human vision involves extensive brain processing

    4. D

      The computer receives only the image's caption, while a person receives the underlying pixel values

    Correct answer
    C

    The 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.

  8. 8

    In the lecture's simplified model of an artificial neuron, what happens to its inputs before it produces an output?

    1. A

      The inputs are weighted, summed, and passed through a squashing function

    2. B

      The inputs are classified separately and then discarded before firing

    3. C

      The inputs are multiplied together and copied directly to the output

    4. D

      The inputs are sorted, averaged, and converted into a written rule

    Correct answer
    A

    The 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.

  9. 9

    How does a neural network use its individual neuron-like units to make a classification?

    1. A

      It lets each unit independently inspect the original image and selects whichever unit fires first

    2. B

      It assigns one unit to every possible image and looks up the input in that complete collection

    3. C

      It arranges units in layers so later units compute from earlier outputs and a final output represents class probabilities

    4. D

      It gives each unit a complete hand-written definition of one class and selects the longest definition

    Correct answer
    C

    It 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.

  10. 10

    Where does the lecture say the learned intelligence of a neural network is primarily embodied?

    1. A

      In the order in which examples are stored on the computer

    2. B

      In the values of the network's weights

    3. C

      In the number of pixels in each training image

    4. D

      In a complete list of rules written by a programmer

    Correct answer
    B

    In 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.

  11. 11

    What is the basic idea behind learning by example in the neural-network account?

    1. A

      Change the correct label whenever the network's prediction differs from it

    2. B

      Write a separate rule for every possible input before the network makes predictions

    3. C

      Keep the weights fixed and remove every example the network classifies incorrectly

    4. D

      Use examples to adjust the network's weights so its predictions become more accurate

    Correct answer
    D

    Use 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.

  12. 12

    In the lecture's example of a network misclassifying a digit, what does the loss represent?

    1. A

      A measure of how poorly the model's probability prediction matches the correct answer

    2. B

      A count of how many input pixels were missing from the image

    3. C

      A count of how many classes the network is capable of predicting

    4. D

      A measure of how much memory the network uses to store its weights

    Correct answer
    A

    A 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.

  13. 13

    Why can probability theory help a learning algorithm decide how to change its weights?

    1. A

      It converts every input into a deterministic rule that needs no further adjustment

    2. B

      It replaces the need to compare predictions with the examples' correct labels

    3. C

      It provides a mathematical way to express prediction quality and seek weight changes that reduce loss

    4. D

      It guarantees that every prediction will be correct before the model sees any examples

    Correct answer
    C

    It 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.

  14. 14

    How did the lecture describe a text-to-image system such as DALL·E as producing images?

    1. A

      It translates the text into a list of fixed drawing rules and always produces one deterministic image

    2. B

      It models a probability distribution of images related to the text and samples images from that distribution

    3. C

      It selects a random image without using the meaning of the text as a condition

    4. D

      It searches the internet for the exact image described and returns the first matching file

    Correct answer
    B

    It 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.

  15. 15

    According to the lecture, what qualities should an AI classifier aim for even if it is not perfect?

    1. A

      It should maximize the number of categories and ignore errors between them

    2. B

      It should always produce the same answer and avoid representing uncertainty

    3. C

      It should eliminate the need for examples and guarantee flawless predictions

    4. D

      It should be as accurate as possible and treat cases fairly

    Correct answer
    D

    It 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.

  16. 16

    What does the one-shot learning example reveal about a common limitation of machine learning?

    1. A

      One-shot learning means that a model makes a single prediction and cannot learn from data

    2. B

      People can often recognize a new instance from one example, while typical machine learning may need many examples

    3. C

      A machine can recognize a symbol only if every possible version is identical to the training example

    4. D

      People need millions of examples to recognize a symbol, while machines need only one

    Correct answer
    B

    People 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.

  17. 17

    Why can a positive test result still correspond to a low probability of having a disease?

    1. A

      A positive result cannot be used to update a belief unless the test is perfectly accurate

    2. B

      A test's sensitivity determines the disease's prevalence in the population

    3. C

      A positive result always means that the test has confused the patient's symptoms with another disease

    4. D

      If the disease is rare, false positives among the much larger unaffected group can substantially affect the result

    Correct answer
    D

    If 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.

  18. 18

    In the Zika example, what probability did the lecture give for having Zika after receiving a positive test?

    1. A

      About 50 percent

    2. B

      About 90 percent

    3. C

      About 9 percent

    4. D

      About 97 percent

    Correct answer
    C

    About 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.

  19. 19

    What does probability theory provide when new evidence arrives about something uncertain?

    1. A

      A method for discarding prior information whenever new evidence appears

    2. B

      A guarantee that the original belief will remain unchanged

    3. C

      A way to turn uncertain claims into certain facts without further assumptions

    4. D

      A principled way to update beliefs in light of the new evidence

    Correct answer
    D

    A 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.

  20. 20

    Why is probabilistic analysis useful for studying algorithms?

    1. A

      It replaces the need to reason about an algorithm's inputs and operations

    2. B

      It proves that all algorithms are equally efficient on every possible input

    3. C

      It can help explain algorithm behavior and support ideas for making algorithms faster

    4. D

      It guarantees that every algorithm finishes after the same number of steps

    Correct answer
    C

    It 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.

  21. 21

    In counting theory, what is an experiment?

    1. A

      An action or process that can produce a set of possible outcomes

    2. B

      A rule that assigns a probability to every event in advance

    3. C

      A list containing only the outcomes that satisfy a chosen condition

    4. D

      A calculation that determines how many steps an algorithm takes

    Correct answer
    A

    An 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.

  22. 22

    What does an event represent when counting outcomes?

    1. A

      A condition that determines which outcomes of an experiment are being counted

    2. B

      The complete list of every possible experiment that could be performed

    3. C

      A sequence of steps that must always produce the same outcome

    4. D

      A probability assigned to the experiment before any outcome occurs

    Correct answer
    A

    A 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.

  23. 23

    How many outcomes are possible when rolling one standard six-sided die, and how many are even?

    1. A

      Three outcomes in total, of which one is even

    2. B

      Six outcomes in total, of which two are even

    3. C

      Six outcomes in total, of which three are even

    4. D

      Three outcomes in total, of which two are even

    Correct answer
    C

    Six 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.

  24. 24

    What does the step rule of counting say about a process with two steps?

    1. A

      If the steps occur in order, subtract the second step's choices from the first step's choices

    2. B

      If the number of choices in the second step stays the same after the first step, multiply the two choice counts

    3. C

      If the second step has fewer choices after the first, add the two choice counts

    4. D

      If each step has several choices, count only the choices available in the first step

    Correct answer
    B

    If 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.

  25. 25

    Which condition is necessary to use the multiplication form of the step rule?

    1. A

      The total number of choices must be the same at every step

    2. B

      The choices in different steps must belong to mutually exclusive sets

    3. C

      The number of options at a later step must not depend on which earlier choice was made

    4. D

      Every possible outcome must contain the same object more than once

    Correct answer
    C

    The 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.

  26. 26

    When can the sum rule of counting be used to count outcomes from set A or set B by addition?

    1. A

      When the number of outcomes in A equals the number in B

    2. B

      When choosing an outcome from A changes the choices in B

    3. C

      When the sets are mutually exclusive and share no outcomes

    4. D

      When every outcome belongs to both sets

    Correct answer
    C

    When 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.

  27. 27

    What does it mean for two sets of outcomes to be mutually exclusive?

    1. A

      Every outcome in one set changes the size of the other set

    2. B

      They have no outcome in common

    3. C

      They contain exactly the same outcomes

    4. D

      They have the same number of outcomes

    Correct answer
    B

    They have no outcome in common

    Explanation

    Mutually exclusive sets do not overlap: no single outcome belongs to both sets.

  28. 28

    How does the inclusion-exclusion rule count outcomes that belong to set A or set B?

    1. A

      Add the sizes of A and B, then subtract the size of their overlap

    2. B

      Multiply the sizes of A and B, then subtract the size of their overlap

    3. C

      Add the sizes of A and B, then add the size of their overlap

    4. D

      Subtract the size of B from A, then add the size of their overlap

    Correct answer
    A

    Add 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.

  29. 29

    Why does an 8-bit channel have 256 possible values?

    1. A

      Each of its eight positions can be either 0 or 1, giving 282^828 possible bit patterns

    2. B

      Each of its eight positions can be any of eight values, giving 828^282 possible patterns

    3. C

      The channel has 8 values for each of 32 possible colors, giving 8×328 \times 328×32 patterns

    4. D

      Each of its four pairs of bits can form 16 values, giving 4×164 \times 164×16 patterns

    Correct answer
    A

    Each of its eight positions can be either 0 or 1, giving 282^828 possible bit patterns

    Explanation

    Each bit has two possible values. By the step rule, eight binary choices give 28=2562^8 = 25628=256 possible patterns.

  30. 30

    How many orderings are possible for four distinct letters?

    1. A

      16, because each of the four positions has two possible choices

    2. B

      4, because each letter can appear in only one ordering

    3. C

      10, because the successive choices are 4, then 3, then 2, then 1 added together

    4. D

      24, because the successive choices are 4, then 3, then 2, then 1

    Correct answer
    D

    24, 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=244 \times 3 \times 2 \times 1 = 244×3×2×1=24.

  31. 31

    How many ordered outcomes are possible when rolling two six-sided dice?

    1. A

      6, because the pair is determined by one die's outcome

    2. B

      36, because each of the two rolls has six possible outcomes

    3. C

      18, because the two dice share the same six possible values

    4. D

      12, because each die contributes six possible outcomes

    Correct answer
    B

    36, 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=366 \times 6 = 366×6=36.

  32. 32

    How many colors can one pixel represent if its red, green, and blue channels each have 256 possible values?

    1. A

      256×3256 \times 3256×3, because each channel contributes 256 choices

    2. B

      256+3256 + 3256+3, because the channels add their possible values

    3. C

      32563^ {256}3256, because there are 256 choices among three channels

    4. D

      2563256^32563, because the three channel choices combine independently

    Correct answer
    D

    2563256^32563, 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=2563256 \times 256 \times 256 = 256^3256×256×256=2563 colors.

  33. 33

    Approximately how many colors can a computer represent for a single pixel with three 8-bit color channels?

    1. A

      About 768

    2. B

      About 17 million

    3. C

      About 24

    4. D

      About 256 thousand

    Correct answer
    B

    About 17 million

    Explanation

    Each of the three color channels has 256 possible values, so a pixel has 2563256^32563, or about 17 million, possible colors.

  34. 34

    If each of 12 pixels can take about 17 million colors, how many distinct images can be formed?

    1. A

      About 17,000,000+1217{,}000{,}000 + 1217,000,000+12

    2. B

      About 17,000,0001217{,}000{,}000^{12}17,000,00012

    3. C

      About 17,000,000×1217{,}000{,}000 \times 1217,000,000×12

    4. D

      About 1217,000,00012^{17{,}000{,}000}1217,000,000

    Correct answer
    B

    About 17,000,0001217{,}000{,}000^{12}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,0001217{,}000{,}000^{12}17,000,00012 images.

  35. 35

    Which expression gives the number of images possible with nnn pixels if each pixel can have about 17 million colors?

    1. A

      17,000,000×n17{,}000{,}000 \times n17,000,000×n

    2. B

      17,000,000+n17{,}000{,}000 + n17,000,000+n

    3. C

      n17,000,000n^{17{,}000{,}000}n17,000,000

    4. D

      17,000,000n17{,}000{,}000^n17,000,000n

    Correct answer
    D

    17,000,000n17{,}000{,}000^n17,000,000n

    Explanation

    Each of the nnn pixels has about 17 million choices, so multiplying that number once for each pixel gives 17,000,000n17{,}000{,}000^n17,000,000n.

  36. 36

    What comparison did the lecture use to illustrate the enormous number of images possible from 12 pixels?

    1. A

      The number is on the scale of 107710^{77}1077, close to the estimated number of atoms in the known universe

    2. B

      The number is on the scale of 101210^{12}1012, close to the number of seconds in a year

    3. C

      The number is on the scale of 10810^8108, close to the number of people in a large city

    4. D

      The number is on the scale of 1030010^{300}10300, exactly matching the number of atoms in the known universe

    Correct answer
    A

    The number is on the scale of 107710^{77}1077, close to the estimated number of atoms in the known universe

    Explanation

    The lecture estimates the 12-pixel count at about 5.8×10775.8 \times 10^{77}5.8×1077 and compares it with an estimate of roughly 108010^{80}1080 atoms in the known universe.

  37. 37

    Why can the number of possible combinations of a limited set of objects become extraordinarily large?

    1. A

      Adding more possible arrangements reduces the number of distinct combinations

    2. B

      Each object can be counted only once, regardless of its position or combination

    3. C

      A finite set of objects automatically contains infinitely many individual objects

    4. D

      Combining choices across many steps multiplies the number of possibilities

    Correct answer
    D

    Combining 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.

  38. 38

    How many 6-bit strings start with 01?

    1. A

      16, because the remaining four positions each have two choices

    2. B

      32, because the first position is fixed and five positions remain free

    3. C

      64, because all six positions can be chosen freely

    4. D

      8, because the first two positions are fixed and three positions remain free

    Correct answer
    A

    16, 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=162^4 = 1624=16 strings.

  39. 39

    How many 6-bit strings end with 10?

    1. A

      64, because all six positions can be chosen freely

    2. B

      16, because the first four positions each have two choices

    3. C

      8, because three positions remain free

    4. D

      32, because only the final position is fixed

    Correct answer
    B

    16, 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=162^4 = 1624=16 such strings.

  40. 40

    How many 6-bit strings both start with 01 and end with 10?

    1. A

      4, because the middle two positions each have two choices

    2. B

      16, because four positions remain unrestricted

    3. C

      8, because three positions remain unrestricted

    4. D

      2, because only one middle position can vary

    Correct answer
    A

    4, 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=42^2 = 422=4 strings.

  41. 41

    How many 6-bit strings start with 01 or end with 10?

    1. A

      28, because 16+1616 + 1616+16 counts four overlapping strings twice

    2. B

      36, because the two groups of 16 share four strings

    3. C

      32, because there are 16 strings in each group and the groups never overlap

    4. D

      12, because the four shared strings must be removed from both groups

    Correct answer
    A

    28, because 16+1616 + 1616+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=2816 + 16 - 4 = 2816+16−4=28.

Question 1 of 41
Question 1 of 41

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent