Skip to content

lucadimascolo/scattr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scattr

DOI

Yet another linear regression library.

scattr is a plug-n-play tool for performing linear regression in the presence of intrinsic scatter and for measurements with uncertainties on both the dependent and independent variables. This is built upon other publicly available tools (specifically, linmix1 and LIRA2), but provides a more statistically consistent approach for dealing with observational uncertainties. More details will be provided asap.

Installation

To get scattr running on your computer, it should be enough to run

python -m pip install git+https://github.com/lucadimascolo/scattr.git

This will download and install the latest version of scattr as well as all the required dependencies.

Currently, there is a minor issue with the latest pip-installable version of numpyro, as its nested sampler depends on an older version of jaxns. If you are planning to run a nested sampling, I suggest to install the latest dev-release of numpyro as

python -m pip install git+https://github.com/pyro-ppl/numpyro.git

Usage

A preliminary example can be found in init.py.

References

1 "Some Aspects of Measurement Error in Linear Regression of Astronomical Data", Brandon C. Kelly, ApJ, 665, 1489 (2007)

2 "A Bayesian approach to linear regression in astronomy", Mauro Sereno, MNRAS, 455, 2149 (2016)

About

Yet another linear regression library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages