Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started