What is the size of the sample space for two rolls of a four sided die?______
查看答案
In this problem, we're going to calculate some probabilities of dice rolls. Imagine you have two fair four-sided dice (if you've never seen one, here's a picture. The result, a number between 1 and 4, is displayed at the top of the die on each of the 3 visible sides). 'Fair' here means that there is equal probability of rolling any of the four numbers.You can answer the following questions in one of two ways - you can calculate the probability directly, or, if you're having trouble, you can simply write out the entire sample space for the problem. A sample space is defined as a listing of all possible outcomes of a problem, and it can be written in many ways - a tree or a grid are popular options. For example, here is a diagram of the sample space for 3 coin tosses.Some vocabulary before we begin: an event is a subset of the sample space, or, a collection of possible outcomes. A probability function assigns an event, A, a probability P(A) that represents the likelihood of event A occuring.As an example, let's say we flip a coin. Define the event H as the event that the coin comes up heads. We can assign the probability P(H) = 1/2; the likelihood that event H occurs.The following problems will ask for the probability that a given event occurs.What is the size of the sample space for one roll of a four sided die?______
Which of the following would be the best x-axis label for the graph?
A. Time-steps
B. Percentage Cleaned
C. Aspect Ratio
D. Number of Robots
E. Distance Travelled
Examine showPlot2 in ps2.py, which takes in the same parameters as showPlot1. Your job is to examine the code and figure out what the plot produced by the function tells you. Try calling showPlot2 with appropriate arguments to produce a few plots. Then, answer the following 3 questions.Which of the following would be the best title for the graph?
A. Percentage Of Room That A Robot Cleans
B. Time It Takes Two Robots To Clean 80% Of Variously Sized Rooms
C. Time It Takes Two Robots To Clean 80% Of Variously Shaped Rooms
D. Time It Takes 1 - 10 Robots To Clean 80% Of A Room
E. Percentage Of Variously Sized Rooms That A Robot Cleans
F. Percentage Of Variously Shaped Rooms That A Robot Cleans
Which of the following would be the best y-axis label for the graph?
A. Time-steps
B. Percentage Cleaned
C. Aspect Ratio
D. Number of Robots
E. Distance Travelled