Answered step by step
Verified Expert Solution
Link Copied!

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(p) should be, but let's she what that value is when we have actual data.
The cell below loads 10 samples of this random variable. In other words, we opened 10 boxes of chocolates, and recorded the number of chocolates we
had to eat before we found an unfilled chocolate. We only have 10, because we needed a break from the chocolate at that point. Using that data, calculate
hat(p) of your sample. Save your
solution as p
p.hat = NA
# your code here
num.success - length(trials[trials ==0])
total.trials - length(trials)
p.hat - num.success/total.trials
# Print p-hat
p.hat
0.3
One or more test cases in this cell did not pass.
Instructor hints:
1. "Checking sample calculations". hat.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Neo4j Data Modeling

Authors: Steve Hoberman ,David Fauth

1st Edition

1634621913, 978-1634621915

More Books

Students also viewed these Databases questions