MATH 315 Quiz 03

Due 2025-12-08 by 12:59pm

  1. Using the data set carnviora, predict longevity (LY, measured in months) using age of independence (AI, measured in days).

    For this quiz, run the following code yourself. On the final exam, the code and its output will be included for you.
    library(ggplot2)
    suppressMessages(library(dplyr))
    carnivora <- read.csv("https://raw.githubusercontent.com/roualdes/data/refs/heads/master/carnivora.csv")
    ggplot(carnivora, aes(AI, LY)) +
      geom_point() +
      geom_smooth(method = "lm", se = FALSE) +
      theme_minimal()
    fit <- lm(LY ~ AI, data = carnivora)
    summary(fit)
    predict(fit, newdata = data.frame(AI = 600))
    

    a. Interpret the intercept in context of the data.

    b. Does the intercept make sense in this context?

    c. Write a hypothesis test that appropriately matches the output above for the intercept.

    d. Make a conclusion of the hypothesis test for the intercept.

    e. Interpret in context of the data, the hypothesis test for the intercept.

    f. Interpret the slope in context of the data.

    g. Write a hypothesis test that appropriately matches the output above for the slope.

    h. Make a conclusion of the hypothesis test for the slope.

    i. Interpret in context of the data, the hypothesis test for the slope.

    j. Interpret the prediction in context of the data.

    k. Without any other knowledge about the order Carnivora, is it wise to make predictions for AI (age of independence) greater than 1,500? Why or why not? Use keywords from class.