Previous Page Next Page Contents

stats::meanTest -- test an estimate of an expected mean

Introduction

stats::meanTest(data, m) returns the probability that the expected mean of the data is larger than m.

Call(s)

stats::meanTest([x1, x2, ..], m <, distribution>)

Parameters

x1, x2, .. - the statistical data: arithmetical expressions.
m - the estimate for the expected mean of the data: an arithmetical expression.
distribution - either stats::normal or stats::Tdist. The default is the T-distribution stats::Tdist.

Returns

an arithmetical expression. FAIL is returned, if the variance of the data vanishes.

Related Functions

stats::mean, stats::normal, stats::stdev, stats::Tdist

Details

Example 1

10 experiments produced the values 1, -2, 3, -4, 5, -6, 7, -8, 9, 10. There is only a small probability that the expected mean value of the underlying distribution is larger than 5:

>> data := [1, -2, 3, -4, 5, -6, 7, -8, 9, 10]:
   float(stats::meanTest(data, 5))
   
                               0.05756660092
      

We test the hypothesis ``expected mean >= 5'' again, this time using the normal distribution:

>> float(stats::meanTest(data, 5, stats::normal))
                               0.04058346176
>> delete data:

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000