HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Simple linear regression functions

3 declarations

Related functions

2 declarations

Estimated errors and distribution parameters

2 declarations

The estimated distributions of the regression parameters (alpha and beta) assuming normal, identical distributions of Y, the sampled data. These can serve to get confidence intervals for the regression parameters. Accepts the regression parameters (alpha,beta) and the sample vectors X and Y. The distributions are StudnetT distributions centered at the estimated (alpha,beta) respectively, with parameter numbers n-2 (where n is the initial sample size) and with standard deviations that are extracted from the sampled data based on its MSE. See chapter 2 of reference [3] for details.

Robust linear regression

3 declarations

Related types

datadata EstimationParameters
#

The robust fit algorithm used has various parameters that can be specified using the EstimationParameters record.

Constructors

  • EstimationParameters
    • outlierFraction :: !Double

      Maximal fraction of outliers expected in the sample (default 0.25)

    • shortIterationSteps :: !Int

      Number of concentration steps to take for initial evaluation of a solution (default 3)

    • maxSubsetsNum :: !Int

      Maximal number of sampled subsets (pairs of points) to use as starting points (default 500)

    • groupSubsets :: !Int

      If the initial sample is large, and thus gets subdivided, this is the number of candidate-estimations to take from each subgroup, on which complete convergence will be executed (default 10)

    • mediumSetSize :: !Int

      Maximal size of sample that can be analyzed without any sub-division (default 600)

    • largeSetSize :: !Int

      Maximal size of sample that does not require two-step sub-division (see reference article) (default 1500)

    • estimator :: Estimator

      Estimator function to use (default linearRegression)

    • errorFunction :: ErrorFunction

      ErrorFunction to use (default linearRegressionError)

Provided values

Helper functions

References

0 declarations