Presentation is loading. Please wait.

Presentation is loading. Please wait.

Functions and Mathematical Models. Used to compute the values on a variable [Y] given values on other variables [X 1, X 2...]

Similar presentations


Presentation on theme: "Functions and Mathematical Models. Used to compute the values on a variable [Y] given values on other variables [X 1, X 2...]"— Presentation transcript:

1 Functions and Mathematical Models

2 Used to compute the values on a variable [Y] given values on other variables [X 1, X 2...]

3 Purposes: 1.Prediction of values of Y given known values of X

4 Purposes: 1.Prediction of values of Y given known values of X 2.Explanation by comparing predicted values of Y with known values of Y

5 Purposes: 1.Prediction of values of Y given known values of X 2.Explanation by comparing predicted values of Y with known values of Y 3.Estimation of Y: Example: using CPI to estimate real from nominal values

6 Purposes: 1.Prediction of values of Y given known values of X 2.Explanation by comparing predicted values of Y with known values of Y 3.Estimation of Y: Example: using CPI to estimate real from nominal values 4.Conversion of values to a different scale: Example: computing index numbers

7 Other examples of functions: Converting absolute numbers into relative numbers, e.g., sports injury rate, country HIV rate

8 Example: conversion of Celsius to Fahrenheit

9 AKA: Night of the Living Dead Chemistry Lesson

10 Example: conversion of Celsius to Fahrenheit At what temperature Fahrenheit does water freeze?

11 Example: conversion of Celsius to Fahrenheit At what temperature Fahrenheit does water freeze? 32 degrees

12 Example: conversion of Celsius to Fahrenheit At what temperature Fahrenheit does water freeze? 32 degrees At what temperature Celsius does water freeze?

13 Example: conversion of Celsius to Fahrenheit At what temperature Fahrenheit does water freeze? 32 degrees At what temperature Celsius does water freeze? 0 degrees

14 Example: conversion of Celsius to Fahrenheit At what temperature Fahrenheit does water boil?

15 Example: conversion of Celsius to Fahrenheit At what temperature Fahrenheit does water boil? 212 degrees

16 Example: conversion of Celsius to Fahrenheit At what temperature Fahrenheit does water boil? 212 degrees At what temperature Celsius does water boil?

17 Example: conversion of Celsius to Fahrenheit At what temperature Fahrenheit does water boil? 212 degrees At what temperature Celsius does water boil? 100 degrees

18 Example: conversion of Celsius to Fahrenheit FahrenheitCelsius Freezing point 32 0 Boiling point212100

19 Example: conversion of Celsius to Fahrenheit So, in Fahrenheit, to get from freezing to boiling takes 180 degrees (212 minus 32) In Celsius, it takes 100 degrees (100 minus 0) Dividing 180 by 100, we see that every 1 degree Celsius is equivalent to 1.8 degrees Fahrenheit

20 Example: conversion of Celsius to Fahrenheit Y = 32 + 1.8 X Where Y = Fahrenheit temperature x= Celsius temperature

21 Go to Excel file 1.Enter 4 numbers between 32 and 212 in the next four cells in the Celsius column 2.Enter the formula for the “Celsius to Fahrenheit” function in the first empty cell in the Fahrenheit column 3.Copy the function for the next three cells 4.Create XY scatter diagram (along with me)

22 Function yields a straight line Formula: Y = b + aX  “a” is slope: the amount of change in Y given a unit change in X  “b” is intercept: the value of Y when X=0 Alternative arrangement: Y = aX + b

23 Y = b + aX [Y = aX + b] is also called the regression equation

24 Function is linear: Y changes by constant absolute amount given fixed change in X

25 Linear functions are one of the two primary types of functions for this class. The other type is exponential functions.

26 Linear vs. Exponential LinearExponential Absolute changeConstantVarying with value of X Rate of change (% change) Varying with value of X Constant

27 Using linear functions

28 To compute Y: Plug in value of X and do arithmetic

29 Using linear functions To compute Y: Plug in value of X and do arithmetic To solve for X given Y: Y = b + aX Y – b = aX (Y – b)/a = X

30 Adding trendline to xy scatter diagrams: Open the Minimum Wage Excel file from Lab 8

31 R 2... Coefficient of determination Measures degree to which predicted values match actual values How close are the points to the line, on average? Zero means no correspondence between predicted and actual values 1.0 means all predicted values exactly match actual values or all points are exactly on the regression line


Download ppt "Functions and Mathematical Models. Used to compute the values on a variable [Y] given values on other variables [X 1, X 2...]"

Similar presentations


Ads by Google