Question

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

Provided code:

print ('Hypothesis Test - Step 7')
n = ???DATASET_NAME???[['???VARIABLE_NAME???']].count()
df = n - 1
mean = ???DATASET_NAME???[['???VARIABLE_NAME???']].mean()
std_dev = ???DATASET_NAME???[['???VARIABLE_NAME???']].std()
null_value = ???NULL_VALUE???
alternative = '???TEST_TYPE???'
print (means_1samp_ttest(mean, std_dev, n, null_value, alternative))
print ('')
My code:

print ('Hypothesis Test - Step 7')
n = solarkwh[['cityB']].count()
df = n - 1
mean = solarkwh[['cityB']].mean()
std_dev = solarkwh[['cityB']].std()
null_value = 0.01
alternative = 'larger'
print (means_1samp_ttest(mean, std_dev, n, null_value, alternative))
print ('')

I am having trouble understanding exactly what they want me to use for the null_value and the alternative

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

The claim is that average solar power generation in City B solar farm is 56. So, the hypotheses are

H0: average solar power generation = 56

H1: average solar power generation \ne 56

You need to modify the script as below.

print ('Hypothesis Test - Step 7')
n = solarkwh[['cityB']].count()
df = n - 1
mean = solarkwh[['cityB']].mean()
std_dev = solarkwh[['cityB']].std()
null_value = 56
alternative = 'not-equal'
print (means_1samp_ttest(mean, std_dev, n, null_value, alternative))
print ('')

Add a comment
Know the answer?
Add Answer to:
It is claimed that average solar power generation in City B solar farm is 56 kWh...
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...

  • 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....

  • 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...

  • Use the link in the Jupyter Notebook activity to access your Python script. Once you have...

    Use the link in the Jupyter Notebook activity to access your Python script. Once you have made your calculations, complete this discussion. The script will output answers to the questions given below. You must attach your Python script output as an HTML file and respond to the questions below. In this discussion, you will apply the statistical concepts and techniques covered in this week's reading about hypothesis testing for the difference between two population proportions. In the previous week’s discussion,...

  • Assignment Predator / Prey Objectives Reading from and writing to text files Implementing mathematical formulas in...

    Assignment Predator / Prey Objectives Reading from and writing to text files Implementing mathematical formulas in C++ Implementing classes Using vectors Using command line arguments Modifying previously written code Tasks For this project, you will implement a simulation for predicting the future populations for a group of animals that we’ll call prey and their predators. Given the rate at which prey births exceed natural deaths, the rate of predation, the rate at which predator deaths exceeds births without a food...

  • How to write the insert, search, and remove functions for this hash table program? I'm stuck......

    How to write the insert, search, and remove functions for this hash table program? I'm stuck... This program is written in C++ Hash Tables Hash Table Header File Copy and paste the following code into a header file named HashTable.h Please do not alter this file in any way or you may not receive credit for this lab For this lab, you will implement each of the hash table functions whose prototypes are in HashTable.h. Write these functions in a...

  • 10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated...

    10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...

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
ADVERTISEMENT