Learn R Programming

gsaot (version 1.1.0)

gaussian_fun: Multivariate Gaussian linear model evaluation

Description

Generates samples from a multivariate Gaussian distribution and evaluates a simple linear transformation model.

Usage

gaussian_fun(N)

Value

A list with two elements:

  • x: a numeric matrix of size N x 8 containing the input samples.

  • y: a numeric vector of length N with the corresponding function outputs.

Arguments

N

Number of input samples to generate.

Details

Inputs x are sampled from: $$ \mathbf{X} \sim \mathcal{N}(\boldsymbol{\mu}, \Sigma), \quad \boldsymbol{\mu} = [1, 1, 1], \quad \Sigma = \begin{bmatrix} 1 & 0.5 & 0.5 \\ 0.5 & 1 & 0.5 \\ 0.5 & 0.5 & 1 \end{bmatrix} $$

The output is given by: $$ \mathbf{Y} = A \mathbf{X}^{\top}, \quad A = \begin{bmatrix} 4 & -2 & 1 \\ 2 & 5 & -1 \end{bmatrix} $$

See Also

sobol_fun, ishi_homma_fun

Examples

Run this code
result <- gaussian_fun(1000)
head(result$x)
head(result$y)

Run the code above in your browser using DataLab