MetOffice / MetOffice/CSET

Histograms may not be integrating to one, and are probably better as PDFs

Open
#1,173 1 comment 0 reactions 1 assignee Claimed by @BernardClaxton View on GitHub
enhancement
Dominant language
Python
Stars
33
Forks
19
Avg merge
1d 22h
Merged PRs (30d)
30

Description

Currently the histograms are plotted as normalised density plots (e.g. https://github.com/MetOffice/CSET/blob/main/src/CSET/operators/plot.py#L72). However, these are less flexible, and have a subtler interpretation than PDFs (which most users would be familiar with). It also leads to misleading values on the y axis (i.e. values above one) which whilst mathematically accurate can cause interpretation problems.

The idea is to make the histograms more user friendly, and more flexible, by converting them into PDFs by using the counts for each bin and then normalising by the number of elements used to make the histogram.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.