Quantcast
Channel: Math.NET Numerics - Math.NET
Viewing all articles
Browse latest Browse all 224

Multiple regression in F# excluding the intercept and vector division

$
0
0

@AndyAbok wrote:

F#
i hope i am asking the question the right way here,i want to do a multiple regression here and obtain the result without the intercept which i believe is in vector form my challenge is when i want to take the vector results divided by the sum of the vector results it errors with overload.
secondly when trying to exclude the intercept too it doesn’t pick. still not figuring out the issue.
any assistance will be appreciated.

    [ [ 0.10; 0.2 ; 0.35; 0.14 ]
      [ 0.5 ; 0.60; 0.76; 0.18 ]
      [ 0.19; 0.10; 0.51; 0.32 ]
      [ 0.13; 0.64; 0.95; 0.26 ] ]

let list2 = [ 0.1; 0.2; 0.3; 0.4 ]

open MathNet.Numerics.LinearAlgebra
open MathNet.Numerics.LinearRegression

let x = list1 |> matrix
let y = list2 |> vector

let betas = MultipleRegression.QR(x,y) 
let result = betas/betas.sum```

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles