Skip to content
You Start with one site
Amounts in Start with one site
Engineering · Control, Measurement & Energy

Engineering Statistics and Time Series

Say something true about a year of sensor readings: one sentence with a number, a range and a method. Ten lessons on the readings of a cold room, a building, a borehole pump and a compressor.

Found this useful?
Mean daily energy of a building: 602.3 kWh before an energy measure and 465.3 after. The adjusted baseline, what the old building would have used in the new weather, is 525.5. Of the fall, 76.8 kWh came from the weather and 60.2 from the measure: 60.2 divided by 525.5 is 11.5 percent.

A report says the compressor averaged 0.34 kW, and a backup supply sized for 0.34 kW trips at the first start: the compressor draws 1.16 kW or almost nothing. Two loggers on the same machine report 6.9 and 9.6 kWh for one day. A contractor reports a saving of 23 percent, and a year later the bills are back, because nearly half of it was a cool season. An inspector puts the stock on hold for two hours at 5.09 °C; the sensor had stopped, and the logger wrote its last value 120 times.

In this course you work with the readings of four sites, each made inside the lesson. You describe the readings, build a baseline, find the day something changed, and measure a saving with its range. The last lesson turns two years of a building's readings into one sentence: 11.5 percent, 10.8 to 12.1, where a plain comparison said 22.8.

From readings to a finding
  1. 1Describe it firstOne day of compressor power has two peaks. The mean, 0.337 kW, is a power it never draws.
  2. 2Model what it should useA base load of 306.6 kWh, 41.61 kWh a degree day, and 182.1 more on a weekday.
  3. 3Date the changeThe cumulative sum turns on day 35: a leak of 0.90 m³/h in the night flow.
  4. 4Claim it with a range11.5 percent, 10.8 to 12.1, over 230 days, against a weather-adjusted baseline.
You will be able to
  1. Describe a set of readings with the right numbers, and put an honest range on an average
  2. Build and test a baseline, and find when something changed and by how much
  3. Measure a saving against an adjusted baseline, and write it as one finding with its range

New to this? New to statistics? Start with lesson 1: why the average of an on-off machine describes neither state.

You need A computer with Python, numpy, scipy and matplotlib. Every data set is made in the lessons.

The engineering behind it

Months of numbers, one honest sentence: baselines, change detection, and a range you can defend.

Lessons
Lesson 1 · 23 minDescribing Sensor DataWhy the average of a machine that is on or off describes neither state, and what to report in its place.Mean and medianPercentilesHistogramTime above a limit Lesson 2 · 23 minSampling Intervals and AggregationWhat a logged value means, how fast to sample, and why two loggers on one compressor read 6.9 and 9.6 kWh.Instantaneous or averageSampling intervalAliasingAggregation Lesson 3 · 24 minHow Sure Is an Average?Put an honest range on a mean when readings a minute apart repeat each other.Standard errorConfidence intervalAutocorrelationBlock means Lesson 4 · 25 minBaselines: Energy Against Weather and ProductionFit the formula that says what a building should use, given the weather and the weekday, and test it on days it has not seen.Degree daysRegressionCV(RMSE)Residuals Lesson 5 · 24 minControl Charts: Is This Normal?Tell an ordinary bad day from a real change, and see a 12 percent saving two days after it began.Individuals chartControl limitsFalse alarmsEWMA Lesson 6 · 23 minFinding a Step and a DriftDate the day a leak began from the night flow, and measure a slow rise in pump energy with its range.Cumulative sumTabular CUSUMStep and driftSlope with a range Lesson 7 · 24 minDaily and Weekly PatternsFold weeks of readings into a typical day and week, and tell a leak from more use by its shape.Typical-day profileBase load and peakMoving averageDecomposition Lesson 8 · 22 minBefore and After: Was There a Saving?Measure a saving against an adjusted baseline, put a range on it, and learn how long to measure first.Adjusted baselineNaive comparisonRange of a savingSmallest saving seen Lesson 9 · 25 minGaps, Flatlines and OutliersFind gaps, flatlines and spikes, flag them, and say what may honestly be said about the hours they cover.Six common faultsFlagsCoverageCounters across gaps Lesson 10 · 24 minFrom a Year of Data to One FindingSeven steps from two years of readings to one sentence with a number, a range, a period and a method.Seven-step pathOne page of evidenceWhat was not checkedThe finding
More about this course

Every number has a reason

A finding is not one average with many decimals. Each number says what was measured, and how far it can be trusted.

  • 28.2 percentthe duty of the compressor: 1.16 kW when it runs, 14 W when stopped; the mean of 0.337 kW is right for one purpose only, the energy of 8.08 kWhDistributions
  • 18.6 percentthe error of a day's energy from instantaneous readings every 15 minutes; interval averages or a counter are exact at any intervalSampling
  • ± 0.009 °Cthe honest range of the cold room mean of 4.013 °C, from 14 daily means and not from 20,160 readings one minute apartUncertainty
  • 4.74 percentthe CV(RMSE) of the building baseline; on 135 days it had not seen, it predicted the energy within 0.53 percentBaseline
  • 828 kWhthe simple range of a saving of 13,857 kWh over 230 days; after only 30 days, the smallest saving the baseline can see is 1.41 percentSavings

A bill is not a baseline.

Plain comparison
Before against after
  • 602.3 kWh a day before, 465.3 after
  • A fall of 22.8 percent
  • The weather and the weekdays were different

The test: were the two periods alike?

Adjusted baseline
The same building, the same weather
  • The model of the first year, run on the days after
  • 11.5 percent, range 10.8 to 12.1
  • The true saving in the data: 12 percent

The test: does the baseline hold on a period with no change?

The tools

Pythonnumpy, scipy and matplotlib. Each lesson works the numbers by hand, then checks them in Python.
Four data setsA cold room, a building, a borehole pump and a compressor.
No downloadsEvery data set is made inside the lesson, so your numbers match the page.
Honest rangesEvery average and every saving comes with how far it can be trusted.
One findingOne sentence with a number, a range, a period and a method, and one page of evidence.
Assumptions statedEach method says what it assumes, and what happens when sensor data breaks it.

Honest limits. This is not a course in mathematical statistics; proofs are left to the textbooks named in each lesson. A range covers random variation, not a sensor offset or a future change. A record kept beyond the site can raise the alert; the thermostat and the controls on site still make the switching decisions.

Before you start

The full course notes

A year of readings from a cold room is half a million numbers, and the manager wants one sentence. Most first attempts at that sentence are wrong in the same few ways: an average that hides the problem, a saving that is really the weather, a confidence that the data cannot support. This course is about turning sensor data into a claim you can defend. #Statistics #TimeSeries #EnergyBaseline

It uses four data sets from the kind of sites we measure: a cold room, a building, a borehole pump and a compressor. Each is generated inside the lesson’s own script, so you get exactly the printed numbers and need no downloads.

What you need

A computer with Python, and three libraries.

Terminal window
pip install numpy scipy matplotlib

Lessons

Lesson 1: Describing Sensor Data

Why the average of a machine that is on or off describes neither state, and what to report with it.

Open

Lesson 2: Sampling Intervals and Aggregation

What a logged value means, how fast to sample, and what a slow log misses.

Open

Lesson 3: How Sure Is an Average?

Put an honest range on a mean when readings a minute apart are not independent.

Open

Lesson 4: Baselines: Energy Against Weather and Production

Build the model that says what a site should have used.

Open

Lesson 5: Control Charts: Is This Normal?

Tell an ordinary bad day from a real change.

Open

Lesson 6: Finding a Step and a Drift

Date the day a leak began, and measure a slow wear.

Open

Lesson 7: Daily and Weekly Patterns

Draw the typical day and week, and compare like with like.

Open

Lesson 8: Before and After: Was There a Saving?

Measure a saving against an adjusted baseline, with its range.

Open

Lesson 9: Gaps, Flatlines and Outliers

Find bad data, flag it, and never fill a gap dishonestly.

Open

Lesson 10: From a Year of Data to One Finding

The method from raw readings to one sentence with a number and its range.

Open

What this course does not cover

This is not a course in mathematical statistics. Proofs are left to the textbooks named in each lesson. Each method comes with its assumptions and with what happens when sensor data breaks them.



© 2021-2026 SiliconWit®. All rights reserved.

10 lessons, in order.

SiliconWit makes these courses. We also run siliconwit.io, a monitoring service.