Question

QUESTION: What is the null value and alternative value for steps 6 and 7? Step 6:...

QUESTION: What is the null value and alternative value for steps 6 and 7?

Step 6: Perform hypothesis test for population proportion

It is claimed that 67% of the months have highest monthly maximum temperatures above 19 degrees celsius (EMXT>190). Is there sufficient evidence to suggest that the proportion is 67%? Test this claim using a hypothesis test at 5% level of significance. In order to perform this function, you need to make the appropriate modifications to the provided script. In other words, you should:

Comment lines 94 - 100
Comment lines 106 - 113
Uncomment lines 119 - 125
Replace ???DATASET_NAME??? with manchesterweather
Replace '???VARIABLE_NAME???' with the variable 'EMXT'
Replace ???Xvalue??? with the appropriate value
Replace ???NULL_VALUE??? with the appropriate value for the null hypothesis
Replace '???TEST_TYPE???' with the appropriate alternative hypothesis

Step 7: Perform hypothesis test for population mean

It is claimed that average highest monthly maximum precipitation is 28 millimeters (EMXP=280). Test this claim using a hypothesis test at 1% level of significance. In order to perform this function, you need to make the appropriate modifications to the provided script. In other words, you should:

Uncomment lines 131 - 139
Replace ???DATASET_NAME??? with manchesterweather
Replace '???VARIABLE_NAME???' with the variable 'EMXP'
Replace ???NULL_VALUE??? with the appropriate value for the null hypothesis
Replace '???TEST_TYPE???' with the appropriate alternative hypothesis

##Step 6: Perform hypothesis test for population proportion
##-----------------------------------------------------------------------------
print ('Hypothesis Test - Step 6')
n = manchesterweather[['EMXT']].count()
x = (manchesterweather[['EMXT']] > 190).values.sum()
null_value = 67
alternative = '190'
print (prop_1samp_ttest(x, n, null_value, alternative))
print ('')

##Step 7: Perform hypothesis test for population mean
##-----------------------------------------------------------------------------
print ('Hypothesis Test - Step 7')
n = manchesterweather[['EMXP']].count()
df = n - 1
mean = manchesterweather[['EMXP']].mean()
std_dev = manchesterweather[['EMXP']].std()
null_value = 5
alternative = '280'
print (means_1samp_ttest(mean, std_dev, n, null_value, alternative))
print ('')

0 0
Add a comment Improve this question Transcribed image text
Answer #1

For Step#6, the null and alternative hypothesis are,

H0: p = 0.67

H1: p \ne 0.67

So, the null and alternative value are,

null_value = 0.67
alternative = 'not equal to'

For Step#7, the null and alternative hypothesis are,

H0: \mu = 280

H1: \mu\ne 280

So, the null and alternative value are,

null_value = 28
alternative = 'not equal to'

Add a comment
Know the answer?
Add Answer to:
QUESTION: What is the null value and alternative value for steps 6 and 7? Step 6:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • It is known that 60% of the days have solar power generation in City A solar...

    It is known that 60% of the days have solar power generation in City A solar farm above 43.0 kWh (cityA>43.0). Is there sufficient evidence to suggest that the proportion is less than 60%? Test at 5% level of significance. In order to perform this function, you need to make the appropriate modifications to the provided script. In other words, you should: Comment lines 94 - 100 Comment lines 106 - 113 Uncomment lines 119 - 125 Replace ???DATASET_NAME??? with...

  • It is claimed that average solar power generation in City B solar farm is 56 kWh...

    It is claimed that average solar power generation in City B solar farm is 56 kWh (cityB = 56.0). Test this claim using a hypothesis test at 1% level of significance. In order to perform this function, you need to make the appropriate modifications to the provided script. In other words, you should: Replace ???DATASET_NAME??? with solarkwh Replace '???VARIABLE_NAME???' with the variable 'cityB' Replace ???NULL_VALUE??? with the appropriate value for the null hypothesis Replace '???TEST_TYPE???' with the appropriate alternative hypothesis...

  • Below is what I am working. The first two screen caps are from Codio a program we use online at my school. I have been r...

    Below is what I am working. The first two screen caps are from Codio a program we use online at my school. I have been running my code through Python 3 to make sure it works before submitting my assignments; usually I have little to no issues. But now I am stuck on this one problem. Please help. Step 4: Construct confidence interval for population proportion Construct a 99% confidence interval for the proportion of months with rice production above...

  • Step 1 of 7: State the null and alternative hypotheses. Step 2 of 7: Find the...

    Step 1 of 7: State the null and alternative hypotheses. Step 2 of 7: Find the value of the test statistic. Round your answer to two decimal places. Step 3 of 7: Specify if the test is one-tailed or two-tailed. Step 4 of 7: Determine the P-value of the test statistic. Round your answer to four decimal places. Step 5 of 7: Identify the value of the level of significance. Step 6 of 7: Make the decision to reject or...

  • Given the null and alternative hypotheses below, a level of significance a = 0.1, together with...

    Given the null and alternative hypotheses below, a level of significance a = 0.1, together with the accompanying sample information conduct the appropriate hypothesis test using the p-value approach. What conclusion would be reached concerning the null hypothesis? Ho: P1 = P2 HA:21 #P2 Х The sample information Click on the icon to view the sample information. Determine the value of the test statistic. Sample 1 Sample 2 Z= (Round to three decimal places as needed.) ny = 178 X1...

  • STEP 1 State the null and alternative hypotheses. STEP 2 Find the value of the test...

    STEP 1 State the null and alternative hypotheses. STEP 2 Find the value of the test statistic. STEP 3 Specify if the test is one-tailed or two-tailed STEP 4 Determine the decision rule for rejecting the null hypothesis. (Reject H0 if t > ) STEP 5 Make the decision to reject or fail to reject the null hypothesis The director of research and development is testing a new medicine. She wants to know if there is evidence at the 0.1...

  • 2. Please test hypothesis for a mean or for a proportion. Please state null and alternative...

    2. Please test hypothesis for a mean or for a proportion. Please state null and alternative hypothesis Test Hypotheses of population percent = 33%, sample percent = 31%,n= 120, confidence level = 99%

  • 1. Please test hypothesis for a mean or for a proportion. Please state null and alternative...

    1. Please test hypothesis for a mean or for a proportion. Please state null and alternative hypothesis Hypothesized mean = 125, sample mean = 135, standard deviation = 15; n= 500, confidence level = 95% 2. Test Hypotheses of population percent = 33%, sample percent = 31%,n= 120, confidence level = 99%

  • dentify the null hypothesis, alternative hypothesis, test statistic, P-value, conclusion about the null hypothesis, and final...

    dentify the null hypothesis, alternative hypothesis, test statistic, P-value, conclusion about the null hypothesis, and final conclusion that addresses the original claim. The typical drying time for a new finger nail polish is 4.5 minutes on average. A random sample of 16 painted fingers produced a sample with a mean of 4.1 and a standard deviation of 0.8 minutes. Complete the appropriate test to determine if this drying time is statistically less time. (Use a 4 or 5 step method)

  • Step 1 of 4: State the null and alternative hypotheses for the test. Step 2 of...

    Step 1 of 4: State the null and alternative hypotheses for the test. Step 2 of 4: Compute the value of the test statistic. Round your answer to two decimal places. Step 3 of 4: Determine the decision rule for rejecting the null hypothesis H0H0. Round the numerical portion of your answer to three decimal places. Step 4 of 4: Make the decision for the hypothesis test. Question 9 of 15 Step 1 of 4 01:56:27 An engineer is comparing...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT