Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. To test the hypothesis that the proportion of houses tract bounds with Charles River is larger than 10%, we run the following Python codes

image text in transcribed
2. To test the hypothesis that the proportion of houses tract bounds with Charles River is larger than 10%, we run the following Python codes and the result is shown in the box. from statsmodels.stats.proportion import proportions_ztest count = df.CHAS.value_counts()[1] nobs = len(df.CHAS) value = .1 stat, pval = proportions_ztest(count, nobs, value, alternative=' larger') print('z calculated value:', stat) print('p-value:',pval) z calculated value: -2.7330991118567267 p-value: 0.9968629275350499 What is your decision at 1% level of significance? Explain with specifying all the necessary steps

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

Trigonometry, Enhanced

Authors: Cynthia Y Young

4th Edition

1119321131, 9781119321132

More Books

Students also viewed these Mathematics questions