I want to implement the [Simple Regression](http://commons.apache.org/proper/commons-math/userguide/stat.html#a1.4_Simple_regression) model from the apache commons math libary.

I have implemented:

```
//estimate alpha and beta parameters
regression = new SimpleRegression();
for (int l = 0; l < xList.size(); l++) {
    regression.addData(Double.parseDouble(xList.get(l).replace(',', '.')), yList.get(l));
}

//add alpha
regression.getIntercept();

//add beta
regression.getSlope();

//add R^2
regression.getRSquare();

```

Compared to a simple google spreadsheet to verify my results:

I get completely different results. Here you can also see a picture:

![enter image description here](https://i.stack.imgur.com/QeQqR.png)

I would appreciate any recommendations how to fix this problem?

**UPDATE**

I know that statistically these data is not valuable.(for example see `R^2`) However I want to find out whats wrong with the computation instead of some statistical properties!

I am using:

```
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-math3</artifactId>
    <version>3.0</version>
</dependency>

```

I appreciate every idea!