Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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