Question: could you help me understand why this is still being graded wrong. here's the question my answer and the autograded response. Part B ) We
could you help me understand why this is still being graded wrong. here's the question my answer and the autograded response. Part B
We have a theoretical understanding of what hat should be but let's she what that value is when we have actual data.
The cell below loads samples of this random variable. In other words, we opened boxes of chocolates, and recorded the number of chocolates we
had to eat before we found an unfilled chocolate. We only have because we needed a break from the chocolate at that point. Using that data, calculate
hat of your sample. Save your
solution as
phat NA
# your code here
num.success lengthtrialstrials
total.trials lengthtrials
phat num.successtotaltrials
# Print phat
phat
One or more test cases in this cell did not pass.
Instructor hints:
"Checking sample calculations". hat.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
