Top Banner
ECE 29595 Introduction to Data Science Instructor: Milind Kulkarni Fridays, 1:30–2:20
18

ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

May 31, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

ECE 29595Introduction to Data Science

Instructor: Milind KulkarniFridays, 1:30–2:20

Page 2: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

what is data?

Page 3: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

lots of different definitions

3

Information

Data

Digital Data

Knowledge

(Representations of the World)

(Quantified Information)

Measurements

False Belief Information Data Actions

Knowledge

False Belief

Page 4: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

humans have used data forever

• Ever since Thag Simmons first thought, “Last time, we only sent two people to hunt the smilodon. Maybe this time we should send three?”

4

Page 5: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

why do we use data?

• Analyzing data helps us make decisions and take actions

5

Page 6: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

what has changed?

• There’s a lot more data, and we’re trying to do more with it!

6

Page 7: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

a parable of purdue professors

7

Prof. Milind Kulkarni (ECE) builds systemsto make data analyses run faster

Prof. Bryan Pijanowski (Forestry) collects sound recordings from forests to studyecological change

Prof. Seungyoon Lee (Comm)analyzes social media behaviorto understand how social networkshelp people process information

Prof. Jennifer Neville (CS) buildsnew machine learning tools to study graphs and networks

Prof. Stanley Chan (ECE andStats) develops new algorithmsfor extracting data and signalsfrom noisy images

Are they doing data

science?

Page 8: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

what is data science?

• Collecting data from a wide variety of sources and putting them into a consistent format?

• Making observations about patterns in data?

• Visualizing trends in data?

• Making predictions about what will happen in the future?

• Identifying similarity between data points?

• Developing new machine learning and data mining algorithms?

• Accelerating analysis algorithms?

8

Yes!

Page 9: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

data science is a lot of things

9

visualizing data

collecting/organizing data analyzing data

using analyses to make predictions

identifying patterns in data

interpreting data

building systems for data analysis

privacy concerns

ethics writing data analyses

Page 10: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

data science is a lot of things

10

visualizing data

collecting/organizing data analyzing data

using analyses to make predictions

identifying patterns in data

interpreting data

building systems for data analysis

privacy concerns

ethics writing data analyses

Page 11: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

landscape

• This is one of three one-credit classes that cover data science topics

• PHIL 293 – Ethics for Data Sciences

• ILS 295 – Introduction to Data management

11

Information Data Actions

Knowledge

False Belief

Page 12: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

syllabus break!

12

Page 13: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

data analysis in “practice”

• Lets say we have a data set of applicants to Purdue

• What might we want to learn about them?

13

Name High school GPA SAT Math SAT R/W Residence

Jane Doe 4.7 760 700 Indiana

Purdue Pete 3.5 680 620 Indiana

B. O. Iler 3.0 800 650 Michigan

Engy Neer 4.2 750 590 N.C.

… … … … …

Page 14: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

descriptive statistics

• Which students come from which states?

• What is the distribution of GPAs? SAT scores?

• Can build histograms — but how do we know how big to make the buckets?

14

0

10

20

30

40

2.5–3.0 3.0–3.5 3.5–4.0 4.0+

Page 15: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

reasoning about data• How do Purdue applicants compare to the national average?

• Mean GPA of applicants: 3.6

• Is this high or low?

• Can sample GPA of all high school students (randomly collect 1000 GPAs)

• Mean GPA is 3.4

• Does this mean Purdue students have a higher GPA on average?

• Need more information!

• Need to know about variance of the data (what is the spread of GPAs)

• Need to know the confidence interval (what is the likely range of the true mean GPA?)

15

Page 16: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

making predictions

• Can we predict how successful a particular applicant might be at Purdue?

• Idea: look at the application statistics of the current seniors and see if there is a relationship between their statistics and their Purdue GPA

• One way to find a relationship is using linear regression

• Might tell you something like: “a Purdue student’s GPA is predicted mostly by their high school GPA, and not very much by their SAT score”

16

Page 17: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

classifying students

• What if I want to make admissions decisions more quickly

• Predict whether a student should be accepted or not

• Idea: compare each applicant to past applicants that were admitted and those that were rejected

• See whether this applicant is more similar to other admitted applicants, or to rejected applicants

• This is a k-nearest neighbor classifier

17

c�Stanley Chan 2017. All Rights Reserved.

k-NN

k-Nearest Neighbor

I Start with two labeled clusters

I Give me a new data point x

I Draw a circle around x

9 / 15

Page 18: ECE 29595 Introduction to Data Science - Purdue University · data science is a lot of things 10 visualizing data collecting/organizing data analyzing data using analyses to make

grouping students

• What if I just want to know if there are different groups of students

• Idea: see if students are clustered together in some way

• Some students look more like “nearby” students than students that are “far away”

• Questions: what features of students should you consider (e.g., maybe don’t consider something like hair color!)

• This is k-means clustering

18

c�Stanley Chan 2017. All Rights Reserved.

K-means

Iteration 2a. Cluster Assignment.

I Use the new centroid 1 and 2

I For every data point j , find its nearest centroid

I Then label them according to the class

13 / 20