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

  • 50Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: AI History

What early achievements led some researchers in the 1950s to believe that artificial intelligence would be easy to develop?

50 questions

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

    Why was Herbert Simon’s prediction that machines would perform any work a human could do within 202020 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 195219521952, but machines had not achieved the claimed breadth of human capability by 197219721972.

  3. 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. 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. 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 199719971997, self-driving cars made progress in 200520052005, and computers played Jeopardy! in 201120112011.

    Explanation

    These milestones illustrated progress across different kinds of tasks rather than a single narrow application.

  6. 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. 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. 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. 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%30\%30% of the brain, illustrating how much processing supports ordinary visual perception.

  10. 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. 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. 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. 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. 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 000 through 999.

  15. 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. 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. 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. 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. 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. 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%90\%90% detection rate for people with Zika and a 7%7\%7% positive rate among people without it, yet reports only a 9%9\%9% probability of disease after a positive result because the disease is rare.

  21. 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. 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. 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. 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. 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. 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. 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. 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. 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 666 possible outcomes, and 333 of them—222, 444, and 666—are even.

    Explanation

    Counting the outcomes in the event means counting only the die faces that meet its defining condition.

  30. 30

    How many ordered outcomes are possible when rolling two standard dice?

    Model answer

    There are 363636 ordered outcomes.

    Explanation

    Each die has 666 possible results, so the two-step count is 6×6=366 \times 6 = 366×6=36.

  31. 31

    State the step rule of counting and the condition required to use it.

    Model answer

    For a process with steps having aaa and bbb choices, the total is a×ba \times ba×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. 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 333 choices for the second, even though the specific remaining letters depend on the first choice.

  33. 33

    State the sum rule of counting and its condition.

    Model answer

    If outcomes come from either set AAA or set BBB, and the sets have no outcomes in common, the total number is ∣A∣+∣B∣|A| + |B|∣A∣+∣B∣.

    Explanation

    The condition prevents an outcome from being counted once in each set.

  34. 34

    What is the inclusion-exclusion rule for counting outcomes in either of two sets?

    Model answer

    The number in AAA or BBB is ∣A∣+∣B∣−∣A∩B∣|A| + |B| - |A \cap B|∣A∣+∣B∣−∣A∩B∣.

    Explanation

    Adding the set sizes counts every outcome in both sets twice, so the overlap must be subtracted once.

  35. 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. 36

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

    Model answer

    It can represent 2563=16,777,216256^3 = 16{,}777{,}2162563=16,777,216 colors, or about 171717 million.

    Explanation

    Choosing a color consists of three steps—choosing red, green, and blue—and each channel has 256256256 options.

  37. 37

    Why can an 888-bit color channel represent 256256256 different values?

    Model answer

    Each bit has 222 possible values, so 888 bits have 28=2562^8 = 25628=256 possible patterns.

    Explanation

    The step rule multiplies the 222 choices available at each of the 888 bit positions.

  38. 38

    How many unique images can be represented using 121212 pixels if each pixel has about 171717 million possible colors?

    Model answer

    About (17,000,000)12(17{,}000{,}000)^{12}(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 121212 pixels.

  39. 39

    How many images can be represented by nnn independently chosen pixels when each pixel has 2563256^32563 possible colors?

    Model answer

    The number is (2563)n(256^3)^n(2563)n, equivalently 2563n256^{3n}2563n.

    Explanation

    Each of the nnn pixels has 2563256^32563 color choices, and the step rule multiplies those choices.

  40. 40

    How does the number of possible 121212-pixel images compare with the estimated number of atoms in the known universe?

    Model answer

    The number of images is about 5.8×10775.8 \times 10^{77}5.8×1077, close to but below the estimated 108010^{80}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. 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. 42

    A valid six-bit string must start with 010101 or end with 101010. How many strings start with 010101?

    Model answer

    There are 24=162^4 = 1624=16 such strings.

    Explanation

    The first two bits are fixed, leaving four positions, each with 222 possible values.

  43. 43

    How many six-bit strings end with 101010?

    Model answer

    There are 24=162^4 = 1624=16 such strings.

    Explanation

    The final two bits are fixed, leaving four freely chosen bits.

  44. 44

    How many six-bit strings both start with 010101 and end with 101010?

    Model answer

    There are 22=42^2 = 422=4 such strings.

    Explanation

    Fixing the first two and last two bits leaves two middle bits, each with 222 choices.

  45. 45

    How many six-bit strings start with 010101 or end with 101010?

    Model answer

    There are 16+16−4=2816 + 16 - 4 = 2816+16−4=28 valid strings.

    Explanation

    The two groups overlap in 444 strings, so inclusion-exclusion subtracts that overlap from the sum.

  46. 46

    How many different orderings are possible for nnn distinct letters?

    Model answer

    There are n!n!n! orderings.

    Explanation

    The positions have nnn, then n−1n-1n−1, continuing down to 111 choices, giving n(n−1)⋯1=n!n(n-1)\cdots1 = n!n(n−1)⋯1=n!.

  47. 47

    How many orderings are possible for four distinct letters such as AAA, BBB, CCC, and DDD?

    Model answer

    There are 4!=244! = 244!=24 orderings.

    Explanation

    There are 444 choices for the first position, then 333, then 222, then 111.

  48. 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 333 options, every pair of choices leaves 222, and so on.

  49. 49

    How many unique orderings are there of the letters in Boba, where the letter BBB appears twice?

    Model answer

    There are 4!2!=12\frac{4!}{2!} = 122!4!​=12 unique orderings.

    Explanation

    The 4!4!4! arrangements treat the two identical BBB letters as different, so each unique ordering is counted 2!2!2! times.

  50. 50

    How many unique orderings are there of the letters in Mississippi?

    Model answer

    There are 11!4!4!2!=34,650\frac{11!}{4!4!2!} = 34{,}6504!4!2!11!​=34,650 unique orderings.

    Explanation

    The word has 111111 letters, with 444 repeated IIIs, 444 repeated SSSs, and 222 repeated PPPs; dividing by the permutations of each repeated group removes duplicate arrangements.

1 of 50
Question 1 of 50

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent