liveBook · Manning

Raw moment

As explained in Modern C

A raw moment is the average or aggregate power of observations measured relative to zero.

A timing sample

Suppose repeated time measurements have a mean of 0.6 and a maximum of 1.3. The maximum lies 0.7 above the mean; symmetry would require a measurement of −0.1, which is impossible for elapsed time. The sample is lopsided. section 15.3

A raw moment collects powers of observations measured from zero. The zeroth counts observations, the first sums their values, and the second sums their squares. Dividing such a sum by the observation count gives its average power. section 15.3

TAKEAWAY: Raw moments are building blocks for statistics of repeated measurements, including quantities used to describe their spread and asymmetry. They are not themselves measurements relative to the sample mean. section 15.3

How Modern C covers it

How deep it goes
Defines the first raw moments as counts and sums of powers, without developing conversion formulas for other statistics.
Examples
Uses a lopsided timing sample and repeated C timing loops to motivate collecting statistics.
What it assumes
Assumes some familiarity with basic sample statistics while defining the first raw moments directly.
What you can do after
Evaluate/understand how counts and sums of powers support statistics for repeated measurements.
How it connects
Connects raw moments to sample count, mean, skew, and performance measurement.

Also explained in

Compare how 2 books explain raw moment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Modern C. The section links point to the parts of the book it draws on.