A Higher Threshold Can Increase Error Cost Even When False Alarms Cost More: An Office-Sensor Holdout

Authors

  • Brandon Matthews Author
  • Trevor Russell Author
  • Matthew Fisher Author

Abstract

Raising an occupancy threshold from 0.5 to 0.8 removed seven false alarms but added 376 missed occupied observations in a later office recording. Even when a false alarm was assigned four times the cost of a miss, the total weighted error increased. Lowering the threshold to 0.2 had the opposite tradeoff and reduced aggregate error when misses received fourfold weight. Equal-day contrasts remained uncertain across only eight test dates. We obtained these results from one frozen logistic sensor model and three fixed thresholds. The example shows why a cost preference does not, by itself, establish that a particular threshold change improves the observed decision outcome.

Public sensor-data analysis with explicitly assumed error costs. No building-control intervention or new occupancy study was conducted.

Original publication: November 5, 2026.

References

  1. Gneiting, Tilmann; Raftery, Adrian E. (2007). Strictly Proper Scoring Rules, Prediction, and Estimation. Journal of the American Statistical Association. https://doi.org/10.1198/016214506000001437.
  2. Carroll, Raymond J., David Ruppert, Leonard A. Stefanski, and Ciprian M. Crainiceanu. “Measurement Error in Nonlinear Models.” 2006. https://doi.org/10.1201/9781420010138.
  3. Bergmeir, Christoph; Hyndman, Rob J.; Koo, Bonsoo. (2018). A note on the validity of cross-validation for evaluating autoregressive time series prediction. Computational Statistics & Data Analysis. https://doi.org/10.1016/j.csda.2017.11.003.
  4. Yan, Yi; Adel, Radwa; Kuruoglu, Ercan E.. (2021). Adaptive Normalized LMP Estimation for Graph Signal Processing. 2021 IEEE 31st International Workshop on Machine Learning for Signal Processing (MLSP), 1-6. https://doi.org/10.1109/mlsp52302.2021.9596181.
  5. Cook, R. Dennis. (1977). Detection of Influential Observation in Linear Regression. Technometrics. https://doi.org/10.1080/00401706.1977.10489493.
  6. Elkan, Charles. “The Foundations of Cost-Sensitive Learning.” Proceedings of the Seventeenth International Joint Conference on Artificial Intelligence, 2001, pp. 973-978. https://cseweb.ucsd.edu/~elkan/rescale.pdf.
  7. Diebold, Francis X.; Mariano, Roberto S.. (1995). Comparing Predictive Accuracy. Journal of Business & Economic Statistics. https://doi.org/10.1080/07350015.1995.10524599.
  8. Gebru, Timnit, et al. "Datasheets for datasets" Communications of the ACM, 2021. https://doi.org/10.1145/3458723.
  9. Firth, S.; Lomas, K.; Wright, A.; Wall, R.. (2008). Identifying trends in the use of domestic appliances from household electricity consumption measurements. Energy and Buildings. https://doi.org/10.1016/j.enbuild.2007.07.005.
  10. Hong, Tianzhen; Yan, Da; D’Oca, Simona; Chen, Chien-fei. (2017). Ten questions concerning occupant behavior in buildings: The big picture. Building and Environment 114, 518-530. https://doi.org/10.1016/j.buildenv.2016.12.006.
  11. Varma, Sudhir and Richard Simon. “Bias in error estimation when using cross-validation for model selection.” BMC Bioinformatics, vol. 7, no. 1, 2006. https://doi.org/10.1186/1471-2105-7-91.
  12. Guo, Chuan, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. “On Calibration of Modern Neural Networks.” Proceedings of the 34th International Conference on Machine Learning, PMLR, vol. 70, 2017, pp. 1321-1330. https://proceedings.mlr.press/v70/guo17a.html.
  13. Fawcett, Tom. (2006). An introduction to ROC analysis. Pattern Recognition Letters. https://doi.org/10.1016/j.patrec.2005.10.010.
  14. Jones, Rory V.; Lomas, Kevin J.. (2016). Determinants of high electrical energy demand in UK homes: Appliance ownership and use. Energy and Buildings. https://doi.org/10.1016/j.enbuild.2016.02.020.
  15. White, Halbert. “A Heteroskedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity.” Econometrica, vol. 48, no. 4, 1980, pp. 817-838. https://doi.org/10.2307/1912934.
  16. Ioannidis, John P. A.. (2005). Why Most Published Research Findings Are False. PLoS Medicine. https://doi.org/10.1371/journal.pmed.0020124.
  17. Wilkinson, Mark D.; Dumontier, Michel; Aalbersberg, IJsbrand Jan; Appleton, Gabrielle; Axton, Myles; Baak, Arie; Blomberg, Niklas; Boiten, Jan-Willem; da Silva Santos, Luiz Bonino; Bourne, Philip E.; Bouwman, Jildau; Brookes, Anthony J.; Clark, Tim; Crosas, Mercè; Dillo, Ingrid; Dumon, Olivier; Edmunds, Scott; Evelo, Chris T.; Finkers, Richard; Gonzalez-Beltran, Alejandra; Gray, Alasdair J.G.; Groth, Paul; Goble, Carole; Grethe, Jeffrey S.; Heringa, Jaap; ’t Hoen, Peter A.C; Hooft, Rob; Kuhn, Tobias; Kok, Ruben; Kok, Joost; Lusher, Scott J.; Martone, Maryann E.; Mons, Albert; Packer, Abel L.; Persson, Bengt; Rocca-Serra, Philippe; Roos, Marco; van Schaik, Rene; Sansone, Susanna-Assunta; Schultes, Erik; Sengstag, Thierry; Slater, Ted; Strawn, George; Swertz, Morris A.; Thompson, Mark; van der Lei, Johan; van Mulligen, Erik; Velterop, Jan; Waagmeester, Andra; Wittenburg, Peter; Wolstencroft, Katherine; Zhao, Jun; Mons, Barend. (2016). The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data. https://doi.org/10.1038/sdata.2016.18.
  18. Wasserstein, Ronald L.; Lazar, Nicole A.. (2016). The ASA Statement on p -Values: Context, Process, and Purpose. The American Statistician. https://doi.org/10.1080/00031305.2016.1154108.
  19. Ruellan, Marie; Park, Herie; Bennacer, Rachid. (2016). Residential building energy demand and thermal comfort: Thermal dynamics of electrical appliances and their impact. Energy and Buildings. https://doi.org/10.1016/j.enbuild.2016.07.029.
  20. Amasyali, Kadir; El-Gohary, Nora M.. (2018). A review of data-driven building energy consumption prediction studies. Renewable and Sustainable Energy Reviews. https://doi.org/10.1016/j.rser.2017.04.095.
  21. Foucquier, Aurélie; Robert, Sylvain; Suard, Frédéric; Stéphan, Louis; Jay, Arnaud. (2013). State of the art in building modelling and energy performances prediction: A review. Renewable and Sustainable Energy Reviews. https://doi.org/10.1016/j.rser.2013.03.004.
  22. Geifman, Yonatan, and Ran El-Yaniv. “Selective Classification for Deep Neural Networks.” Advances in Neural Information Processing Systems, vol. 30, 2017. https://arxiv.org/abs/1705.08500.
  23. Candanedo, Luis. (2016). Occupancy Detection [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C5X01N.
  24. Little, Roderick J. A., and Donald B. Rubin. Statistical Analysis with Missing Data. Wiley, 2002. https://doi.org/10.1002/9781119013563.
  25. Saito, Takaya and Marc Rehmsmeier. “The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets.” PLOS ONE, vol. 10, no. 3, 2015, pp. e0118432. https://doi.org/10.1371/journal.pone.0118432.
  26. Newey, Whitney K., and Kenneth D. West. “A Simple, Positive Semi-Definite, Heteroskedasticity and Autocorrelation Consistent Covariance Matrix.” Econometrica, vol. 55, no. 3, 1987, pp. 703-708. https://doi.org/10.2307/1913610.
  27. Roberts, David R., et al. “Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure.” Ecography, vol. 40, no. 8, 2017, pp. 913-929. https://doi.org/10.1111/ecog.02881.
  28. Matthews, B.W.. (1975). Comparison of the predicted and observed secondary structure of T4 phage lysozyme. Biochimica et Biophysica Acta (BBA) - Protein Structure. https://doi.org/10.1016/0005-2795(75)90109-9.
  29. West, Kenneth D.. (1996). Asymptotic Inference about Predictive Ability. Econometrica. https://doi.org/10.2307/2171956.
  30. Candanedo, Luis M.; Feldheim, Véronique. (2016). Accurate occupancy detection of an office room from light, temperature, humidity and CO 2 measurements using statistical learning models. Energy and Buildings. https://doi.org/10.1016/j.enbuild.2015.11.071.

Downloads

Published

2026-11-05