Download presentation
Presentation is loading. Please wait.
1
Assignment 2 (in lab) Peter Fox and Greg Hughes
Data Analytics – ITWS-4600/ITWS-6600 Week 3, February 2, 2017
2
Labs Regression kNN Kmeans 1 each for Assignment 2
New multivariate dataset kNN New Abalone dataset Kmeans (Sort of) New Iris dataset 1 each for Assignment 2
3
The Dataset(s) http://aquarius.tw.rpi.edu/html/DA
Some new ones; dataset_multipleRegression.csv, abalone.csv Code fragments, i.e. they will not run as-is, on the following slides as Lab3b_knn1_2016.R, etc.
4
How does this work? Following slides have 3 lab assignments for you to complete. These should be completed individually Once you complete (one or all), please raise your hand or approach me, or Rahul to review what you obtained (together these =10% of your grade) There is nothing to hand in If you do not complete part/all today that is okay but you will need to schedule a time to show your results
5
Refer to Tuesday slides and
Script fragments on website..
6
Regression (1) Retrieve this dataset: dataset_multipleRegression.csv
Using the unemployment rate (UNEM) and number of spring high school graduates (HGRAD), predict the fall enrollment (ROLL) for this year by knowing that UNEM=9% and HGRAD=100,000. Repeat and add per capita income (INC) to the model. Predict ROLL if INC=$30,000 Summarize and compare the two models. Comment on significance
7
Classification (2) Retrieve the abalone.csv dataset
Predicting the age of abalone from physical measurements. The age of abalone is determined by cutting the shell through the cone, staining it, and counting the number of rings through a microscope: a boring and time-consuming task. Other measurements, which are easier to obtain, are used to predict the age. Perform knn classification to get predictors for Age (Rings). Interpretation not required.
8
Clustering (3) The Iris dataset (in R use data(“iris”) to load it)
The 5th column is the species and you want to find how many clusters without using that information Create a new data frame and remove the fifth column Apply kmeans (you choose k) with 1000 iterations Use table(iris[,5],<your clustering>) to assess results
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.