まず、手始めに簡単な線形回帰を行ってみます。
#r "nuget:Accord"
Installed package Accord version 3.8.0
#r "nuget:Accord.Statistics"
Installed package Accord.Statistics version 3.8.0
using Accord.Statistics.Models.Regression.Linear;
using System;
double[] inputs = {80, 60, 10, 20, 30};
double[] outputs = {20, 40, 30, 50, 60};
var regression = new SimpleLinearRegression();
regression.Regress(inputs, outputs);
var y = regression.Compute(85);
var a = regression.Slope;
var b = regression.Intercept;
y
28.08823529411765
a
-0.26470588235294107
b
50.58823529411764