Quadratic and cubic regression in Excel

前端 未结 3 666
醉话见心
醉话见心 2020-12-04 07:19

I have the following information:

  Height    Weight

    170     65
    167     55
    189     85
    175     70
    166     55
    174     55
    169     6         


        
3条回答
  •  既然无缘
    2020-12-04 07:47

    I know that this question is a little old, but I thought that I would provide an alternative which, in my opinion, might be a little easier. If you're willing to add "temporary" columns to a data set, you can use Excel's Analysis ToolPak→Data Analysis→Regression. The secret to doing a quadratic or a cubic regression analysis is defining the Input X Range:.

    If you're doing a simple linear regression, all you need are 2 columns, X & Y. If you're doing a quadratic, you'll need X_1, X_2, & Y where X_1 is the x variable and X_2 is x^2; likewise, if you're doing a cubic, you'll need X_1, X_2, X_3, & Y where X_1 is the x variable, X_2 is x^2 and X_3 is x^3. Notice how the Input X Range is from A1 to B22, spanning 2 columns.

    Input for Quadratic Regression Analysis in Excel

    The following image the output of the regression analysis. I've highlighted the common outputs, including the R-Squared values and all the coefficients.

    Coefficients of Quadratic Regression Analysis in Excel

提交回复
热议问题