So I'm using 1Distributions.jl1, and I sample from a multivariant normal - I'd expect a sample for N random variables to be size N, not 1.
Here is my code - am I misinterpreting what this is doing, or is my code just wrong?
using Distributions
using LinearAlgebra
N = 3
mu =[1,1,1]
cov = Matrix(1.0I, N, N)
d = MvNormal(mu,cov)
x =rand(d,100)
println(x[1])
When I look at the first sample, instead of being length 3, it is a scalar:
julia> include("dist.jl")
-0.02020323039551508