Download Exploring Data Relationships: Regression Analysis and Transformations with Fathom and more Assignments Mathematics in PDF only on Docsity!
Math 482/582 Spring 2009
Homework Set 2
Due Date: Monday, MAY 4
th
1. Read Chapter 1&2&11 in Shaughnessy & Chance. Write a one-page reflection on
these chapters. Discuss any connections between these chapters and the work
we’ve been doing in class, as well as any AHA moments or interesting insights
you’ve gained from these readings. In particular in your write up, you should:
a. Connect your work on problem 4 with Chapter 2 in the Shaughnessy and
Chance text.
b. Do you think that the mean of the absolute deviations is a biased
estimator? In order to test this, create a population for which you know the
mean and standard deviation. Create a sampling distribution of the
standard deviation and a sampling distribution of the mean of the absolute
deviations. What do you notice? Discuss!
2. Leonardo da Vinci (Italian, 1452-1519) was a scientist and an artist who
combined these skills to draft extensive instructions for other artists on how to
proportion the human body in painting and sculpture. Three of Leonardo’s
guidelines were
i. Height is equal to the span of outstretched arms
ii. Kneeling height is three-fourths the standing height
iii. The length of the hand is one-ninth the height.
Let’s test Leonardo’s rules!!!
a. Measure your height, arm span, kneeling height, and hand lengths in
centimeters. Also, collect this information from all of your classmates.
Create a data set in Fathom with this information.
b. Create three scatter plots of your data (height versus arm span, height
versus kneeling height, and height versus hand length). For each scatter
plot describe the overall shape of the relationship. Is the pattern linear or
curved? Are there any clusters or outliers?
c. For each scatter plot, describe the trend. Is there a positive or negative
trend?
d. For each scatter plot, describe the strength of the linear relationship. Is the
association strong or is it weak? Does the relationship vary in strength or
does it have constant strength?
e. For each plot, choose Graph|Add Movable Line. Adjust the movable line
so that it fits through each cloud data points. For each plot, choose
Graph|Show Squares. Fathom draws a square constructed from each
point to the line, a square whose side length is equal to the difference
between the actual and predicted values for the point – the residual. Below
the graph, it reports the sum of the areas of all the squares, or the Sum of
the Squared Errors. Adjust the movable line so that the sum of the squares
is as small as you can make it for each plot. Write down the equation of
each of your final lines.
f. The line that minimizes the sum of the squares of the residual is the least-
squares line. Choose Graph|Least-Squares Line to display the least-
squares line, the regression equation and the squared correlation, r
2
. How
Math 482/582 Spring 2009
close are the least-squares lines to the movable lines that you found in (e)?
Write down the equation for each of these lines.
g. For each equation, interpret the slope of the regression line in context.
How does each slope compare to Leonardo’s guidelines?
h. For each of the plots, interpret the coefficient of determination in context.
Then compute the correlation, the square root of r
2
, and interpret it in
context.
i. Do the three relationships described by Leonardo appear to hold? Do they
hold strongly?
j. For each plot, choose Graph|Remove Movable Line. Then choose Make
Residual Plot. A plot of the residuals appears below the main scatter plot.
Each point in the original plot has a corresponding residual plot. The y-
value for the residual point is the difference between the predicted value
and the observed value (its vertical distance from the line). Drag points in
either the original plot or the residual plot to explore the residual plot.
When you are through, restore the original data by undoing or reverting.
Examine each residual plot for any patterns or curvature that might
suggest a linear model is not appropriate. Based on the residual plots, is a
linear model appropriate for these data? Explain.
3. The primary principle of the least squares regression line is that the sum of the
squared vertical distances from the observed points to the line is minimized. Using
your knowledge of differential calculus and your powers of algebraic persuasion to
find the estimated slope,
1
, and the estimated y-intercept,
0
, that minimize the
sum of squares.
4. Work through the following activity:
Exploring Correlation
You will need In this activity you’ll experiment with a set of data to discover properties of the
correlation coefficient.
EXAMINE DATA
1. Open the Fathom document Correlation.ftm. You’ll see a table and a graph.
The graph has a line in it (the least-squares line). Below the graph is the
equation of the line and the square of the correlation coefficient, r
2
2. Drag the points in the plot with your mouse and observe how the least-squares
line moves with the point you are dragging. Experiment with dragging points
close to the line and points far away from the line.
Q1 Which action influences the line more (that is, moves the line more): dragging
a point close to the line toward the line or dragging a point far from the line
toward the line? Explain.
Q2 Which action influences the line the more (that is, moves the line more):
dragging a point close to the line away from the line or dragging a point far
from the line away from the line? Explain.
INVESTIGATE
z-Scores
Now you will drag points in your scatter plot but concentrate on the changes in
the correlation coefficient instead. In each question you will set up a situation to
examine the effect on r
2
Q3 Drag the points in the plot with your mouse so that
they line up in a straight line, slanted upward. What’s
the value of r
2
Q4 Make the points line up slanted downward. Now
what’s the value of r
2
Math 482/582 Spring 2009
56 2: Relationships Between Data Exploring Statistics with Fathom
© 2007 Key Curriculum Press
Q10 What must you do to make a scatter plot where all of the Products are negative
but none of the points in the original graph fall on the line?
Average Product
9. Double-click the collection and go to the Measures panel in the inspector.
Notice there is a measure n that counts the cases.
Exploring Statistics with Fathom 2: Relationships Between Data 57
© 2007 Key Curriculum Press
Exploring Correlation
continued
10. Define a new measure, Average_Product, that is the average product (dividing by
n! 1) of the z -scores.
Click once on
and type
!"#$%&#'($)*+,-.
Press Enter. Then
double-click in the
Formula column to
show the formula
editor.
11. Now select the Product graph and choose
Graph
Plot Value. In the formula editor, type
!"#$%&#'($)*+,-. Close the editor.
Remember, you can
adjust only the points
in the original graph.
(Why is that?)
Q11 Once again, make all the points line up slanting
upward. What is the average of the Products?
Using the original graph, drag points so that you
can fill in this table.
Point Slant r
2
Average Product
Upward
Upward
Upward 0.
Upward 0.
Downward
Downward 0.
Downward !0.
Q12 Generalize: What’s the relationship between r
2
and Average _ Product?
Q13 Describe in words what Average _ Product tells you about the original graph of
the points.
EXPLORE MORE
Suppose your data are a complete population and not a sample. How would the
formulas for the z -scores, Zx and Zy, change? How would the formula for
Average_Product need to change so that the relationship you discovered in Q11 still
holds? Use your Fathom document to find out if you are right.
Math 482/582 Spring 2009
5. THIS PROBLEM IS OPTIONAL: Do the following Fathom Activity:
Exploring Statistics with Fathom 2: Relationships Between Data 69
© 2007 Key Curriculum Press
Nonlinear Transformations—Equilateral Triangles
You will need How does the area of an equilateral triangle relate to the length of a side? You may
know the formula for this relationship, but even if you do, your job in this activity
is to derive it from measurements. Measurements always have some “measurement
error” attached to them, so you will not get an exact rule from your data; however,
you should get a good approximation of that rule.
COLLECT DATA
- Open the Fathom document Triangles.ftm. You will see eight equilateral
triangles on a square grid.
- By counting squares, find the approximate length of a horizontal or vertical side
of each triangle. Enter your values into the case table.
- Find an approximation for the area of each triangle. Do this by counting the
number of squares of the background grid that fall within each triangle. Make
your own rule about what to do with partial squares. Enter these values.
INVESTIGATE
Fitting a Function
You may want to
hide the picture of
the triangles to make
room for graphs. With
the picture selected,
choose ObjectHide
Picture.
- Make a scatter plot in which ( x, y )! ( Side, Area ). Add the least-squares line to
the graph, then add a residual plot by choosing Graph
Make Residual Plot.
Q1 Describe the overall shape of the relationship (linearity, clusters, and influential
points).
Q2 Is fitting a regression line appropriate for the
pattern displayed in the scatter plot? Explain
by inspecting the original plot as well as the
residual plot.
You should notice that your scatter plot is curved,
or nonlinear, and that fitting a regression line is
not appropriate for these data. You’ll use Fathom
to plot a nonlinear function through the points
of the scatter plot. A slider will help you adjust
the parameters of your function.
- Drag a new slider from the shelf and
rename it a.
Exploring Statistics with Fathom 2: Relationships Between Data 69
© 2007 Key Curriculum Press
Nonlinear Transformations—Equilateral Triangles
You will need How does the area of an equilateral triangle relate to the length of a side? You may
know the formula for this relationship, but even if you do, your job in this activity
is to derive it from measurements. Measurements always have some “measurement
error” attached to them, so you will not get an exact rule from your data; however,
you should get a good approximation of that rule.
COLLECT DATA
- Open the Fathom document Triangles.ftm. You will see eight equilateral
triangles on a square grid.
- By counting squares, find the approximate length of a horizontal or vertical side
of each triangle. Enter your values into the case table.
- Find an approximation for the area of each triangle. Do this by counting the
number of squares of the background grid that fall within each triangle. Make
your own rule about what to do with partial squares. Enter these values.
INVESTIGATE
Fitting a Function
You may want to
hide the picture of
the triangles to make
room for graphs. With
the picture selected,
choose Object
Hide
Picture.
- Make a scatter plot in which ( x, y )! ( Side, Area ). Add the least-squares line to
the graph, then add a residual plot by choosing Graph
Make Residual Plot.
Q1 Describe the overall shape of the relationship (linearity, clusters, and influential
points).
Q2 Is fitting a regression line appropriate for the
pattern displayed in the scatter plot? Explain
by inspecting the original plot as well as the
residual plot.
You should notice that your scatter plot is curved,
or nonlinear, and that fitting a regression line is
not appropriate for these data. You’ll use Fathom
to plot a nonlinear function through the points
of the scatter plot. A slider will help you adjust
the parameters of your function.
- Drag a new slider from the shelf and
rename it a.
Math 482/582 Spring 2009
Exploring Statistics with Fathom 2: Relationships Between Data 71
© 2007 Key Curriculum Press
continued
Q7 How does the slope of your line of fit in Q5 compare with the value of your
slider in Q3? How close did you get?
Q8 There is more than one transformed data set in 8a–d for which a line fits well.
Explain.
Powers and Logarithms
- Drag a new slider from the shelf and rename it b.
- Now you’ll define another function. Make a new scatter plot in which ( x, y )!
( Side, Area ). Choose Graph
Plot Function. Enter the expression !""#$%&'.
Again, you can make
a residual plot for a
function plot to check
how well your model
fits the data.
Q9 What happens when you move the slider
for parameter b? Adjust both of the sliders
to get a function that best fits the raw data.
What are the values of your parameters?
- Define new attributes with formulas
()+,%!- and ()"#$%- and plot ln_Area
versus ln_Side.
Q10 Find the equation of the line of best fit,
and write a statement summarizing the
relationship between the length of the
side of an equilateral triangle and its
area. Does this relationship correspond
to the nonlinear function you plotted in step 11?
Q11 How does the slope of your line of fit in Q10 compare with the value of
parameter b? How does the constant of your line of fit in Q10 relate to the value
of parameter a?
EXPLORE MORE
- Use geometric reasoning to derive the relationship that should exist between
Side and Area. How closely does this derived relationship correspond to the one
you observe?
- Scroll down in the Fathom document until you see the Black Crappies
collection. Use what you learned in this activity to find an appropriate
transformation for these data. (Black crappies are a type of fish.)
Exploring Statistics with Fathom 2: Relationships Between Data 71
© 2007 Key Curriculum Press
continued
Q7 How does the slope of your line of fit in Q5 compare with the value of your
slider in Q3? How close did you get?
Q8 There is more than one transformed data set in 8a–d for which a line fits well.
Explain.
Powers and Logarithms
- Drag a new slider from the shelf and rename it b.
- Now you’ll define another function. Make a new scatter plot in which ( x, y )!
( Side, Area ). Choose Graph
Plot Function. Enter the expression !""#$%&'.
Again, you can make
a residual plot for a
function plot to check
how well your model
fits the data.
Q9 What happens when you move the slider
for parameter b? Adjust both of the sliders
to get a function that best fits the raw data.
What are the values of your parameters?
- Define new attributes with formulas
()+,%!- and ()"#$%- and plot ln_Area
versus ln_Side.
Q10 Find the equation of the line of best fit,
and write a statement summarizing the
relationship between the length of the
side of an equilateral triangle and its
area. Does this relationship correspond
to the nonlinear function you plotted in step 11?
Q11 How does the slope of your line of fit in Q10 compare with the value of
parameter b? How does the constant of your line of fit in Q10 relate to the value
of parameter a?
EXPLORE MORE
- Use geometric reasoning to derive the relationship that should exist between
Side and Area. How closely does this derived relationship correspond to the one
you observe?
- Scroll down in the Fathom document until you see the Black Crappies
collection. Use what you learned in this activity to find an appropriate
transformation for these data. (Black crappies are a type of fish.)