View the step-by-step solution to:

Create a plot like the following (you may want to write a function to do it). It is a plot of the sample mean of a Poisson (for lambda=10) as the...

1. Create a plot like the following (you may want to write a function to do it). It is a plot of the sample mean of a Poisson (for lambda=10) as the sample size goes from 10 to 1000. In other words, draw a single sample of size 10 from a Poisson with lambda=10 and take its sample mean, then do this for a sample of size 20, ... all the way to a sample of size 1000. Plot all of these results using a solid circle, connect the points with a line, and draw a line at the population mean (lambda=10) in red and label the axes. In addition, put a title on this graph inside the frame of the graph.

2. Create a pdf plot (you might want to use a function) to display all of the point characters (i.e., pch=1 to pch=25). Label each of them with their number. The way I would do this is by using plot() to set up my axes (set the type to be a blank plot, and use xlim and ylim to set the axis limits), then I would use points() to put the different pch’s on the plot, and then text() to label them.


3. Read in the data set “hw7.dat”. In a pdf file, using a full page, plot a histogram of each variable, i.e, the top third of the page will be a histogram of x1, the middle third, a histogram of x2, and the bottom third, a histogram of x3. Use the same axis limits for all three plots. Label all of the y axes but only the x-axis of the bottom plot. Title each plot. Use a different color of diagonal lines to color in the bars of each histogram. Adjust the number of bins in the histogram, so that it reveals the shape of the data.

4. In a win.metafile, plot x1 versus x2, x1 versus x3, x2 versus x3, and (x1+x2) versus x3, arranged in 2 rows and 2 columns. Label everything and make it aesthetically pleasing.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question