50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

bvhar (version 2.2.2)

sim_iw: Generate Inverse-Wishart Random Matrix

Description

This function samples one matrix IW matrix.

Usage

sim_iw(mat_scale, shape)

Value

One k x k matrix following IW distribution

Arguments

mat_scale

Scale matrix

shape

Shape

Details

Consider ΣIW(Ψ,ν).

  1. Upper triangular Bartlett decomposition: k x k matrix Q=[qij] upper triangular with

    1. qii2χνi+12

    2. qijN(0,1) with i < j (upper triangular)

  2. Lower triangular Cholesky decomposition: Ψ=LLT

  3. A=L(Q1)T

  4. Σ=AATIW(Ψ,ν)