<< test1b Tests test1r >>

Stixbox >> Stixbox > Tests > test1n

test1n

Test that mean equals zero (Normal)

Calling Sequence

pval=test1n(x)
pval=test1n(x,c)
[pval,cimean]=test1n(...)
[pval,cimean,cistd]=test1n(...)

Parameters

x :

a m-by-n matrix of doubles

c :

a 1-by-1 matrix of doubles, c in [0,1], the confidence level for the confidence intervals (default=0.95)

b :

a 1-by-1 matrix of doubles, b>=1, the number of bootstrap samples (default=2000)

pval :

a 1-by-1 matrix of doubles, probability that Student variate based on x is as far from 0 as it is actually, or further away under hypothesis that theoretical mean is 0.

cimean :

a 1-by-3 matrix of doubles, the confidence interval for the mean

cistd :

a 1-by-3 matrix of doubles, the confidence interval for the standard deviation

Description

Assume that the sample is normal, test and compute confidence intervals.

The confidence intervals are of the form

[LeftLimit, PointEstimate, RightLimit]

Examples

x=distfun_normrnd(0,1,20,1);
pval=test1n(x)
// Get a 95% confidence interval for the mean
[pval,cimean]=test1n(x)
// Get a 90% confidence interval for the mean
[pval,cimean]=test1n(x,0.9)
// Get a 95% confidence interval for the standard
// deviation
[pval,cimean,cistd]=test1n(x)

Authors


Report an issue
<< test1b Tests test1r >>