BiasVarTO function

a simple example of the bias--variance trade-off.

a simple example of the bias--variance trade-off.

A total of eight models are fitted to a data set consisting of seven predictors. The response is the exact fit with a variable amount of zero-mean noise added. This is repeated a certain number of times (by default, 100 times). Plots of Bias^2 and variance vs. the number of parameters are produced.

BiasVarTO(times = 100)

Arguments

  • times: the number of repeats to average bias and variance over (default 100)

Returns

none produced, the function produces two plots

References

van Hulst, R. 2018. Evaluating Scientific Evidence. ms.

Author(s)

Robert van Hulst

  • Maintainer: Robert van Hulst
  • License: GPL (>= 2)
  • Last published: 2018-05-15

Useful links