Learn R Programming

clttools (version 1.3)

expt.mse: Mean square error of simulated experiments

Description

Mean square error of simulated experiments

Usage

expt.mse(x, n, times, prob = NULL)

Arguments

x
vector, possible outcomes in one trial of experiment
n
number of trials
times
number of simulations
prob
probability assigned to each possible outcome

Value

Mean square error of simulated experiments

Details

The default probabilty equals to 1/n. All the assigned probabilites must between 0 and 1.

Examples

Run this code
expt.mse(x = c(1:3), n = 4, times = 100)
expt.mse(c(0.1, 4, 2), 3, times = 50, prob = c(0.3, 0.5, 0.2))

Run the code above in your browser using DataLab