

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


30 November Nonlinear Regression If we have a curved pattern on a scatterplot, it would not make sense to model it linearly, but that doesn’t mean there is no relationship between X and Y. One way to model the relationship is to transform the explanatory variable
More common way – polynomial regression i.e., fit data to y = β 0 + β 1 x + β 2 x^2 + ε for a quadratic function Can do polynomial regression using Xk, for k ≥ 1, but we want to include all lower order terms of X in the model as well.
Multiple Regression Sometimes Y is strongly related to several explanatory variables while not having a strong relationship with any one single explanatory variable. If we have k predictors, our model is y = β 0 + β 1 x 1 + β 2 x 2 + … + βkxk + ε, εi
N (0, σ^2 for k ≥ 1, integer We fit β 0 ≈ b 0 , β 1 ≈ b 1 , etc., where b 0 , b 1 , … bk are the values that minimize
2
2
Testing the fit of the model
Is the “overall fit” of our model good? We perform a model utility test. H 0 : β 1 = β 2 = … = βk = 0 HA: At least one βi ≠ 0 for i = 1, …, k Test Statistic:
This follows an F distribution An F-distribution has 2 degrees of freedom df 1 = numerator df df 2 = denominator df So for our test statistic df 1 = k df 2 = n – (k + 1) p-value = P(Fk, n – (k + 1) ≥ teststat) Use Table 6, will have to bound Ex: Suppose k = 4, n = 10, Ftest = 7. df 1 = 4, df 2 = 10 – (4 + 1) = 5 p-value = P(F4,5 ≥ 7.38) So .01 < p-value <. Note When y = β 0 + β 1 x + ε, the model utility test can be performed with an F-test or a t-test and you will get the same p-values.