CLT: Central Limit Theorem example

Description Usage Arguments Details Examples

Description

This function simulates data and computes histogram, density and (asymptotic) density of the mean

Usage

1
 CLT(distr, breaks, params, nsims)

Arguments

distr

Distribution to sample from.

breaks

Sames as the 'breaks' parameter in 'hist()'.

params

Vector of two elements with the parameters to use with 'distr'.

nsims

Number of simulations.

Details

In this example, the user can choose among three different distributions to sample from. In all cases, the simulated points are display, together a histogram, the density distribution (in green) and the asymptotic distribution of the mean of 'nsims' observations (in red).

Examples

1
2
require(opencpu)
opencpu$browse('/library/GeogebraR/www/CLT.html')

becarioprecario/GeogebraR documentation built on May 12, 2019, 10:03 a.m.