Write the appropriate r code

Assignment Help Other Subject
Reference no: EM133556219

Programming for Data Science

1 Project Description
In this assignment there are 4 parts. For each part you should:
• Write the appropriate R code.
• Include comments within the code to explain the algorithm.
• Test the code to ensure its correctness.
• Format and structure the code to maximise its readability.

A report must be submitted containing a cover page, the solutions to each of the four parts.

Project Tasks

"Shmelchemist's Alchemist's Supplies" manufactures and sells components that are used by alchemists in their quest to transmute lead into gold. Shmelchemist's have been operating for the past 47 years and have had many satisfied customers. Recently, they have had a higher than usual number of returned products from customers claiming that their parts are faulty. Shmelchemist's have hired you to investigate the problem.

Shmelchemist's Alchemist's Supplies have provided you with their sales data from 2021, found in the file sales.csv. Each row of the file shows a single customer purchase, the columns are the variables:
• date: the date of the customer purchase.
• partId: the ID number of part that was sold.
• unitsSold: the number of parts purchased by the customer.
• returned: the number of the purchased parts that were later returned due to being faulty.
You have also been provided with the parts description file parts.json. This file contains
• id: the part ID number.
• name: the name of the part.
• ingredients: the elements used to create the part.
They want you to complete the following tasks.

Poor Advice

Shmelchemist's have a suspicion that a previous employee who worked from the start of January to the end of May was providing poor advice to customers, leading to them purchase the wrong parts for their task. This can be identified by examining the distribution of parts sold with and without the employee. To accomplish this, They want you to provide a two row table, where the first row shows the number of purchases of each part ID for the time the employee worked and the second row shows the same, for time they did not work.

Top Ingredients

There is also the thought that the ingredients used this year are poorer quality when compared to previous years and so Shmelchemist's want to know if any ingredient is used more then other ingredients. To observe the prevalence of each ingredient, Shmelchemist's want you to provide a bar chart showing each ingredient and the number of parts they are ingredients of.

Change in Part Quality

Comments from customers suggested that the previous employee was tampering with the part ingredients. Shmelchemist's want you to provide two plots, one showing the set of elements and the proportion of failed parts that they were involved in for the period that the employee worked, and a second plot for the period that they did not work.

Effect on Atomic Mass

An investigation into the previous employee's tampering indicated that the tampering process only effected ingredients with a low atomic number. Shmelchemist's want you to provide two plots each showing the atomic number of the element vs the proportion of failed parts containing the element, the first for the time the previous employee worked and the second for the time they did not work.

Write a PDF report containing your code and all required analysis and results. The report is being marked using the marking criteria, so make sure that each piece of analysis covers all of the criteria.

Reference no: EM133556219

Questions Cloud

What are the components of language : What are the components of language? What role does language play in different cultures? What is nonverbal communication?
Analyze one strategy for the agencys future addressing : Analyze one strategy for the agency's future addressing an ethical or leadership issue. List one improvement the agency needs to make to its service to its prim
How the structure data is defined to properly recreate : You would need to follow how the structure data is defined to properly recreate the tree (identifying where the left and right pointers are).
Behaviors reflect your working theory of sex and gender : What you learned from watching animals and consider how their behaviors reflect your working theory of sex and/or gender.
Write the appropriate r code : COMP7024 Programming for Data Science, Western Sydney University - Write the appropriate R code and comments within the code to explain the algorithm
What type of information can be gleaned by analyzing traffic : What types of information can be gleaned by analyzing traffic patterns in the store? How can you use this information to help improve business operations?
What does the find and replace command in excel do : What does the Find and Replace command in Excel do, and why would you use it? Name the steps in using the command if you wanted to replace all occurrences
Compare the costs of mainframe dumb terminals : Compare the costs of mainframe dumb terminals, network servers, minimally equipped personal computers, and top-of-the-line personal gaming computers.
What were challenges posed by colossal distribution effort : What were the challenges posed by this colossal distribution effort? Why was trust such an important factor in the success of this project?

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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