a) Why do you think we choose to measure emissions per person rather than total CO2 emissions for each country?
b) Make a stemplot to display the data.
c) Describe shape, center, spread of the distribution
d) Use the 1.5xIQR rule to determine the possible outliers. List the outliers. Show all work.
e) No visually, using the stemplot you created, what are the additional outlier(s)? Discusses why you chose these outlier(s)
f) In this case, is it better to use the 1.5x IQR Rule, or to visually look at the data to select outliers?
a) Why do you think we choose to measure emissions per person rather than total CO2...
Homework #1-Chapter1&2&4&5 (20pts for turned in on time) 7. (14pts)Carbon Dioxide Emissions. Burning fuels in power plants or motor vehicles emits carbon dioxide (CO2), which contributes to global warming. Table below shows CO2 emissions per person from countries with populations of at least 20 million. Carbon Dioxide emissions (metric tons per person) CO2 Country Ukraine SouthAfrica Italy Poland CO2 Country Country CO2 6.3 1.6 Ethiopia 0.1 Indonesia 7 1.8 Nepal Tanzania 0.1 Brazil 7.8 2 0.1 Egypt 7.8 Congo 2.6...
I need help with part D. 20pts for turned in on time) 8. (12pts)Carbon Dioxide Emissions. Burning fuels in power plants or motor vehicles emits carbon dioxide (CO2), which contributes to global warming. Table below shows Co2 emissions p person from countries with populations of at least 20 million. Carbon Dioxide emissions (metric tons per person) Co2 Ethiopia CO2 0.1I 0.1 Brazil 0.1 Egypt 0.2 Algeria 0.2 Iraq Indonesia 1.6 Ukraine 1.8 SouthAfrica Tanzania 2.6 Poland 2.9 Spain Myanmar Bangladesh...
DATA: # happy2.py import csv def main(): happy_dict = make_happy_dict() print_sorted_dictionary(happy_dict) def make_happy_dict(): filename = "happiness.csv" happy_dict={} with open(filename, 'r') as infile: csv_happy = csv.reader(infile) infile.readline() for line in csv_happy: happy_dict[line[0]] = line[2] return happy_dict def lookup_happiness_by_country(happy_dict): return def print_sorted_dictionary(D): if type(D) != type({}): print("Dictionary not found") return print("Contents of dictionary sorted by key.") print("Key","Value") for key in sorted(D.keys()): print(key, D[key]) main() "happines.csv" Country,Year of Estimate,Happiness Index Afghanistan,2018,2.694303274 Albania,2018,5.004402637 Algeria,2018,5.043086052 Angola,2014,3.794837952 Argentina,2018,5.792796612 Armenia,2018,5.062448502 Australia,2018,7.17699337 Austria,2018,7.396001816 Azerbaijan,2018,5.167995453 Bahrain,2017,6.227320671 Bangladesh,2018,4.499217033...
Will reward thumbs up 100% if works. thank you Pickling with Python code and Pandas code Do both pickling assignment in one Jupyter Notebook file. Python Pickle steps: Download the CSV file. Load into a Pandas DataFrame. Make the column ‘country’ the index. Print the header. Using Python code, pickle the DataFrame and name the file: PythonPickle. Load back the PythonPickle data into the DataFrame. Print the header. (Note both printed headers should match.) Pandas Pickle steps: Download the CSV...
11.38 Building a multiple linear regression model. Let’s now build a model to predict the life-satisfaction score, LSI. (a) Consider a simple linear regression using GINI as the explanatory variable. Run the regression and summarize the results. Be sure to check assumptions. (b) Now consider a model using GINI and LIFE. Run the multiple regression and summarize the results. Again be sure to check assumptions. (c) Now consider a model using GINI, LIFE, and DEMOCRACY. Run the multiple regression and...