Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Pseudorandom Numbers with Skew Normal Distribution

Overview

This VI provides the ability to sample from a skew-normal distribution, using the method detailed here: http://file.scirp.org/pdf/AM_2014072210090479.pdf

Description

The output SN(a) is scaled as you would scale a standard normal random variable to give the desired mean and variance. The actual mean and variance of the pdf are dependent on the supplied parameter alpha. If you tick "force match of mean and variance", the random variable is instead scaled by the pdf's actual mean and variance. I recommend trying both forcing and not forcing to see which pdf fits your purpose better. When "a" is 0, the output is a sample from the standard normal distribution for the given mean and variance.

Steps to Implement or Execute Code

  1. Decide on the parameter "a" that suits your needs. For an example of what different "a" values do, see the wikipedia article here: https://en.wikipedia.org/wiki/Skew_normal_distribution
  2. Run "Skew Normal Random Variable" with your given parameters, mean and standard deviation.
  3. See "Example.vi" for a histogram.

Requirements

Software

LabVIEW 2013 (will save for previous versions on request)

Windows 8+ (untested on 7 and below)



Comments
Dekay
Member
Member
on

Could I get this in 2012 version? Thanks.

Contributors