Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-392

calculateYVariance in OLS/GLSMultipleLinearRegression uses residuals not Y vars

Rank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.2
    • None
    • None

    Description

      Implementation of OLS/GLSMultipleLinearRegression is:
      @Override
      173 protected double calculateYVariance()

      { 174 RealVector residuals = calculateResiduals(); 175 return residuals.dotProduct(residuals) / 176 (X.getRowDimension() - X.getColumnDimension()); 177 }

      This gives variance of residuals not variance of the dependent (Y) variable as the documentation suggests.

      Attachments

        1. patch
          5 kB
          Mark Devaney

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            markdevaney Mark Devaney
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment