Plot a data scatter map for the case against the death

Assignment Help Python Programming
Reference no: EM133388385

Task 1. Exploratory data analysis

This task is to undertake exploratory data analysis on an Australian Covid-19 dataset which is provided with this assignment. This dataset summarises the number of daily cases and deaths from 01/01/2020 to 25/08/2020.

Write a Python program to complete the following tasks.

1. Load the data and extract information to fill the following form

 

Mean value

Max value

Min value

Case

 

 

 

Death

 

 

 

2. Plot a data scatter map for the case against the death. Copy your graph here.

3. Plot a bar chart for the case against the date. Use date as the horizontal axis and case as the vertical axis. Copy your graph here.

4. What observation can you get from two plotted graphs?

Task 2. Regression analysis

Given the above dataset, write a Python program to build regression models. Complete the following tasks.

1. Build a linear regression model to fit the relationship between case and death. Plot the regression model on a graph. Copy the graph here.

2. Given the regression model built from the data, what is the predicted deaths when cases are 1000? Put your analysis here.

3. Build polynomial regression models with different degrees of complexity. Plot graphs for degrees from 2 to 5. Which degree gives the best fit based on quantitative analysis? Put your analysis here.

Task 3. Classification

The provided dataset wine_quality.csv shows the relationship between chemical measures and quality. Build classifiers to classify the quality of wines. Use 50% of the data for training and 50% for testing. Report and compare the testing accuracies from logistic regression and support vector machine. Analyse the classification results.

1. Using different features as input to train logistic regression and support vector machines on the same training set, respectively, and then report the testing accuracy on the testing set in the following table.

Features used

Logistic regression

Support vector machine

fixed acidity

 

 

volatile acidity

 

 

citric acid

 

 

residual sugar

 

 

fixed acidity + volatile acidity + citric acid + residual sugar + chlorides value

 

 

All features

 

 

2. Make an analysis of the above results, and answer the following questions:

a) Which feature is more useful in predicting the quality, fixed acidity, volatile acidity, citric acid, or residual sugar?

b) Is there any relation between the number of features used with the prediction accuracy in this task?

Attachment:- Data analysis.rar

Reference no: EM133388385

Questions Cloud

Describe the three sets of factors mcadam identifies : Name and briefly describe the three sets of factors McAdam identifies, under his Political Process Model, for a social movement or "social insurgency"
What evidence does he uncover in his research : What evidence does he uncover in his research, and how does that help you understand Criminology from a Sociological lens. Tell me what Holly Sklar says about
What ways are local communities : In what ways are local communities (i.e. communities of proximity) less important in the contemporary world, and why? Give examples from your own life
Which branch of government has authority to enact law : In contrast to federal courts, state courts have what kind of jurisdiction? Which branch of government has the authority to enact law?
Plot a data scatter map for the case against the death : Plot a data scatter map for the case against the death and Plot a bar chart for the case against the date. Use date as the horizontal axis and case
How do civilians interact with police : Functionalist: Police departments are institutions in society with the purpose to serve and punish criminal activity. How else do police function in society?
Unsupported accusations-insinuations about your character : You have a big argument where your partner starts to call you terrible names and make all sorts of unsupported accusations and insinuations about your character
Who should be responsible for assigning domain names : Domain Names-who should be responsible for assigning domain names: a private company or the federal government?
Identify core concepts from each of the readings : identify core concepts from each of the readings; and 2) connect the concepts from the different readings to your everyday life. These are formal writing

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd