20
Modeling Functions -Regression Project

Modeling Functions

  • Upload
    sally

  • View
    134

  • Download
    0

Embed Size (px)

DESCRIPTION

Modeling Functions. -Regression Project. Data Subject Chosen for the Project. The price of:. How it’s set up for the problems. Number of Years since 1959 (x-axis). Dollars converted to cents (y-axis). 1 (1960) 2 (1961) 3 (1962) 4 (1963) 5 (1964) 6 (1965) 7 (1966) 8 (1967) 9 (1968) - PowerPoint PPT Presentation

Citation preview

Page 1: Modeling Functions

Modeling Functions-Regression Project

Page 2: Modeling Functions

Data Subject Chosen for the Project

The price of:

Page 3: Modeling Functions

How it’s set up for the problemsNumber of Years since 1959 (x-axis)

Dollars converted to cents (y-axis)

1 (1960) 2 (1961) 3 (1962) 4 (1963) 5 (1964) 6 (1965) 7 (1966) 8 (1967) 9 (1968) 10 (1969) 11 (1970) 12 (1971) 13 (1972) 14 (1973) 15 (1974) 16 (1975) 17 (1976) 18 (1977) 19 (1978) 20 (1979) 21 (1980) 22 (1981) 23 (1982) 24 (1983) 25 (1984)

45 cents 45 cents 49 cents 45 cents 39 cents 43 cents 43 cents 49 cents 45 cents 51 cents 48 cents 59 cents 49 cents 52 cents 59 cents 95 cents 83 cents 95 cents 84 cents 112 cents 106 cents 142 cents 139 cents 156 cents 143 cents

Page 4: Modeling Functions

TableNumber of Years since 1959 Cost of Oreo's in Cents

1 452 453 494 455 396 437 438 499 45

10 5111 4812 5913 4914 5215 5916 9517 8318 9519 8420 11221 10622 14223 13924 15625 143

Page 5: Modeling Functions

Scatter Plot of Data

0 5 10 15 20 25 300

20

40

60

80

100

120

140

160

180

Cost of Oreo's Per Pound

Number of Years since 1959

Cost

of

Ore

o's

in c

ents

Page 6: Modeling Functions

Linear RegressionEquation:

y=4.58769x+15.4r=.89232

Page 7: Modeling Functions

Linear Regression Plot

0 5 10 15 20 25 300

20

40

60

80

100

120

140

160

180

Cost of Oreo's Per Pound

45Linear (45)

Number of Years since 1959

Cost

of

Ore

o's

in c

ents

Page 8: Modeling Functions

Exponential RegressionEquation:

y=31.8206×1.05935ˆxr=.92078

Page 9: Modeling Functions

Exponential Regression Plot

0 5 10 15 20 25 300

20

40

60

80

100

120

140

160

180

Cost of Oreo's Per Pound

45Exponential (45)

Number of Years since 1959

Cost

of

Ore

o's

in c

ents

Page 10: Modeling Functions

Power RegressionEquation:

y=25.98941×xˆ.41028r=.74278

Page 11: Modeling Functions

Power Regression Plot

0 5 10 15 20 25 300

20

40

60

80

100

120

140

160

180

Cost of Oreo's Per Pound

45Power (45)

Number of Years since 1959

Cost

of

Ore

o's

in c

ents

Page 12: Modeling Functions

Best EquationEXPONENTIAL!

Page 13: Modeling Functions

Inside Predicted Data1965: 45 cents1968: 53 cents1976: 85 cents 1982: 120 cents

Page 14: Modeling Functions

Outside Predicted DataBefore 1960 After 19841922: 4cents1932: 7 cents1948: 17 cents1955: 25 cents

1993: 226 cents1995: 301 cents2004: 426 cents2008: 602 cents

Page 15: Modeling Functions

Inside Comparison Between Predicted and ActualPredicted Actual1965: 45 cents1968: 53 cents1976: 85 cents1982: 120 cents

1965: 43 cents – 2 cent diff.

1968: 45 cents – 8 cent diff.

1976: 43 cents – 42 cent diff.

1982: 139 cents – 19 cent diff.

Page 16: Modeling Functions

Outside Comparison Between Predicted and ActualBefore 1960 Predicted Before 1960 Actual1922: 4 cents1932: 7 cents1948: 17 cents1955: 25 cents

1922: 32 cents – 28 cent diff.

1932: 25 cents – 16 cent diff.

1948: 53 cents – 36 cent diff.

1955: 53 cents – 28 cent diff.

Page 17: Modeling Functions

Outside Comparison Between Predicted and Actual Cont.After 1984 Predicted After 1894 Actual1993: 226 cents1995: 254 cents2004: 426 cents2008: 537 cents

1993: 328 cents – 102 cent diff.

1995: 363 cents – 109 cent diff.

2004: 299 cents – 127 cent diff.

2008: 381 cents – 256 cent diff.

Page 18: Modeling Functions

Write up/Analysis I chose the price of Nabisco’s Oreo cookies because they are one of the most delicious treats

ever and they are milk’s favorite cookie. The first step was choosing the years. I chose 1960-1984 because every year was presented at “The Food Timeline” site. The only problem that was faced while collecting the data was that all the prices were not consistent with the weight of the snack so I had to convert some of the prices to per pound instead of their original weight. Then, I put all the data into my calculator into the STAT edit area and onto the computer in Microsoft Excel for graphing purposes. Then, I made a scatter plot of the collected data using Microsoft Excel. After completing this, I was then ready to find the appropriate equation that best represents the data. To do this, I pressed STAT, CALC, then scrolled down to the “LinReg(ax+b)” and pressed ENTER. I was then given the equation which was presented in slide 5. Then, I used Microsoft Excel to create the graph with the linear regression line on it. Next, I repeated those steps except after the STAT CALC, I pressed ENTER on “ExpReg” instead of the last one. Then I found the exponential equation. I then used Microsoft Excel again to create the graph for the exponential equation using the “trendline” function of the program. Finally, I repeated these steps one last time for the power regression equation. I pressed “PwrReg” and was given the final equation. I then made the last graph using Microsoft Excel and the “trendline” function and added it to this PowerPoint as I did with all three of the other graphs. Then, I moved on to begin the analysis. I first found out that the exponential function was the equation that best represented the data because the correlation coefficient was closest to the value 1.

Page 19: Modeling Functions

Write up/Analysis Cont.(This makes sense with the collected data because the cost of the Oreo’s

seem to increase at an exponential rate rather than a linear or power rate.) With this equation, I was able to predict the values of specific data points inside the years I chose to work with. I chose the years 1965, 1968, 1976, and 1983. I noticed that there was up to a 42 cent difference between the actual and the predicted data. I then chose four points before 1960 and four points after 1984 to predict data outside the years that I chose to work with. With this predicted data, there was up to a 256 cent difference between the actual and the predicted! These large differences is most likely due to the fact that it’s a man made product that is in the market. The price, like gasoline, increases or decreases with demand. If more people want Oreo’s, the price increases and vise versa. It’s also a situational problem. If the economy is bad, then the prices could go down in order to keep the product in the market. This explains why some of the prices didn’t stay consistent with the pattern.

Page 20: Modeling Functions

Resourceshttp://www.foodtimeline.org/foodfaq5.html#o

reopriceshttp://logos.wikia.com/wiki/File:Oreo_logo.pn

ghttp://www.yenra.com/oreo/