Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 ( Recall that a regular deck of 5 2 cards consists of 1 3 kinds / denominations , each having 4 suits: ,
Question
Recall that a regular deck of cards consists of kindsdenominations each having suits:
Suppose you take cards from a regular deck of cards, one card at a time, without replacement ie without putting any card back
Part a
What is the probability that the first, the second and the third card drawn are a Queen, a King and an Ace, respectively ie in that order Do NOT round your answer.
Write your answer as
ans
For example, if you think the answer is you should create variable ans as
ans
IMPORTANT: Just typing or answer is not acceptable. Also, do NOT put dot at the end this is a python code, not a sentence in English Your answer will be graded automatically, and the test code expects you to create a Python variable called ans, and the code will test the value of ans.
# your code here
raise NotImplementedError
Check whether the answer is numeric and from the interval since it's a probability"""
assert isinstanceansfloat
assert ans & ans "Sorry, the answer should be a probability, which means a number from
Check whether the answer is correct hidden test
Part b
What is the probability that the first, the second and the third card drawn are Queen, Queen and Ace, in that order? Do NOT round your answer.
Write your answer as
ans
# your code here
raise NotImplementedError
Check whether the answer is numeric and from the interval since it's a probability"""
assert isinstanceansfloat
assert ans & ans "Sorry, the answer should be a probability, which means a number from
Check whether the answer is correct hidden test
Question
Consider two boxes, one containing blue and red marbles, the other contains blue and red marbles. A box is selected at random, and a marble is drawn from it at random.
Part a
What is the probability that the selected marble is blue? Do NOT round your answer.
Create a variable pB that stores the value of this probability. That is write your answer as
pB
# your code here
raise NotImplementedError
Check whether the answer is numeric and from the interval since it's a probability"""
assert isinstancepBfloat
assert pB & pB "Sorry, the answer should be a probability, which means a number from
Check whether the answer is correct hidden test
Part b
If the chosen marble is blue, what is the probability that it was taken from the first box? Do NOT round your answer.
Create a variable pFgivenB which is equal to the desired probability.
pFgivenB
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started