Skip to content

Is Mean for NegativeBinomial distribution correct?  #455

Open
@dsyme

Description

@dsyme

Playing around with distributions and it seems that the Mean of the NegativeBinomial distribution doesn't match the mean of samples.

open MathNet.Numerics
let b7 = Distributions.NegativeBinomial(2.0, 0.5) 

/// This gives about 4.0
[ for i in 0 .. 100 -> b7.Sample() ]  |> List.averageBy float

//This says 2.0
b7.Mean

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions