newvar: Recurrence Relationship for Sample Variance

Description Usage Arguments Details Value Author(s) See Also

Description

This functions updates the sample variance using old sample variance, old mean and new value

Usage

1
newvar(oldvar, n, mu, new)

Arguments

oldvar

a numeric value of old sample variance

n

a numeric value for the number of data including the new data

mu

a numeric value of the old mean

new

a numeric value of the new data point

Details

This function updates the sample variance using recurrence relationship between old mean, old sample variance and the new value.

Value

a numeric value of the updated sample variance

Author(s)

Thevaa Chandereng

See Also

var

new_mean


thevaa/bmiproj documentation built on May 31, 2019, 9:51 a.m.