
THIN-PLATE SMOOTHING SPLINE METHOD 95
Sodas Fries Fruits Sodas Fries Fruits
14 8 15 15 6 0
1 1 8 8 5 15
16 6 10 2 2 10
15 6 0 3 3 6
12 6 5 0 0 5
18 7 0 10 2 15
14 7 0 14 2 7
7 5 20 19 7 3
12 6 7 3 2 20
0 0 5 3 3 15
20 7 2 24 7 0
11 1 10 0 1 25
8 6 10 3 4 15
18 6 14 9 3 10
3 3 12 12 3 7
(a) Using the loess method, regress Fruits on Sodas and Fries. Plot a 3D scatterplot
and the fitted surface. Describe the pattern of eating habits that you see on the graph.
(b) Last week, the nutritionist’s son drank two cans of soda every day, ate French
fries twice in a fast food place, and ate an apple and two oranges. Using the loess
regression, predict the number of fruits