Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#The data We consider real estate data from the city of Ames, Iowa. The details of every real estate transaction in Ames is recorded by

#The data

We consider real estate data from the city of Ames, Iowa. The details of every real estate transaction in Ames is recorded by the City Assessor's office. Our particular focus for this lab will be all residential home sales in Ames between 2006 and 2010. This collection represents our population of interest. In this lab we would like to learn about these home sales by taking smaller samples from the full population. Let's load the data. rm(list=ls())

download.file("http://www.openintro.org/stat/data/ames.RData", destfile = "ames.RData") load("ames.RData")

# Questions # Now you'll try to estimate the mean home price. Take a random sample of size 50 from price . Using this sample, what is your best point estimate of the population mean?

# .Since you have access to the population, simulate the sampling distribution for $\bar{x}_{price}$ price (sampling mean of price ) by taking 5000 samples from the population of size 50 and computing 5000 sample means. Store these means in a vector called sample_means50 . Plot the data, then describe the shape of this sampling distribution. Based on this sampling distribution, what would you guess the mean home price of the population to be?

# Finally, calculate and report the population mean. Change your sample size from 50 to 150, then compute the sampling distribution using the same method as above, and store these means in a new vector called sample_means150 . Describe the shape of this sampling distribution, and compare it to the sampling distribution for a sample size of 50. Based on this sampling distribution, what would you guess to be the mean sale price of homes in Ames? Of the sampling distributions from 2 and 3, which has a smaller spread? If we're concerned with making estimates that are more often close to the true value, would we prefer a distribution with a large or small spread?

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

Applied Calculus

Authors: Stefan Waner, Steven Costenoble

6th Edition

1285415310, 9781285415314

More Books

Students also viewed these Mathematics questions

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago