Lesson 4 Flashcards
1
Q
Finding the mean
A
mean(c(x, y, z))
2
Q
What does na.rm=TRUE does when working out the mean?
A
It ignores the character values within a variable and just calculates the acceptable values.
3
Q
What is a Binomial distribution?
A
A distribution where there are events that can only have a pass/fail outcome e.g. coin toss
4
Q
Calculating the probability of a binomial distribution
A
pbinom(q, size, prob)
5
Q
Calculating the distribution of a repeated binomial experiment
A
rbinom(n, size, prob)
6
Q
Creating a histogram
A
hist(X)