Practical 7
Practical 7
(Please ensure you show your work to your tutor once completed as each practical is 3
marks.)
Part 1 – Download the Jupyter notebook for Module 7 and run the notebook
Part 2
Download the Jupyter Notebook Template for Prac 7 from LearnJCU. Complete the template
& run the code. Refer to Module 7 Lecture Jupyter Notebook for help
Complete the questions in Part 3 as you work on the Prac 7 template
Part 3
Scenario 1
We want to find out the association between electricity use per person (relectricperperson (x))
and oil use per person (oilperperson (y))
Step 1: hypothesis
Null hypothesis (Ho):
There is more person who use electricity than oil
Or there is a negative correlation between electricity use per person and oil use per person.
p: 1.00e-05 = -2.28
since p is less than 0.05, will indicate that the correlation will hold for larger population.
p: 0.729
As p is greater than 0.05, will indicate that the correlation will hold for smaller population.
Warnings:
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.
3: Regression line – if valid
oilperperson = b + m(co2emissions)
oilperperson = 1.368e+(1.08e=09) * co2emissions
3: Regression line
oilperperson = b + m(co2emissions)
oilperperson = -55.0934+1209.1409(co2emissions)