larzstats
Statistics without numpy.
Descriptive statistics, linear regression, correlation and the normal distribution — the everyday stats toolkit in pure Larzscript.
larzscript pkg install stats
What you get
- Descriptive stats
- Regression & correlation
- Normal distribution
- No numpy
Try it
import "stats" as stats let xs = [4, 8, 15, 16, 23, 42] print(stats.mean(xs)) print(stats.median(xs)) print(round(stats.stddev(xs), 3)) print(stats.correlation([1, 2, 3], [2, 4, 6])) print(stats.linear_regression([1, 2, 3], [2, 4, 6]))
Output
18
15.5
12.315
1
{slope: 2, intercept: 0}Why it's in the Larz Stack
larzstats is a real Larzscript package (larzscript pkg install stats) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.