Site icon R-bloggers

It’s not the heat, it’s the heat index

[This article was first published on R – Decision Science News, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

PERCEIVED TEMPERATURE




Click to enlarge

(We got a request for a Celsius version of this post and since we are a full service website we created one and put it here).

So, we were wondering, what’s this heat index we hear about? We went to the Wikipedia article on it. It is an index that combines air temperature and relative humidity to convert a (hot) temperature into something like perceived temperature, how hot it feels. It formalizes the adage “it’s not the heat, it’s the humidity.”

The equation to get heat index from temperature and relative humidity is big:




Click to enlarge

This heat index chart is also complicated, but it allows one to look up the heat index rather easily.




Click to enlarge

We wanted a better way to see what the heat index is doing. So we made this plot:




Click to enlarge

When it’s 90 degrees outside with 90% relative humidity, it feels 30 degrees hotter. That’s a lot of degrees.

It turns out there is another heat index formula. This one’s even more complicated.




Click to enlarge

We wanted to see how it compared to the first, so we plotted both together:




Click to enlarge

We like averaging, so we plotted the average of the two outputs:




Click to enlarge

We thought it looks not so far from linear so we fit a regression model to the average and plotted that:




Click to enlarge

Then we couldn’t resist coming up with a simple heuristic (shown in dots):




Click to enlarge

The heuristic comes pretty close to the regression model.




Click to enlarge

The error (mean absolute deviation) of the heuristic to the average model is about 3 degrees. The error of the regression model to the average model is about 2 degrees, so it’s not bad, considering that the two different heat index formulae can differ by over 5 degrees.

So what’s the heuristic?

It’s quite a bit simpler than the 9 and 16 term equations above and should be good enough for everyday use.

R CODE
For those who want it

The post It’s not the heat, it’s the heat index appeared first on Decision Science News.

To leave a comment for the author, please follow the link and comment on their blog: R – Decision Science News.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.