\documentclass{article}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amscd}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{eufrak}
%\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}%[section]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}
\begin{document}
\title{Describing Distributions with Numbers\footnote{\copyright 2019 Joseph C Watkins}}
\author{Worksheet 2}
\date{}
\maketitle
\begin{enumerate}
\item The University of Arizona Wildcat varsity football team plays 12 regular season games each year. The data set {\tt uafootball} contains the difference in scores for the five seasons from 2104 to 2019. These data can be downloaded using the {\sf R} command
\begin{verbatim}
uafootball<-read.csv("http://math.arizona.edu/~jwatkins/uafootball.csv")
\end{verbatim}
\begin{enumerate}
\item How many games did the Wildcats win each year?
\item Give 5 number summaries of the run differences.
\item Draw a side-by-side boxplots of the difference in scores for the five seasons ?
\item What is the mean difference in scores for the five seasons ?
\item What is the standard deviation for the difference in scores for the five seasons?
\item Write a short paragraph to describe how the Wildcat football team has performed over the past five seasons. Use some of the summaries in yourr description.
\end{enumerate}
\item The life span in days of 88 wildtype and 99 transgenic mosquitoes\index{mosquito} is given in {\tt mosquitoes.txt}. Download these data using \index{ R command!{\tt read.delim}}
\begin{verbatim}
mosquitoes<-read.csv("http://math.arizona.edu/~jwatkins/mosquitoes.csv")
\end{verbatim}
\begin{enumerate}
\item Give a summary of the life span of both types of mosquitoes. \index{mosquito}
\item Give side by side box plots of the life span of both types of mosquitoes. \index{ R command!{\tt par}}
\item Show the data for each column ({\tt wildtype} and {\tt transgenic}) using {\tt attach(mosquitoes)} and {\tt wildtype<-na.omit(wildtype)}. (This removes the ``not available" data in {\sf R}) Place on one graph the empirical survival functions by using the command {\tt par(new=TRUE)}. Be sure to give them the same limits for the values on each of the axes.
\item Give the Q-Q plot of the two types of mosquitoes. Indicate the median and the first and third quartiles on the graph. (See the {\tt points} command.)
\item One genotype of mosquito lives longer, on average, than the other. Explain how this can be seen in the boxplots, in the survival function and on the Q-Q plot.
\end{enumerate}
\end{enumerate}
\end{document}