OrdinaryLeastSquares

(no tags)

Algorithmia Platform License · Internet Access

Run an Example

{
  "slope": 1.0677966101694916,
  "intercept": -0.1610169491525424
}

Install & Use

Use

curl -X POST -d '[
    {
        "x": 1,
        "y": 1
    },
    {
        "x": 2,
        "y": 2
    },
    {
        "x": 3,
        "y": 2.5
    },
    {
        "x": 3.5,
        "y": 4
    }
]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/paranoia/OrdinaryLeastSquares/0.1.0