Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part C ) Let's try to visualize how well our estimator actually fits the data. To create a histogram of the prints data, one only

Part C) Let's try to visualize how well our estimator actually fits the data.
To create a histogram of the "prints" data, one only needs to type hist(prints). In order to store the results in a way the autograder can interpret, we need
to store this in a variable like this: my_hist_var=hist(prints)
Recall that the y-axis of a histogram can be scaled in many different ways. In order to make it so that the total area of each bar is the proportion of
observations observed in the corresponding bin, we need to add "prob=T"(probability equals true) to the histogram command. This is called a "density
histogram".
Finally, to control the way the bins break on the x-axis, we need to give a sequence of break values. As an example unrelated to this exercise, we might type
my_hist_var = hist (mydata, prob=T, breaks=seq (1,8,1)) to put breaks at 1,2,dots,8.
For this exercise, create a density histogram of the prints values and store it in variable p2.c. hist. Center the bars on the integers 0 through 17 by
making breaks at -0.5,0.5,1.5,dots,17.5. Add the curve of a geometric distribution, with the probability of what you estimated in Part B, ontop of your
histogram. Think about how well this curve approximates the distribution.
[]: p2.c.hist = NA
# your code here
[]: # Hidden Test Cell
Part D) what is the true underlying probability of this distribution? Save your answer as p2.d and round your answer to two decimal places. If it's not possible
to answer this question, save your answer as the string "not possible" .
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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions