MATH 315 Homework 04
Due 2025-09-26 by 11:59pm
- Read in the dataset found at the following URL:
https://raw.githubusercontent.com/roualdes/data/refs/heads/master/finches.csv
The dataset is about finches (so I'm told, finches Darwin studied) and has a help file.
-
Pick a numeric variable and print the first 7 observations using the R function
head
. Then print the last 10 observations using the functiontail
. -
Pick a numeric variable and calculate the mean and the median, using the functions
mean
andmedian
. If one is bigger than the other, explain why that is probably the case. -
Justify your answer above with an appropriate histogram.
-
Pick a numeric variable and calculate the standard deviation and the interquartile range, using the functions
sd
andIQR
. -
Pick a numeric variable and calculate a quantile of your choice. Interpret this statistic in the context of the data.
-
Use the
dplyr
functionssummarise
andgroup_by
to calculate the following summary statistics on a numeric variable of your choice grouped by the variableisland
: mean, standard deviation, median, first quartile, third quartile, minimum, and maximum (use the functionsmin
andmax
, respectively). -
Using your calculations in 6., what type of skew, if any, does your numeric variable have for each level of
island
? Why? -
Explain, in the context of these data, two of your summary statistics.
-
Make box plots of your numeric variable split by the variable
island
. -
Use the
dplyr
functionmutate
to create a new ratio variable using any two numeric variables of your choice. -
Make box plots or histograms, whichever you prefer, split by the variable
island
of your new ratio variable. Explain one interesting aspect of this new numeric variable in context of the data. -
Give a real-world example of a Bernoulli distribution where
. What might the probability for your example be? -
Give a real-world example of a Binomial distribution. What sort of probability questions might you ask of this Binomial distribution. Provide two such questions.
-
Give a real-ish-world example of a Normal distirbution. What might the parameters
be?