Laboratory 1.pdf

# Laboratory 1.pdf - Laboratory#1(60 points(1 The following...

• 5

This preview shows page 1 - 3 out of 5 pages.

Laboratory #1 (60 points) (1) The following are the ages of each U.S. president when they were sworn into office: 57, 61, 57, 57, 58, 57, 61, 54, 68, 51, 49, 64, 50, 48, 65, 52, 56, 46, 54, 49, 51, 47, 55, 55, 54, 42, 51, 56, 55, 51, 54, 51, 60, 62, 43, 55, 56, 61, 52, 69, 64, 46, 54, 47, 70 Use the c() function to create a list called “ages” that contains the above ages. You can cut and paste the ages from above. ages <-c(57,61,57,57,58,57,61,54,68,51,49,64,50,48,65,52,56,46,54,49,51,47,55,55, 54,42,51,56,55,51,54,51,60,62,43,55,56,61,52,69,64,46,54,47,70) Create a frequency table called “ages.table” using the table() function. This function will calculate the frequency of each age (i.e., how many presidents were 42, 43, 44, etc.). ages.table<-table(ages) Recall your table to see the result: ages.table

Subscribe to view the full document.

(1a) Copy and paste your frequency table below (5 points). (1b) The most common value in a set of data is known as the mode. Using your frequency table above, what age(s) is(are) the mode (5 points)? 51 and 54 years old
(1c) At what age was the youngest president? This is known as the minimum of the data (5 points). 42 years old (1d) At what age was the oldest president? This is known as the maximum of the data (5 points).
You've reached the end of this preview.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern