Docsity

Homework 8 - Statistical Methods and Computing | 22S 105, Assignments of Data Analysis & Statistical Methods

Toggle sidebar
bg1
22S:105, Statistical Methods and Computing
Instructor: Cowles
Spring 2008, Homework 3
Due: Mon., 02/18 in class
Please put your name at the top of your homework, and list the names of any classmates
with whom you collaborated.
For problems requiring SAS, include:
•SAS data step for reading the data file
•SAS procedure to generate output required to answer each part of the question
•only those parts of the SAS output that directly relate to the question b eing asked
1. Refer to the dataset called “winehrt.dat” on the course web page.
(a) Use SAS to produce a scatterplot that shows how national wine consumption
may help to explain heart disease death rates.
(b) Describ e the form of the relationship. Is there a linear pattern? How strong is
the relationship?
(c) Is the direction of the association positive or negative. Explain in simple language
what this says about wine and heart disease. Do you think these data give good
evidence that drinking wine causes a reduction in heart disease deaths? Why?
(d) Use SAS to compute the correlation coefficient rbetween alcohol from wine and
heart disease death rate.
(e) In the data, wine consumption is measured as yearly liters of alcohol from drink-
ing wine, per person. If it had instead been measured in yearly ounces per person,
how would the value of rhave been affected?
2. Investors ask about the relationship between returns on investments in the U.S. and
on investments overseas. The data file “stocks.dat” gives the total returns on U.S.
and overseas common stocks over a 26-year period. (The total return is change in
price plus any dividends paid, converted into U.S. dollars.) Both returns are averages
over many individual stocks. Use SAS to get the numbers required for answering the
following questions.
(a) Make a scatterplot suitable for predicting overseas returns from U.S. returns.
(Use SAS.)
(b) Find the correlation coefficient r. Describ e the relationship between U.S. and
overseas returns in words, using rto make your description more precise.
(c) Find the 5-number summaries for both U.S. and overseas returns. Makeb oxplots
to compare the two distributions. (These will not b e side-by-side on one plot).
(d) Were returns generally higher in the U.S. or overseas during this p eriod? Exp lain
your answer.
1
(e) Were returns more volatile (that is, more variable) in the U.S. or overseas during
this period? Explain your answer.
3. Textbook problems: 3.28, 3.32, 3.36, 3.42, 3.50, 4.16, 4.22, 4.23, 4.34, 4.35
2

Partial preview of the text

Download Homework 8 - Statistical Methods and Computing | 22S 105 and more Assignments Data Analysis & Statistical Methods in PDF only on Docsity!

22S:105, Statistical Methods and Computing

Instructor: Cowles

Spring 2008, Homework 3

Due: Mon., 02/18 in classPlease put your name at the top of your homework, and list the names of any classmateswith whom you collaborated.For problems requiring SAS, include:

•^

SAS data step for reading the data file

-^

SAS procedure to generate output required to answer each part of the question

-^

only those parts of the SAS output that directly relate to the question being asked

  1. Refer to the dataset called “winehrt.dat” on the course web page.

(a) Use SAS to produce a scatterplot that shows how national wine consumption

may help to explain heart disease death rates. (b) Describe the form of the relationship. Is there a linear pattern? How strong is

the relationship? (c) Is the direction of the association positive or negative. Explain in simple language

what this says about wine and heart disease. Do you think these data give goodevidence that drinking wine

causes

a reduction in heart disease deaths? Why?

(d) Use SAS to compute the correlation coefficient

r^

between alcohol from wine and

heart disease death rate. (e) In the data, wine consumption is measured as yearly liters of alcohol from drink-

ing wine, per person. If it had instead been measured in yearly

ounces

per person,

how would the value of

r^

have been affected?

  1. Investors ask about the relationship between returns on investments in the U.S. and

on investments overseas.

The data file “stocks.dat” gives the total returns on U.S.

and overseas common stocks over a 26-year period.

(The total return is change in

price plus any dividends paid, converted into U.S. dollars.) Both returns are averagesover many individual stocks. Use SAS to get the numbers required for answering thefollowing questions.(a) Make a scatterplot suitable for predicting overseas returns from U.S. returns.

(Use SAS.) (b) Find the correlation coefficient

r

.^

Describe the relationship between U.S. and

overseas returns in words, using

r^

to make your description more precise.

(c) Find the 5-number summaries for both U.S. and overseas returns. Make boxplots

to compare the two distributions. (These will not be side-by-side on one plot). (d) Were returns generally higher in the U.S. or overseas during this period? Explain

your answer.

(e) Were returns more volatile (that is, more variable) in the U.S. or overseas during

this period? Explain your answer.

  1. Textbook problems: 3.28, 3.32, 3.36, 3.42, 3.50, 4.16, 4.22, 4.23, 4.34, 4.