[Solved] Homework 1 IE7275 Data Mining in Engineering

$25

File Name: Homework_1_IE7275_Data_Mining_in_Engineering.zip
File Size: 414.48 KB

SKU: [Solved] Homework 1 IE7275 Data Mining in Engineering Category: Tag:
5/5 - (1 vote)

Note: Read the book chapter R Graphics.pdf posted on Blackboard. Practice example problems given in the book chapter.

Problem 1 (Forest Fires) [40 points]

The file forestfires.xlsx includes data from Cortez and Morais (2007). The output area was first transformed with a ln(x+1) function. Then, several data mining methods were applied. After fitting the models, the outputs were postprocessed with the inverse of the ln(x+1) transform. Four different input setups were used. The experiments were conducted using a 10fold (crossvalidation) 30 runs. Two regression metrics were measured: MAD and RMSE. A Gaussian support vector machine (SVM) fed with only 4 direct weather conditions (temp, RH, wind and rain) obtained the best MAD value: 12.71 0.01 (mean and confidence interval within 95% using a tstudent distribution). The best RMSE was attained by the naive mean predictor. An analysis to the regression error curve (REC) shows that the SVM model predicts more examples within a lower admitted error. In effect, the SVM model predicts better small fires, which are the majority. Number of instances and attributes are 517 and 13 respectively.

Attribute Information:

X xaxis spatial coordinate within the Montesinho park map: 1 to 9 Y yaxis spatial coordinate within the Montesinho park map: 2 to 9 month month of the year: jan to dec

day day of the week: mon to sun
FFMC FFMC index from the FWI system: 18.7 to 96.20
DMC DMC index from the FWI system: 1.1 to 291.3
DC DC index from the FWI system: 7.9 to 860.6
ISI ISI index from the FWI system: 0.0 to 56.10
temp temperature in Celsius degrees: 2.2 to 33.30
RH relative humidity in %: 15.0 to 100
wind wind speed in km/h: 0.40 to 9.40
rain outside rain in mm/m2 : 0.0 to 6.4
area the burned area of the forest (in ha): 0.00 to 1090.84

First load the file forestfires.csv, next perform the following tasks for the data:

  1. Plot area temp, area vs. month, area vs. DC, area vs. RH for January through December combined in 1 graph. Hint: Place area on Y axis and use 22 matrix to place the plots adjacent to each other.
  2. Plot the histogram of wind speed (km/h).
  3. Compute the summery statistics (min, 1Q, mean, median, 3Q, max,) of part b?
  4. Add a density line to the histogram in part b.
  5. Plot the density function of each month of the 12 months, possibly on one plot. Use different colors in the graph to interpret your result clearly. [Hint: use qplot(geom=density)]
  6. Plot the scatter matrix for temp, RH, DC and DMC. How you can interpret the result in terms of correlation among these data.
  7. Create boxplot for wind, ISI and DC. Are there anomalies/outliers. Interpret your result.
  8. Create the histogram of DMC. Create the histogram of log of DMC. Compare the result and explain your answer.

Problem 2 (Tweeter Accounts) [40 points]

Twitter is a social news website. It can be viewed as a hybrid of email, instant messaging and sms messaging all rolled into one neat and simple package. Its a new and easy way to discover the latest news related to subjects you care about.

This is the data set crawled on July, 2009. BlogCatalog is a social blog directory website. This contains the friendship network crawled. For easier understanding, all the contents and variables are organized in CSV file format.

First load the file M01_quasi_twitter.csv, next perform the following tasks:

  1. How are the data distributed for friend_count variable?
  2. Compute the summery statistics (min, 1Q, mean, median, 3Q, max) on friend_count?
  3. How are the data quality in friend_count variable? Interpret your answer
  4. Produce a 3D scatter plot with highlighting to impression the depth for variables below on csv dataset. created_at_year, education, age. Put the name of the scatter plot 3D scatter plot.
  5. Consider 650, 1000,900,300 and 14900 tweeter accounts are in UK, Canada, India, Australia and US Plot the percentage Pie chart includes percentage amount and country name adjacent to it, and also plot 3D pie chart for those countries along with the percentage pie chart. Hint: Use C=(1, 2) matrix form to plot the charts together.
  6. Create kernel density plot of created_at_year variable and interpret the result.

Problem 3 (Insurance Claims) [20 points]

Consider that we need to rate a product based on four different aspects

Sustainability, Carbon footprint, weight and required power to be built. Those variables are gathered into raw_data.csv spreadsheet in columns A, B, C and D respectively.

First load the file raw_data.csv, next perform the following tasks:

  1. Normalize the data and create new dataset with normalized data and name it

Ndata.

  1. Create the boxplot of all the variables in their original form.
  2. Create boxplot of all the variables in their normalized form.
  3. Compare the result of part b and part c; interpret your answer.
  4. Prepare scatter plot of variables A and B. How correlated the data are in these variables. Interpret your answer.

Files Included in the Folder:

Homework 1.pdf R Graphics.pdf forestfires.csv M01_quasi_twitter.csv raw_data.csv

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Homework 1 IE7275 Data Mining in Engineering
$25