Friday, March 27, 2020

Assignment #10

Time Series and Visualization

This post covers the early 2015 “Occupancy Detection Data Set” from the UC Irvine Machine Learning Repository – data is here.

Verbatim information for the data set follows:

“Abstract: Experimental data used for binary classification (room occupancy) from Temperature, Humidity, Light and CO2. Ground-truth occupancy was obtained from time stamped pictures that were taken every minute."

The data set includes 3 files that were bound together. The 3 files did not have contiguous times, so the plot will have some non-recorded values. The overall data set I used has a cleaned dimension of 20560 x 7.

The variables show that when the office room is occupied (teal color), some lights are turned on (measured in Lux) and the temperature in the room increases. This latter makes sense as it is early February and the heater is most likely turned on. The CO2 levels measure exhaled air. It is interesting to see the higher levels on 9 February and it's possible to speculate that maybe there was a meeting held in that room. The 2 humidity variables also seem to validate room occupancy.




Related files can be obtained from GitHub @ git-me .


References

Luis M. Candanedo, Véronique. Accurate occupancy detection of an office room from light, temperature, humidity and CO2 measurements using statistical learning models. Feldheim. Energy and Buildings. Volume 112, 15 January 2016, Pages 28-39.


Monday, March 23, 2020

Assignment #9

Multivariate Analysis using corrgram and lattice

Multivariate analysis allows us to consider the effects that various variables may have on another condition. I used the "birthwt" data set from the "MASS" package. The data sets' dimension is 189 x 10. For brevity, I just considered two variables with a focus on design principles.

The five basic principles of design include alignment, repetition, contrast, proximity, and balance. This two-page assignment includes all of these principles except for contrast.

The two pages show repetition by title (Birth Weights) and usage of somewhat consistent graphs (histograms). Page one shows asymmetrical balance with some usage of vertical and horizontal alignment. Also, page one shows visual connection through proximity by placing the legend near the correlation diagram. Page two clearly shows symmetrical balance with alignments.

Related files can be obtained from GitHub @ git-me .









Wednesday, March 4, 2020

Assignment #8

Correlation or Regression Analysis Using ggplot2

Scatter plot matrix.

This is a scatter plot matrix from the urine data set in the boot package. The matrix has a dimension of 79 x 7.

A scatter plot matrix is a great first tool as part of the exploratory phase. This kind of matrix allows for a quick and rich understanding of the interrelationships between variables.

This particular plot extends the pairs{base} function with the ggpairs{GGally} function. By default, it adds a density graph on the diagonal along with correlation statistics.

Related files can be obtained from GitHub @ git-me .