StatBootstrap

scalation.mathstat.StatBootstrap
class StatBootstrap(y: VectorD, unbiased: Boolean = ..., stream: Int = ...) extends Statistic

The StatBootstrap class is used to create bootstrap samples and compute statistics based on these pseudo-samples. Given a sample y from a population (typically unknown), create several pseudo-samples (bootstrap samples). This allows confidence intervals to be created with requiring distribution assumptions, such as the data are Normally distributed.

Value parameters

stream

the random number stream to use

unbiased

whether the estimators are restricted to be unbiased

y

the original sample of data

Attributes

Graph
Supertypes
class Statistic
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def binterval(p_: Double = ...): (Double, Double)

Compute the bootstrap confidence interval (lo, hi) for the given confidence level using the bootstrap percentile method.

Compute the bootstrap confidence interval (lo, hi) for the given confidence level using the bootstrap percentile method.

Value parameters

p_

the confidence level

Attributes

See also

stat.rutgers.edu/home/mxie/RCPapers/bootstrap.pdf

def binterval_(p_: Double = ...): Double

Compute the bootstrap confidence interval half-width (ihw) for the given confidence level using the t-distribution. Assumes the data follows a Normal distribution.

Compute the bootstrap confidence interval half-width (ihw) for the given confidence level using the t-distribution. Assumes the data follows a Normal distribution.

Value parameters

p_

the confidence level

Attributes

inline def bmean: Double

Compute/estimate the bootstrap sample mean.

Compute/estimate the bootstrap sample mean.

Attributes

def bstdev: Double

Compute/estimate the bootstrap sample standard deviation.

Compute/estimate the bootstrap sample standard deviation.

Attributes

def bvariance: Double

Compute/estimate the bootstrap sample variance.

Compute/estimate the bootstrap sample variance.

Attributes

def makeSamples(n: Int): Unit

Make/generate n bootstrap samples (resampling with replacement).

Make/generate n bootstrap samples (resampling with replacement).

Value parameters

n

the number of sample to make

Attributes

def toString2: String

Generate a row of bootstrap statistical results as a string.

Generate a row of bootstrap statistical results as a string.

Attributes

Inherited methods

def interval(p_: Double = ...): Double

Compute the confidence interval half-width for the given confidence level using the t-distribution.

Compute the confidence interval half-width for the given confidence level using the t-distribution.

Value parameters

p_

the confidence level

Attributes

Inherited from:
Statistic
def interval_z(p_: Double = ...): Double

Compute the confidence interval half-width for the given confidence level using the z-distribution.

Compute the confidence interval half-width for the given confidence level using the z-distribution.

Value parameters

p_

the confidence level

Attributes

Inherited from:
Statistic
def ma: Double

Compute/estimate the mean absolue value (ma), e.g., Mean Absolute Error (MAE).

Compute/estimate the mean absolue value (ma), e.g., Mean Absolute Error (MAE).

Attributes

Inherited from:
Statistic
inline def max: Double

Return the maximum value in sample.

Return the maximum value in sample.

Attributes

Inherited from:
Statistic
def mean: Double

Compute/estimate the sample mean.

Compute/estimate the sample mean.

Attributes

Inherited from:
Statistic
inline def min: Double

Return the minimum value in sample.

Return the minimum value in sample.

Attributes

Inherited from:
Statistic
def ms: Double

Compute/estimate the mean square (ms), e.g., Mean Square Error (MSE).

Compute/estimate the mean square (ms), e.g., Mean Square Error (MSE).

Attributes

Inherited from:
Statistic
inline def nd: Double

Return the number of instances in sample as a double.

Return the number of instances in sample as a double.

Attributes

Inherited from:
Statistic
inline def num: Int

Return the number of instances in sample.

Return the number of instances in sample.

Attributes

Inherited from:
Statistic
def reset(): Unit

Reset accumulators.

Reset accumulators.

Attributes

Inherited from:
Statistic
def rms: Double

Compute/estimate the root mean square (rms), e.g., Root Mean Square Error (RMSE).

Compute/estimate the root mean square (rms), e.g., Root Mean Square Error (RMSE).

Attributes

Inherited from:
Statistic
def set(n_: Int, sum_: Double, sumAb_: Double, sumSq_: Double, minX_: Double, maxX_: Double): Unit

Set accumulators.

Set accumulators.

Attributes

Inherited from:
Statistic
def show: String

Show the values of this collector's accumulators.

Show the values of this collector's accumulators.

Attributes

Inherited from:
Statistic
def statRow: Array[Any]

Return the summary statistics as a row/Array.

Return the summary statistics as a row/Array.

Attributes

Inherited from:
Statistic
def stdev: Double

Compute/estimate the sample standard deviation.

Compute/estimate the sample standard deviation.

Attributes

Inherited from:
Statistic
def tally(x: Double): Unit

Tally the next value and update accumulators.

Tally the next value and update accumulators.

Value parameters

x

the value to tally (e.g., time in sytem)

Attributes

Inherited from:
Statistic
def tallyVec(v: VectorD): Unit

Tally the next vector of values and update accumulators.

Tally the next vector of values and update accumulators.

Value parameters

v

the vector of values to tally (e.g., time in sytem)

Attributes

Inherited from:
Statistic
override def toString: String

Generate a row of statistical results as a string.

Generate a row of statistical results as a string.

Attributes

Definition Classes
Statistic -> Any
Inherited from:
Statistic
def variance: Double

Compute/estimate the sample variance. The denominator is one less for unbiased (n-1) vs. maximum likelihood (n) estimators. Also use n for population variance.

Compute/estimate the sample variance. The denominator is one less for unbiased (n-1) vs. maximum likelihood (n) estimators. Also use n for population variance.

Attributes

Inherited from:
Statistic

Inherited fields

val name: String

Attributes

Inherited from:
Statistic