Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Energy Appliances Dataset The Dataset for this assignment is modified version of a subset of data used in Candanedo et al , 2 0 1

Energy Appliances Dataset
The Dataset for this assignment is modified version of a subset of data used in Candanedo et al,2017.
The experimental data have been used to create models of energy use of appliances in a low-energy house.
The modified Dataset provides the energy use of Appliances (denoted as Y).
The Dataset comprises 5 features (variables), which are denoted as X1, X2, X3, X4 and X5.
The details about these variables are given below:
X1: Temperature in living room area (Celsius degrees)
X2: Humidity in living room area (percentage)
X3: Temperature in office room (Celsius degrees)
X4: Humidity in office room (percentage)
X5: Pressure (millimeter of mercury)
Y: Appliances energy consumption (Wh)
For more information about the variables see Candanedo et al,2017.
Assignment tasks
T1. Understand the data
(i) Download the txt file (ENB_2023.txt) and save it to your R working directory.
(ii) Assign the data to a matrix, e.g. using
the.data <- as.matrix(read.table("ENB_2023.txt"))
(iii) The variable of interest is Y. To investigate Y, generate a subset of num_row=400(use the same setting
for the following tasks as well) with numerical data e.g. using:
my.data <- the.data[sample(1:num_samples,num_row) c(1:num_col)]
This would give you a new dataset with num_row rows and num_col columns. Values of num_sample and num_col
have to be determined from the data provided.
(iv)Use scatter plots and histograms to understand the relationship between each of the variables X1 X2, X3, X4, X5,
and your variable of interest Y, i.e., catter plots of (X1, Y),(X2, Y),...,(X5, Y), and histograms of X1 X2, X3,
X4, X5, Y.
T2. Transform the data
Choose any FOUR variables from X1, X2, X3, X4, X5.
Make appropriate transformations so that the values can be aggregated in order to predict
the variable of interest Y.
Assign your transformed data along with your transformed variable of interest to an array
(it should be ``num_row rows and 5 columns). Save it to a txt file titled "name-transformed.txt".
write.table(your.data,"name-transformed.txt")
The following tasks are based on the saved transformed data.
T3. Build models and investigate the importance of each variable.
(i) Download the AggWaFit.R file to your working directory and load into the
R workspace using,
source("AggWaFit718.R")
(ii) Use the fitting functions to learn the parameters for
a. A weighted arithmetic mean (WAM),
b. Weighted power means (WPM) with p =0.5,
c. Weighted power means (WPM) with p =2,
d. An ordered weighted averaging function (OWA).
T4. Use your model for prediction.
Using your best fitting model from T3, i.e., WAM, WPM(0.5), WPM(2), or OWA, predict Y (Appliances)
for the following inputs:
X1=19.1, X2=43.29, X3=19.7, X4=43.4, X5=743.6
You should use the same pre-processing as in Task 2.
Compare your prediction with the measured Y=60.
T5. Summarise your data analysis in up to 20 slides for a 5-minute presentation
The slides should include the following content:
- Correlations between the variables;
- What kinds of data distributions you have identified in the raw data, use the histograms you have produced;
- List and explain the transformations applied for the selected four variables and the variable of interest;
- Explain the importance of the variables you have selected;
- The best fitting model on your selected data; include two tables:
one with the error measures and correlation coefficients, and one summarizing the weights/parameters
and any other useful information learned for your data;
- Your prediction result and comment on wheather you think it is reasonable;
- Discuss the best conditions (in terms of your chosen variables) under which a low energy use of
appliances will occur.
- Comment on the implications and limitations of the fitting model you used for prediction.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions