ANL252 Python for Data Analytics:Plagiarism and Collusion

$20 Bonus + 25% OFF

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

ANL252 Python for Data Analytics

Question:

Plagiarism and Collusion 

Plagiarism and collusion are forms of cheating and are not acceptable in any form in a student’s work, including this ECA. Plagiarism and collusion are taking work done by others or work done together with others respectively and passing it off as your own. You can avoid plagiarism by giving appropriate references when you use other people’s ideas, words or pictures (including diagrams). Refer to the APA Manual if you need reminding about quoting and referencing. You can avoid collusion by ensuring that your submission is based on your own individual effort.

The electronic submission of your ECA will be screened by plagiarism detection software. For more information about plagiarism and collusion, you should refer to the Student Handbook (Section 5.2.1.3). You are reminded that SUSS takes a tough stance against plagiarism or collusion. Serious cases will normally result in the student being referred to SUSS’s Student Disciplinary Group. For other cases, significant mark penalties or expulsion from the course will be imposed. 

The text file “ship.csv” contains the data of reported ship damage incidents. They are taken from P. McCullagh and J.A. Nelder and can be found in their book Generalized Linear Models (New York: Chapman & Hall, 1983). The study’s main objective is to investigate how the number of ship damage incidents (variable: Y) is related to the following independent variables: • the aggregate months of service (MS), • ship type (T: 1−5), • year of construction (A: 1 for 1960-64, 2 for 1965-1969, 3 for 1970-1974, and 4 for 1975-1979), • period of operation (P: 1 for 1960-1974, and 2 for 1975-1979). Use JupyterLab to solve the following questions and attach screenshots to demonstrate the output of your Python program to each task

Question 1

Prepare the ship data stored in “ship.csv” for future analytics tasks using functions and methods of NumPy and pandas, respectively.

(a) Design your own Python program to carry out the following tasks:

(i) Read in “ship.csv” as pandas DataFrame called “ship”. Since there are 6 observations where MS and Y are “.” to indicate that they are missing values, declare this character as missing values in your program accordingly.

(ii) Since the variable names of this dataset are rather short and do not really describe the nature of the variables, rename the ship types to “types”, construction years to “c_years”, operation periods to “o_periods”, the aggregated months of service to “s_months”, and the number of incidents to “incidents”.

(iii) For better understanding of the data, compute the average service months and the average number of incidents for the cross-products of every category in types and operation periods. The averages should be rounded to the nearest integers. Store the resulting table to an object named “shipgroup”.

(iv) Replace the missing values in the variable “s_months” and “incidents” by the respective means of the other ships that share the same type AND the same operation period. Add comments to elaborate your Python program as well.

(v) Construct a Python program to save the target variable “incidents” in a pandas DataFrame named “Y”. 

(b) Except for the months of service and number of incidents, all the other variables, including “types”, “c_years”, and “o_periods” are actually nominal and not interval/ratio.

(i) Perform an appropriate data type conversion for these variables so that they can be recognised as categorical variables.

Question 2

In their book Generalized Linear Models (New York: Chapman & Hall, 1983), the authors P. McCullagh and J.A. Nelder used the Poisson regression to study the ship dataset. Poisson regression is a special case of the generalised linear models in which the target variable, or dependent variable, is Poisson distributed. Since one of the main application areas of Poisson regression is to fit linear models on count data, we can therefore use Poisson regression to predict the number of incidents (which are also counts) given some input variables. Mathematically, Poisson regression is a linear model in which the expected value of the target variable Y is calculated by where β0 is the intercept, β1, β2, … , βk are the coefficients of the independent variables X1, X2, …, Xk. E(Y) is the predicted, or expected value of Y, which will be transformed by the natural logarithm function.

(a) Find the corresponding scikit-learn module in the official website of scikit-learn and discuss the corresponding module, estimator, fit and predict functions, as well as their parameters in your own words. 

(b) Analyse the data by fitting a Poisson regression based on the DataFrames X and Y generated in Question 1. Follow the instruction in the official website and report the parameters of the estimated model. Create a Python program to fit a Poisson regression and generate a table or a DataFrame to present the coefficients with the corresponding labels.

The deviance of Y and its expected value E(Y), estimated by the model constructed in c), measures the goodness of fit of the model. The lower the deviance, the better is the model. Below is the equation of how it should be calculated. If Y = 0, the expression log[Y/exp(E(Y))] will be taken as zero. Employ your own Python program to compute D without using the score() function of the scikit-learn package.

ANL252 Python for Data Analytics

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

24 More Pages to Come in This Document. Get access to the complete answer.

MyAssignmenthelp.com is here to reduce homework and coursework pressure of students from Australia, UK and US. Growing wisdom with improved academic assignment help is our prime concern. The brand image of MyAssignmenthelp.com lies in the precise and conceptual answers to questions crafted by our outstanding pool of 3000+ writers. Custom essay help, online assignment help and dissertation writing services along with homework and coursework help is our extended range of offerings under one roof. You can trust us with deadlines; we have years of record to deliver the jobs way before the stipulated time. Seek us even in the middle of night; we are all set to serve your queries 24×7. We value the worth of money and pledge to return more than what is invested by our clients.

More ANL252 ANL252 Python for Data Analytics: Questions & Answers

QAC020N252A User Experience Design

On successful completion of this module students will be able to:1.Demonstrate  knowledge and understanding of UX/UI design principles and techniques and evaluate their usefulness in the design and development of interactive interfaces.2.Identify and evaluate usability, accessibility, professio …

View Answer

Management

I.    Research “livelock” and describe it in your own words with example.    II.    Describe the difference between “livelock” and “deadlock”.            &nbsp …

View Answer

Business Implementation

Hi, I need urgent help on my research implementation part. I am doing a research on urban traffic signal control automation. A sample research paper is attached in the report below. I have done the literature review and selected deep learning to do the implementation. However, the major problem is I …

View Answer

Science

Analyze the data:What are the required output data? …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Jessica Fuller

paediatrician in the USA, and have acquired my degree on Paediatrics from University of Los Angeles.

650 – Completed Orders

Hire Me

Karina Pineda

Ph.D. in Functional Human Biology from Study Functional Human Biology at Otago

800 – Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

33845 Genuine Reviews With a Rating of 4.9/5.

Marketing

Assignment: 4 Pages, Deadline:
4 days

Good job, I am happy with the amazing services and completed work given. Thank you very much for helping me receive a good mark. Will definitely work …

User ID: 2***91 Kuala Lumpur, Malaysia

Management

Thesis: 1 Page, Deadline:
6 days

Thanks to your efforts. it’s well researched and well written your idea. Really appreciate it.

User ID: 6***55 Kuala Lumpur, Canada

Property Law

Assignment: 1.4 Pages, Deadline:
12 hours

It is a good job but there are no references given that I can refer back to it. I hope if the expert read this, please send me the references.

User ID: 8***44 Kuala Lumpur, Malaysia

Healthcare

Programming: 2 Pages, Deadline:
13 days

The writers are very kind and they revise the work for you if you’re not completely satisfied. I would recommend them

User ID: 7***23 Kuala Lumpur, Canada

Finance

Assignment: 1 Page, Deadline:
12 days

Thank you very much for preparing the PowerPoint presentation. I appreciate you going back and doing what I requested. I used a different PowerPoint …

User ID: 8***35 Kuala Lumpur, United States

Database

Assignment: 16 Pages, Deadline:
1 day

Excellent job, I am very surprised! Well done! I,d like to work with this expert in the future!

User ID: 5***90 United Kingdom, Great Britain

English

Essay: 4 Pages, Deadline:
2 days

Excellent and wonderful work. Thank you for the effort and thank you for your cooperation, expert. It is indeed a complete and excellent file, and it …

User ID: 9***3 United Kingdom, Kuwait

Management

Home Work: 1 Page, Deadline:
1 day

Great job. Thanks for the help on this assignment. I got an A. Will use expert again.

User ID: 5***56 San Francisco, United States

Statistics

Assignment: 3 Pages, Deadline:
4 days

Well done, sent detailed explanation of each part from your side, though you missed output of first task got 74 out of 100. Thank you

User ID: 8***63 United Kingdom, Great Britain

Marketing

Assignment: 3 Pages, Deadline:
2 days

The solution is legendary. Thank you, thank you, thank you, and thank you for your cooperation and patience with me, and I am sorry for any actions. …

User ID: 9***3 United Kingdom, Kuwait

Marketing

Programming: 6 Pages, Deadline:
2 days

Thank you so much Professor Thomas Lee. i got 21/30 for my assignment, definitely will ask for you to do the part two

User ID: 2***37 Sydney, Australia

Statistics

Home Work: 1 Page, Deadline:
6 days

Second writer did a great job to complete the task… Thank must go to the second writer and my assignment help group.

User ID: 8***32 Sydney, Sri Lanka

Maths

Home Work: 1 Page, Deadline:
3 days

The assignment was done with complete details showing all the essential steps. I am very happy with the work.

User ID: 4***77 Sydney, United States

Management

Assignment: 0 Pages, Deadline:
5 days

Great work on this assignment and I will definitely be returning for additional help

User ID: 6***02 Sumter, United States

Psychology

Essay: 1 Page, Deadline:
15 hours

Perfect job and a quick job done by the writer. Thanks for the help. Grammar and sentences was great

User ID: 7***54 Sumter, Spain

Assignment

Essay: 8 Pages, Deadline:
13 days

Good work but cloud be better, hope next work is better sadasdasdasdasdasasdsadsadsadas

User ID: 5***28 United Kingdom, Great Britain

HRM

Assignment: 6 Pages, Deadline:
22 days

I am really happy with the result, even though I had to make adjustments, and I got a good grade for it.

User ID: 5***20 United Kingdom, France

Marketing

Home Work: 1 Page, Deadline:
3 days

Thank you so much! taking a time to do Thank you so much! taking a time to do my assignment my assignment

User ID: 6***98 United Kingdom, United States

Assignment

Essay: 4.8 Pages, Deadline:
10 days

A very well presented assignment, all the ideas were very well explained, easy to understand. Definitely will recommend .

User ID: 8***07 United Kingdom, Denmark

Business Law

Home Work: 0.9 Pages, Deadline:
1 day

Thank you, very much ????????????! I’m looking forward to working with you guys again.

User ID: 8***94 United Kingdom, Canada

Marketing

Assignment: 4 Pages, Deadline:
4 days

Good job, I am happy with the amazing services and completed work given. Thank you very much for helping me receive a good mark. Will definitely work …

User ID: 2***91 Kuala Lumpur, Malaysia

Management

Thesis: 1 Page, Deadline:
6 days

Thanks to your efforts. it’s well researched and well written your idea. Really appreciate it.

User ID: 6***55 Kuala Lumpur, Canada

Property Law

Assignment: 1.4 Pages, Deadline:
12 hours

It is a good job but there are no references given that I can refer back to it. I hope if the expert read this, please send me the references.

User ID: 8***44 Kuala Lumpur, Malaysia

Healthcare

Programming: 2 Pages, Deadline:
13 days

The writers are very kind and they revise the work for you if you’re not completely satisfied. I would recommend them

User ID: 7***23 Kuala Lumpur, Canada

Finance

Assignment: 1 Page, Deadline:
12 days

Thank you very much for preparing the PowerPoint presentation. I appreciate you going back and doing what I requested. I used a different PowerPoint …

User ID: 8***35 Kuala Lumpur, United States

Database

Assignment: 16 Pages, Deadline:
1 day

Excellent job, I am very surprised! Well done! I,d like to work with this expert in the future!

User ID: 5***90 United Kingdom, Great Britain

English

Essay: 4 Pages, Deadline:
2 days

Excellent and wonderful work. Thank you for the effort and thank you for your cooperation, expert. It is indeed a complete and excellent file, and it …

User ID: 9***3 United Kingdom, Kuwait

Management

Home Work: 1 Page, Deadline:
1 day

Great job. Thanks for the help on this assignment. I got an A. Will use expert again.

User ID: 5***56 San Francisco, United States

Statistics

Assignment: 3 Pages, Deadline:
4 days

Well done, sent detailed explanation of each part from your side, though you missed output of first task got 74 out of 100. Thank you

User ID: 8***63 United Kingdom, Great Britain

Marketing

Assignment: 3 Pages, Deadline:
2 days

The solution is legendary. Thank you, thank you, thank you, and thank you for your cooperation and patience with me, and I am sorry for any actions. …

User ID: 9***3 United Kingdom, Kuwait

Marketing

Programming: 6 Pages, Deadline:
2 days

Thank you so much Professor Thomas Lee. i got 21/30 for my assignment, definitely will ask for you to do the part two

User ID: 2***37 Sydney, Australia

Statistics

Home Work: 1 Page, Deadline:
6 days

Second writer did a great job to complete the task… Thank must go to the second writer and my assignment help group.

User ID: 8***32 Sydney, Sri Lanka

Maths

Home Work: 1 Page, Deadline:
3 days

The assignment was done with complete details showing all the essential steps. I am very happy with the work.

User ID: 4***77 Sydney, United States

Management

Assignment: 0 Pages, Deadline:
5 days

Great work on this assignment and I will definitely be returning for additional help

User ID: 6***02 Sumter, United States

Psychology

Essay: 1 Page, Deadline:
15 hours

Perfect job and a quick job done by the writer. Thanks for the help. Grammar and sentences was great

User ID: 7***54 Sumter, Spain

Assignment

Essay: 8 Pages, Deadline:
13 days

Good work but cloud be better, hope next work is better sadasdasdasdasdasasdsadsadsadas

User ID: 5***28 United Kingdom, Great Britain

HRM

Assignment: 6 Pages, Deadline:
22 days

I am really happy with the result, even though I had to make adjustments, and I got a good grade for it.

User ID: 5***20 United Kingdom, France

Marketing

Home Work: 1 Page, Deadline:
3 days

Thank you so much! taking a time to do Thank you so much! taking a time to do my assignment my assignment

User ID: 6***98 United Kingdom, United States

Assignment

Essay: 4.8 Pages, Deadline:
10 days

A very well presented assignment, all the ideas were very well explained, easy to understand. Definitely will recommend .

User ID: 8***07 United Kingdom, Denmark

Business Law

Home Work: 0.9 Pages, Deadline:
1 day

Thank you, very much ????????????! I’m looking forward to working with you guys again.

User ID: 8***94 United Kingdom, Canada

Have any Query?

GET HELP WITH YOUR HOMEWORK PAPERS @ 25% OFF

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

Write My Paper Button

WeCreativez WhatsApp Support
We are here to answer your questions. Ask us anything!
👋 Hi, how can I help?
Scroll to Top