Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please, I need help with this assignment in R studio. It will be very helpful if you can explain it as well. Details Included with

Please, I need help with this assignment in R studio.

It will be very helpful if you can explain it as well.

Details

Included with this assignment is a CSV file that contains Litter Index data for every block in Philadelphia during the 2017-2018 period. The columns used for this assignment are the HUNDRED_BLOCK_SCORE and YEAR columns, which contains the score (1 through 4) for each city block.

Provided below is an R program that contains statements that load the csv file into a data frame and statements that sample the data to get point estimates.

library(tidyverse)

#Load the data

litter_data <- read.csv("Litter_Index_Blocks.csv")

#Separate by years

data2017 <- subset(litter_data, YEAR==2017) data2018 <- subset(litter_data, YEAR==2018)

#Round the scores

data2017 <- round(data2017$HUNDRED_BLOCK_SCORE) data2018 <- round(data2018$HUNDRED_BLOCK_SCORE)

#Set sample size sample_size = 1

#Sample the Data Set

sample_2017 <- sample(data2017, sample_size) sample_2018 <- sample(data2018, sample_size)

#Get Point Estimates

point_estimate_2017 <- sum(sample_2017 == 2)/length(sample_2017) point_estimate_2018 <- sum(sample_2018 == 4)/length(sample_2018)

Report Questions

2017 Data

Claim: 25% of city blocks have a litter index score of 2

  1. Construct a 95% confidence interval for HUNDRED_BLOCK_SCORE

Be sure to pick an appropriately sized sample and verify the sample can be approximated with a normal distribution.

Be sure to clearly describe the steps taken in constructing this confidence interval.

2. Conduct a hypothesis test for the claim above with a 5% significance level.

Be sure to pick an appropriately sized sample.

Be sure to clearly describe the procedures taken in completing the four-step process of conducting a hypothesis test.

2018 Data

Claim: 3% of city blocks have a litter index score of 4

3. Construct a 99% confidence interval for HUNDRED_BLOCK_SCORE

Be sure to pick an appropriately sized sample and verify the sample can be approximated with a normal distribution.

Be sure to clearly describe the steps taken in constructing this confidence interval.

4. Conduct a hypothesis test for the claim above with a 5% significance level.

Be sure to pick an appropriately sized sample.

Be sure to clearly describe the procedures taken in completing the four-step process of conducting a hypothesis test.

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

From Fourier Analysis To Wavelets

Authors: Jonas Gomes, Luiz Velho

1st Edition

3319220756, 9783319220758

More Books

Students also viewed these Mathematics questions

Question

True or False: The throws clause causes an exception to be thrown.

Answered: 1 week ago

Question

What research background do you have?

Answered: 1 week ago

Question

2 What can organisations do to improve employee utilisation?

Answered: 1 week ago

Question

4 When is it a good idea to use the external supply of labour?

Answered: 1 week ago

Question

3. What would you do now if you were Mel Fisher?

Answered: 1 week ago