Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

demo_simple_gamma

Tests 1-dimensional Gamma Distribution with customized parameters


Description

We generate a gamma distribution with given parameters, and add gaussian noise to this dataset. We then compute the score of each dataset for the original true distribution.

Usage

demo_simple_gamma(
  trueshape = 10,
  truescale = 3,
  noisemu = 5,
  noisesd = 2,
  n = 100
)

Arguments

trueshape

shape of true gamma distribution

truescale

scale of true gamma distribution

noisemu

mean of gaussian noise to add

noisesd

standard deviation of gaussian noise to add

n

number of samples to generate


KSD

Goodness-of-Fit Tests using Kernelized Stein Discrepancy

v1.0.1
MIT + file LICENSE
Authors
Min Hyung Kang [aut, cre], Qiang Liu [aut]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.