a part, share, or number considered in comparative relation to a whole
proportion
Who was the first president of the USA?
George Washington
rep()
repeats a word as many times as you ask
When you run the code
food_clean<-rename(food, Carrots=orange, Peas = green)
What variable names are being changed?
orange & green
The generic function to calculate the mean is...mean(~variable, data=data set name)
True or False
True
Any proportion or share in relation to a whole or a rate, number, or amount in each hundred
Percentage
What color of flame is the hottest?
Blue
c()
combines data sets.
What is the following line of code doing?
atu_cleaner <- mutate(atu_cleaner, gender =
recode(gender,
"01"="Male",
"02" = "Female"))
Renaming "01" and "02" to "Male" and "Female"
Measures of central tendency could also be known as measure of...
Center
Define an event
An event is an outcome or defined collection of outcomes of a random experiment.
What is the longest river in the United States?
The Missouri River
randomly samples from a data set
sample()
What code do we use to change a data set?
mutate()
What kind of table will this code create...tally(~why | when , data=food)?
Two-way table
You are sampling _______ when you select an observation from a population and then return it to the population, after it has been recorded and before the next unit is drawn.
With replacement
What animal appears on the California Flag?
The grizzly bear
set.seed()
makes it so everyone gets the same results when they sample.
How many people does it take to change a light bulb?
1
What is one of the codes needed to solve this questions?...A bowl is filled with 20 bags of M&M’s, 30 Snickers Bars, and 50 packages of Reese’s Peanut Butter Cups. Perform 500 simulations to answer the questions what is the probability that randomly selecting two items from the jar will result in two packages of Reese’s Peanut Butter Cups?
A)chocolate_draw<-do(500)*sample(chocolate, size=2, replace=FALSE)
B)chocolate_draw<-do(5)*sample(chocolate, size=1, replace=FALSE)
C)chocolate_draw<-do(500)*sample(chocolate, size=2, replace=TRUE)
D)chocolate_draw<-do(50)*sample(chocolate, size=3, replace=FALSE)
A)chocolate_draw<-do(500)*sample(chocolate, size=2, replace=FALSE)
Compound Probabilities
Compound probability is a mathematical term relating to the likeliness of two independent events occurring
How many items are in a "bakers dozen"?
13
How old is Mr. Ruiz?
31
What changes on Elsa when she sings Let It Go?
Her dress
The median of the lower half of the data. 25% of the observations fall below this point.
First quartile (Q1)