Skip to content
SakibpediaPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linreg

Go Windows exe License: MIT

Ordinary least squares linear regression with slope, intercept and R-squared.

Part of StatLab — twenty standalone statistical analysis tools for Windows, each shipped as a native executable with no runtime dependencies. Author: S M Nazmuz Sakib · [email protected]

Detailed use cases

  1. Trend estimation — quantify how a KPI changes per unit of time.
  2. Calibration — map instrument readings to known reference values.
  3. Teaching regression — inspect the formulas without a statistics package.

Download and run (Windows)

Download linreg.exe from the Releases page, then:

Get-Content data.csv | .\linreg.exe
# or
.\linreg.exe -f data.csv

The executable is a native Windows binary — no Python, no installer, no DLLs.

Build from source

go test ./...
go build -o linreg.exe .

Example output

{
  "slope": 2,
  "intercept": 1,
  "r_squared": 1
}

Input format

CSV with x,y columns. Header rows are skipped.

Visual preview

linreg preview

Testing

main_test.go covers the core algorithm with deterministic cases. Run go test ./....

License and contact

MIT © S M Nazmuz Sakib (2026). Questions: [email protected].

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages