library(rio)
library(mosaic)
library(tidyverse)
library(car)Confidence Intervals For Means - Practice
Introduction
In this exercise, you will create several confidence intervals for an unknown population mean, \(\mu\), based on your sample mean, \(\bar x\).
Start by loading the libraries:
Creativity
Create a 95% confidence interval for the true population average creativity percentile (Creativity_Percentile) of Brother Cannon’s students (\(\mu_{\text{creativity}}\)):
creativity <- read_csv('https://github.com/byuistats/Math221D_Course/raw/main/Data/creativity_personality_Clean.csv')
t.test(, conf.level = )$conf.intError in t_test.default(, conf.level = ): argument "x" is missing, with no default
QUESTION: Explain the confidence interval in context of the research question:
ANSWER:
Create a 93% confidence interval for the true population average number of siblings (How_Many_Siblings) of Brother Cannon’s students(\(\mu_{\text{number of siblings}}\)):
QUESTION: Explain the confidence interval in context of the research question:
ANSWER:
Medical Malpractice Lawsuits
Create a 99% Confidence interval for the true population average payout for operating on the wrong patient (Wrong_Patient) in malpractice lawsuits (\(\mu_{\text{payout}}\)):
malpractice <- import("https://github.com/byuistats/Math221D_Course/raw/main/Data/WrongSiteWrongPatient.xlsx")QUESTION: Explain the confidence interval in context of the research question:
ANSWER:
Old Faithful
Create a 90% Confidence Interval for the true population average wait time for an Old Faithful eruption (\(\mu_{\text{wait time}}\)):
old_faithful <- rio::import("https://byuistats.github.io/M221R/Data/old_faithful.xlsx")QUESTION: Explain the confidence interval in context of the research question:
ANSWER: