Docsity

Statistical Analysis of Hotdogs Data: Descriptive Statistics and Graphical Representations, Assignments of Data Analysis & Statistical Methods

Toggle sidebar
bg1
22S:105, Statistical Methods and Computing
Instructor: Cowles
Spring 2008, Homework 2
Due: Fri., 02/08 in class
Please put your name at the top of your homework, and list the names of any classmates
with whom you collaborated.
1. Go to the datasets section of the course web page. Read the description ā€œhotdogs.infoā€
and download the file ā€œhotdogs.dat.ā€ Answer the following questions, using SAS to
produce the the required descriptive plots, tables, and/or summary numbers.
Note that hotdog type is a character variable. An example data step that would work
to read in this file is:
data wieners ;
infile ’c:\temp\hotdogs.dat’ ;
input type $ calories sodium ;
run ;
(a) What type of variable is hotdog type (by a statistician’s definition, not just what
SAS calls a character variable)?
(b) What would be an appropriate table or set of sum mary measures to describe this
variable? Produce it and turn in a printout.
(c) What proportion of the hotdog brands in the study were p oultry?
(d) Name the two kinds of plots that we have studied that would be appropriate to
display the distribution of the hotdog type variable.
(e) Produce either one of the graphs that you listed in the previous question. Turn
in a printout.
(f) What type of variable is sodium?
(g) Use ā€œproc univariateā€ to produce a stemplot and a boxplot of sodium. (For now,
we will consider all the hotdog types together. In future homework, we’ll consider
them separately.) Turn in a printout of the parts of your proc univariate output
used to answer the following questions (include the two plots).
i. Is the distribution of sodium roughly symmetric?
ii. Are there any outliers (in the general sense of points lying far away from the
main group of points)?
(h) What is the 5-number summary of sodium? You may either print it from SAS
or just copy if off the screen.
(i) What is the interquartile range (IQR)?
(j) Refer to the paragraph after textbook problem 2.25 for the 1.5ƗI QR criterion
for outliers. Based on that criterion, wh at is the smallest value of sodium that
would qualify as an outlier in the high direction? Are there any high outliers?
1
(k) What is the largest value of sodium that would qualify as an outlier in the low
direction? Are there any low outliers?
(l) Is sodium a variable for which it would also be reasonable to report the mean
and standard deviation? If s o, what are they?
(m) If sodium is measured in units called milliequivalents, what are the units for the
mean and the standard deviation?
2. Without using a computer, find first and third quartiles of these values:
27 56 82 108 29 37 56 81 94
3. The data from Table 2.4 in the textbook are on the course web page as ā€œathsal2005.dat.ā€
Download this dataset. Use SAS to pro duce a graph and a numeric summary. Th en
write a brief (2 or 3 sentence) description of the important features of the distribution.
4. Textbook problems: 2.3, 2.11, 2.46
2

Partial preview of the text

Download Statistical Analysis of Hotdogs Data: Descriptive Statistics and Graphical Representations and more Assignments Data Analysis & Statistical Methods in PDF only on Docsity!

22S:105, Statistical Methods and Computing

Instructor: Cowles

Spring 2008, Homework 2

Due: Fri., 02/08 in classPlease put your name at the top of your homework, and list the names of any classmateswith whom you collaborated.

  1. Go to the datasets section of the course web page. Read the description ā€œhotdogs.infoā€

and download the file ā€œhotdogs.dat.ā€ Answer the following questions, using SAS toproduce the the required descriptive plots, tables, and/or summary numbers.Note that hotdog type is a character variable. An example data step that would workto read in this file is:

data wieners ;infile ’c:\temp\hotdogs.dat’ ;input type $ calories sodium ;run ; (a) What type of variable is hotdog type (by a statistician’s definition, not just what

SAS calls a character variable)? (b) What would be an appropriate table or set of summary measures to describe this

variable? Produce it and turn in a printout. (c) What proportion of the hotdog brands in the study were poultry?(d) Name the two kinds of plots that we have studied that would be appropriate to

display the distribution of the hotdog type variable. (e) Produce either one of the graphs that you listed in the previous question. Turn

in a printout. (f) What type of variable is

sodium

(g) Use ā€œproc univariateā€ to produce a stemplot and a boxplot of

sodium

. (For now,

we will consider all the hotdog types together. In future homework, we’ll considerthem separately.) Turn in a printout of the parts of your proc univariate outputused to answer the following questions (include the two plots). i. Is the distribution of

sodium

roughly symmetric?

ii. Are there any outliers (in the general sense of points lying far away from the

main group of points)?

(h) What is the 5-number summary of

sodium

? You may either print it from SAS

or just copy if off the screen. (i) What is the interquartile range (IQR)?(j) Refer to the paragraph after textbook problem 2.25 for the 1

.^5

Ɨ

IQR

criterion

for outliers. Based on that criterion, what is the smallest value of sodium thatwould qualify as an outlier in the high direction? Are there any high outliers?

(k) What is the largest value of sodium that would qualify as an outlier in the low

direction? Are there any low outliers? (l) Is

sodium

a variable for which it would also be reasonable to report the mean

and standard deviation? If so, what are they? (m) If sodium is measured in units called milliequivalents, what are the units for the

mean and the standard deviation?

  1. Without using a computer, find first and third quartiles of these values:
  1. The data from Table 2.4 in the textbook are on the course web page as ā€œathsal2005.dat.ā€

Download this dataset. Use SAS to produce a graph and a numeric summary. Thenwrite a brief (2 or 3 sentence) description of the important features of the distribution.

  1. Textbook problems: 2.3, 2.11, 2.