residuals, exponential and powers Flashcards
linear
y = a + bx (constant increase)
power
y = ax^b
exponential
y = ae^bx (constant % increase or increase by a constant factor. Constant increase in ln(y)
residuals and residual plots
analysis of pattern of residuals will allow us to decide which model is most suitable - U-shaped or upside down U are not the best model
residuals plot by hand
use a hat and b hat equations
residual plot excel
regression, residuals
predicted t
the best fitted value correspond to the values predicted by the best fit for t
residuals
the difference between those t predictions and the actual values of t that were observed
- can be shown on graphs as lines sticking out the side
- can use a residual plot - if there is a pattern then a straight line might not be the best fit
recognising curved relationships
- U shaped might be exponential (on a regression plot)
- upside down U might be logs
exponential to log
if y = ae^bx, ln(y) = ln(a) + bx (linear function)
- find line of best fit in ln(y) and x values
- b is slope of the regression line, a is given by e^cinstant
power to log
if y = ax^b then ln(y) = ln(a) + bln(x) (linear function)
find the line of best fit with ln(y) and ln(x) values
residuals goal
plot exponential and logs to see which fits better
fitting a linear, power or exponential trendline in excel
- use residual plots to determine which of linear, power or exponential is best
- use the chart wizard to produce a plot. when adding trendline, tick linear, power or exponential as appropriate, a power model requires the 2 variables are zero together