hello,
I want to generate a 3 dimentional vector normally distributed with constant mean and variance <1.
Do I generate each element separately? and what parameters to assign to each element?
Thanks.
generate a vector normally distributed
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13586
- Joined: Tue Sep 16, 2008 5:38 pm
Re: generate a vector normally distributed
I'm not sure what you mean by a 3-dimensional vector.
However, you can create a normally distributed random vector like so:
That creates a standard normal. You can multiply by the standard deviation you want to de-standardise it.
However, you can create a normally distributed random vector like so:
Code: Select all
vector(10) myvec
nrnd(myvec)
Who is online
Users browsing this forum: No registered users and 2 guests
