Ordinary least squares

Regress Y on X from a spreadsheet

Drop in an Excel workbook with an X column and a Y column. The file is read here in the page; the regression is fitted by statsmodels, running in your browser. You get the fitted line, the scatter, R², and a coefficient table with standard errors, t-statistics, and p-values.

Starting Python…

Drag a workbook here, or choose a file. Also reads .csv.

Fitted model

    Each dot is one row. The line is the least-squares fit.

    • Observations
    • Fitted line

    Coefficients

    Show the statsmodels summary
    
          
    Show the data, fitted values, and residuals

    Your file is read in this page and never uploaded. Python itself is fetched once from the jsDelivr CDN.