LinearRegressionVis

Description

Visualizing data points with Roassal2 and fitting them with PMLinearRegression

Details

Source
GitHub
Dialect
pharo (40% confidence)
Created
March 2, 2018
Updated
March 2, 2018
Topics
data-visualization linear-regression pharo polymath roassal smalltalk

Categories

UI / Graphics Scientific Math

README excerpt

# LinearRegressionVis
Visualizing 30 data points with [Roassal2](http://agilevisualization.com) and fitting them with [PMLinearRegression](https://github.com/PolyMathOrg/PolyMath).

```Smalltalk
model := PMLinearRegression new.
n := 30.
rand := Random new.
points := (1 to: n) collect: [ :x | x@(2 * x + (rand next * 20 - 10)) ].
points do: [ :p | 
  model add: p ].
```

![Visualization of linear regression](img/linreg.png)
← Back to results