Lab 1
Lab 1
Lab 1
Instructions:
• Write your answer to each problem and copy your R code and output!
• After you finish all the problems save it and upload it to Lab dropbox in D2L
as PDF file.
(a) A high school English teacher is interested in the colleges that her AP
students will be attending in the fall. She surveys all students in her AP English
class.
Population
(b) I am curious to know more about the fulfillment of Starbuks employees with
their jobs. I will survey employees from 3 branches in our city regarding their
future endeavors and identify if they plan to leave their job soon or stay longer.
Sample
2. Identify the type of fallacy being described with the following statement.
(a) I ate an uncooked hamburger, and I did not get sick, so it must not be as unsafe
as people claim.
(b) There is no proof of life on other planets, so we are the only ones in the
universe.
No evidence fallacy
(a) Walmart corporate wants to hear feedback from their employees, so they
select 10 stores at random throughout the Georgia state to conduct a survey.
Cluster sample
5. Use the equation below to calculate the circumference (C) of the circle with
radius (r) 3?
C = 2𝜋r
r <- 3
2*pi*r
> r <- 3
> 2*pi*r
[1] 18.84956
6. Write a new efficient R code for each problem below that gives you the same
result.
(b) v2 <- c(5, 10, 15, 20, 25, 30, 35, 40, 45, 50)
seq(5, 50, 5)
Brown Gold
Male 7 6
Female 5 12