# 047. Daily household energy totals

**Question:** How variable is daily appliance use when only complete days are counted?

## Result

The largest computed metric is 27.15 for maximum; the smallest is 5.4 for minimum. Metric: daily_kwh (Appliance kWh per complete day).

Lighting is separate. A complete day requires 144 records; missing or partial days are excluded.

![Daily household energy totals](outputs/chart.png)

| statistic | daily_kwh |
| --- | --- |
| minimum | 5.4 |
| p10 | 9.7 |
| p25 | 10.82 |
| median | 13.25 |
| p75 | 16.08 |
| p90 | 20.86 |
| p99 | 25.49 |
| maximum | 27.15 |

The chart shows 8 of 8 result rows; the table previews the first 8 in the analysis-defined order. [Download the full result table](outputs/results.csv). Numerical values are computed from the source; missing results stay unavailable.

## Method

Aggregate 144 ten-minute intervals into daily kWh and exclude partial days.

The study uses shared source preparation and reusable statistical routines. Its specific transformations are in [analysis.py](analysis.py), and common model/evaluation code is in [portfolio/methods.py](../../portfolio/methods.py). The [notebook](analysis.ipynb) executes the study and displays the saved results.

## Decision and limitations

Use complete-day totals for reporting before considering a tariff or conservation study.

Measurements come from one home over a limited period. Energy is Wh per recorded 10-minute interval. This is not a representative household sample; tariffs and occupancy labels are unavailable. 

Related studies may share observations or holdouts. These are focused analytical studies, not independent replications or deployed business systems. Any model refinements informed by these results need new untouched evaluation data. No commercial impact is inferred from an association or backtest.

## Reproduce

From the repository root, after installing `requirements.txt`:

```powershell
python projects/047-daily-household-energy-totals/analysis.py
```

Source data are downloaded automatically if absent. Original archives are retained unchanged and checked by SHA-256. The cleaned cache normalizes column names; field-specific changes are visible in [data preparation](../../portfolio/data.py). Runtime evidence is in [receipt.json](outputs/receipt.json).

## Source

[Appliances Energy Prediction](https://archive.ics.uci.edu/dataset/374/appliances+energy+prediction), Candanedo (2017). [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Source data are transformed and aggregated in this study. [Source provenance](../../data/provenance/energy.json) and [prepared-data audit](../../data/provenance/energy_prepared.json) record the downloaded files, field coverage and hashes.
