10.53 Numeric
20180723 Summaries of numeric data are provided using base::summary(). In the following we identify the numeric variables and summarise each. In doing so, as a data scientist, we want to again observe any oddities and to explain them.
## [1] "min_temp" "max_temp" "rainfall" "evaporation"
## [5] "sunshine" "wind_gust_speed" "wind_speed_9am" "wind_speed_3pm"
## [9] "humidity_9am" "humidity_3pm" "pressure_9am" "pressure_3pm"
## [13] "cloud_9am" "cloud_3pm" "temp_9am" "temp_3pm"
## [17] "risk_mm"
## min_temp max_temp rainfall evaporation
## Min. :-8.70 Min. :-4.10 Min. : 0.000 Min. : 0.000
## 1st Qu.: 7.50 1st Qu.:18.00 1st Qu.: 0.000 1st Qu.: 2.600
## Median :11.90 Median :22.70 Median : 0.000 Median : 4.800
## Mean :12.08 Mean :23.25 Mean : 2.296 Mean : 5.525
## 3rd Qu.:16.80 3rd Qu.:28.30 3rd Qu.: 0.600 3rd Qu.: 7.400
## Max. :33.90 Max. :48.90 Max. :474.000 Max. :138.700
## NA's :3285 NA's :3085 NA's :5930 NA's :109530
## sunshine wind_gust_speed wind_speed_9am wind_speed_3pm
## Min. : 0.000 Min. : 2.00 Min. : 0.00 Min. : 0.00
## 1st Qu.: 4.900 1st Qu.: 31.00 1st Qu.: 7.00 1st Qu.:13.00
## Median : 8.500 Median : 39.00 Median :13.00 Median :19.00
## Mean : 7.643 Mean : 40.14 Mean :14.07 Mean :18.65
## 3rd Qu.:10.600 3rd Qu.: 48.00 3rd Qu.:19.00 3rd Qu.:24.00
## Max. :14.500 Max. :135.00 Max. :87.00 Max. :87.00
## NA's :118202 NA's :15659 NA's :3842 NA's :7254
....
Reviewing this information we can make some obvious observations. Temperatures, for example, appears to be in degrees Celsius rather than Fahrenheit. Rainfall looks like millimetres. There are some quite skewed distributions with min and median small but large max values. As data scientists we will further explore the distributions as in Chapter 9.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0