Compute the degree for each student

Assignment Help Basic Statistics
Reference no: EM131407276

Description

In the previous assignment you had to mark a multiple-choice exam for 27 students. marks_assignment1.tsv contains the marks of the students.

a) Read the marks from the marks_assignment1.tsv into a data.frame called marks.

b) Write a function called getDegree, which takes as input a mark and returns the degree the student achieved:
- "1st" for marks higher or equal to 70
- "2:1" for marks higher or equal to 60 and lower than 70
- "2:2" for marks higher or equal to 50 and lower than 60
- "3rd" for marks higher or equal to 40 and lower than 50
- "failed" for marks lower than 40
Hint: One of the many ways to do this would be with if statements.

c) Compute the degree for each student and add a new column to the data.frame called degree.

d) Create a plot and save it to a pdf file called degree_statistics.pdf. The plot comprises of two panels on one row. The first panel is a bar graph with the number of students that obtain each degree and the second panel is a pie chart of the same information. Add titles, labels, a letter to identify each panel ("A" and"B") in the top left corner of the panel (outside the plot). Change the colour of the bar plot to black. Used a different colour for each degree: blue for"1st", green for "2:1", yellow for "2:2" orange for "3rd" f and red for "failed"

329_Figure.jpg

e) Create a histogram with all the marks and save it to a pdf file called marks_hist.pdf. Add titles and labels to the plot.

216_Figure1.jpg

f) Split the marks based on the degree and create a box plot for the marks of each degree (you will have a box plot with 5 boxes, one for each of the degrees). Used a different colour for each degree (same as point d).

Change the y-axis to display horizontally only the levels: "0%", "40%", "50%", "60%", "70%" and "100%". Save this plot into a pdf file called marks_boxplot.pdf.

1407_Figure2.jpg

g) Order the data.frame based on the marks in decreasing order. Split the data.frame based on the degree. Plot using vertical bars the marks of every student that obtained a "first".

Hint: look at the type argument of the plot function.

Using a for loop and lines plot the rest of the marks grouped by degrees. Keep the same colour scheme from task d. Add a legend on the top right corner with the degrees and the colour schemes. Add titles and labels to the plot. On x-axis, plot the student id vertically. Add dotted gray lines delimiting the degrees. Change the y-axis as in task f. Save this plot to a pdf file marks_by_degree.pdf

2389_Figure3.jpg

Attachment:- marks_assignment1.rar

Reference no: EM131407276

Questions Cloud

Organizational architecture point of view : Enron was clearly a company riddled with fraud and excess; its conduct drove it into bankruptcy. The text argues that individual behavior was not at the core of Enron's problems. What were the problems with this corporation ?om an organizational ar..
How you will handle brady vs maryland : Write a professional memorandum outlining and explaining how you will handle this situation. What recommendations would you make?
Define and discuss emotional intelligence and its dimensions : You were recently asked to attend a meeting to discuss the hiring process in your workplace. The human resources director attended and made the following statement: "We obviously want intelligent people, but we also want them to have emotional in..
Infinite number of solutions : a) Find the value of b so that the system has an infinite number of solutions. b) Find the value of b so that the system has  a single solution.
Compute the degree for each student : Compute the degree for each student and add a new column to the data.frame called degree and Split the marks based on the degree and create a box plot for the marks of each degree and Order the data.frame based on the marks in decreasing order. Split..
Make a flowchart of the manufacturing operations : Make a flowchart of the manufacturing operations required to produce this device.
Calculate income before taxes : After paying income taxes of 29%, Kenneth's annual take-home income was $39,050. Calculate his income before taxes. Round to the nearest cent.
Describe how we can balance the protection of the population : SEC315- Explain why this situation is interpreted to be a USA PATRIOT Act case. Describe how we can balance the protection of the population with traditional civil rights in a free and open society.
Determine and interpret the p value for test : From these sample results, and using the 0.10 level of significance, could the politician conclude that the percentage of young working women who are low-paid in her county might be the same as the percentage of young women who are low-paid in the..

Reviews

Write a Review

Basic Statistics Questions & Answers

  Find conclusion that the percent of viewers has increased

A survey last week revealed that out of 400 viewers contacted, 94 watched the news on WBEN. Can we conclude that the percent of viewers has increased? Use the 0.05 significance level.

  A trader is designing his investment portfolio he has

a trader is designing his investment portfolio. he has prepared a list of potential companies in which to purchase

  Calculate the power model and associated unit space values

A coworker is considering the use of a log linear (power) model using weight to estimate the cost of a missile engine.

  Identify the kind of random variable

Classifcation Which of the following are continuous variables and which are discrete?

  Which of the following is the hypothesis test to be

in a recent poll 778 adults were asked to identify their favorite seat when they fly and 492 of them chose a window

  Types of research using t statistic and z-score

Discuss how a t Test can be employed in hypothesis testing by the use of directional vs. nondirectional hypotheses. Discuss types of research where using the t statistic may be an appropriate alternative to using a z-score.

  Introduction to two sample chi-square

Find a peer-reviewed article that provides an example of a study where the researchers utilized a one sample chi-square OR a two sample chi-square. Briefly describe the study and discuss its findings in your own words.

  Inverse weibull distribution

Individual loss amounts (ground up) this year follow an inverse Weibull distribution with  τ= 3 and expected value 1000. Next year you con?fidently expect loss amounts to in?ate by 10% uniformly across the board.

  Clarification of probability problem

Suppose 1.5 percent of the antennas on new Nokia cell phones are defective. For a random sample of 10 antennas, find the probability that:

  It also has proportion unemployed of 1 a sample of 60

city a has a mean family income of 65000 with a standard deviation of 2000. it also has proportion unemployed of .1. a

  Concepts of probability

Ten prominent citizens have been nominated for a community's "Citizen of the Year" award. First- and second-place trophies are awarded to the two persons receiving the highest and second-highest number of votes.

  Binomial distribution-career of your choice

How would you use the binomial distribution in making a business decision during a normal day of work in the career of your choice?

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