Docsity

Introduction to Statistical Learning, Exams of Statistics

Partial preview of the text

Download Introduction to Statistical Learning and more Exams Statistics in PDF only on Docsity!

Introduction to Statistical Learning

Bin Li

IIT Lecture Series

What is statistical learning

I Statistical learning is the science of learning from the data

using statistical methods.

I Predict the price of a stock in 6 months from now, on the

basis of company performance measures and economic data.

I Predict whether a patient, hospitalized due to a heart attack,

will have a second attack based on patient’s demographic, diet

and clinical measurements.

I Identify the risk factors for prostate cancer.

I Given a collection of text documents, we want to organize

them according to their content similarities.

I Statistical learning plays a key role in data mining, artificial

intelligence and machine learning.

I We can divide all statistical learning problems into supervised

and unsupervised situations.

I Supervised learning is where both the predictors, X

i ’s, and the

response, Yi , are observed (e.g. regression/classification).

I In unsupervised learning, only X

i ’s are observed (e.g.

clustering/market bastet analysis).

Handwritten Digit Recognition (cont.)

Figure 11.9: Examples of training cases from ZIP code

data. Each image is a 16 × 16 8-bit grayscale represen-

Figure from EOSL 2009

A Recent Project with Dr. Chakraborty

Wavelength (nm)

Data and the Black Box

side, and on the other side the response variables y

come out. Inside the black box, nature functions to

associate the predictor variables with the response

variables, so the picture is like this:

y nature x

There are two goals in analyzing the data:

Prediction. To be able to predict what the responses

are going to be to future input variables;

Information. To extract some information about

how nature is associating the response variables

to the input variables.

There are two different approaches toward these

goals:

I Prediction. To be able to predict what the responses are

going to be to future input variables.

I Information. To extract some information about how nature

is associating the response variables to the input variables.

I Two different approaches towards the above goals.

Two Cultures

I Data Modeling Culture from statisticians.

ION

nk of the data as

hich a vector of

variables) go in one

onse variables y

ure functions to

with the response

x

g the data:

hat the responses

iables;

formation about

ponse variables

hes toward these

ts with assuming

ide of the black

model is that data

ws from

The values of the parameters are estimated from

the data and the model then used for information

and/or prediction. Thus the black box is filled in like

this:

y x

linear regression

logistic regression

Cox model

Model validation. Yes–no using goodness-of-fit

tests and residual examination.

Estimated culture population. 98% of all statisti-

cians.

The Algorithmic Modeling Culture

The analysis in this culture considers the inside of

the box complex and unknown. Their approach is to

find a function fx—an algorithm that operates on

x to predict the responses y. Their black box looks

like this:

y unknown x

decision trees

neural nets

Model validation. Measured by predictive accuracy.

Estimated culture population. 2% of statisticians,

I Start with assuming a stochastic model for the black box;

I Estimate parameters of the model from the data;

I Use fitted model to do prediction;

I Use hypothesis test and CI to do inference.

I The Algorithmic Modeling Culture from CS people.

DUCTION

ta. Think of the data as

box in which a vector of

endent variables) go in one

he response variables y

box, nature functions to

riables with the response

like this:

ature x

alyzing the data:

redict what the responses

put variables;

t some information about

the response variables

approaches toward these

e

ure starts with assuming

the inside of the black

on data model is that data

dent draws from

predictor variables,

random noise, parameters)

epartment of Statistics,

The values of the parameters are estimated from

the data and the model then used for information

and/or prediction. Thus the black box is filled in like

this:

y x

linear regression

logistic regression

Cox model

Model validation. Yes–no using goodness-of-fit

tests and residual examination.

Estimated culture population. 98% of all statisti-

cians.

The Algorithmic Modeling Culture

The analysis in this culture considers the inside of

the box complex and unknown. Their approach is to

find a function fx—an algorithm that operates on

x to predict the responses y. Their black box looks

like this:

y unknown x

decision trees

neural nets

Model validation. Measured by predictive accuracy.

Estimated culture population. 2% of statisticians,

many in other fields.

In this paper I will argue that the focus in the

statistical community on data models has:

I Approximate the black box by some complicated function;

I Estimate the function from some algorithm;

I Both prediction and information are based on fitted functions;

Chlorine Project

I Predictors: mass spectrum predictor with molecular weight

ranges from 30 to over 10,000.

I Response: contains chlorine or not.

I Training set: 25,000 compounds with known chemical

structure and mass spectra. Test set: 5,000 known

compounds.

I Model: Linear discriminant analysis (LDA), quadratic

discriminant analysis (QDA) and decision trees.

I Results: LDA and QDA were difficult to adapt to the variable

dimensionality. Decision tree with 1,500 yes-no questions:

success with 95% prediction accuracy.

I Q: What are the possible reasons make tree successful in

Chlorine project?

Perceptions on Statistical Analysis

I Focus on finding a good solution, that’s what consultants get

paid for.

I Live with the data before you plunge into modeling.

I Search for a model that gives a good solution, either

algorithmic or data.

I Predictive accuracy on test sets is the criterion for how good

the model is.

I Computers are an indispensable partner. Programming is a

necessary skill for statisticians.

A Study for Gender Discrimination

A study was done several decades ago by a well-known member of

a university statistics department to assess whether there was

gender discrimination in the salaries of the faculty.

All personnel files were examined and a data base set up which

consisted of salary as the response variable and 25 other variables

which characterized academic performance. Such as papers

published, quality of journals published in, teaching record,

evaluations, etc.

Gender appears as a binary predictor variable.

A linear regression was carried out on the data and the gender

coefficient was significant at the 5% level. This was believed as

strong evidence of sex discrimination.

A Study for Gender Discrimination (cont.)

I Can the data gathered answer the question

posed?

I Is inference justified when your sample is the

entire population?

I Should a data model be used?

I The deficiencies in analysis occurred because the

focus was on the model and not on the problem.

Limitations of Data Modeling

I Enforcing the form of the model in data modeling.

I Relatively low prediction accuracy on data generated from

complex systems.

I Old saying: “If all a man has is a hammer, then every problem

looks like a nail.”

I Approaching problems by looking for a data model imposes an

a priori straight jacket that restricts the ability of statisticians

to deal with a wide range of statistical problems.

I Takeaway message: to solve a wider range of data problems,

we need a larger set of tools!

Estimating unknown function f

I Suppose we observe Y

i and^ Xi = (Xi 1 ,^ Xi 2 ,... ,^ Xip ) for

i = 1,... , n.

I We believe that there is a relationship between Y and at least

one of the X ’s. So we model the relationship as

Yi = f (Xi) + i with E {i } = 0,

where f is an unknown function and  is a random error.

Years of Education

Income

Years of Education

Income

Figure from ISLR 2013

Estimating unknown function f (cont.)

I The accuracy of estimating f depends on

I the size of variation for the 

i ’s.

I the complexity of fitted function ˆf

l l

l

l

l

l

l

ll

l

l l

l

l l l l

l

l l

l

l

l l

l l

l

l

l

l l

l

l l

l

l

l

l

l

l l

l

l

ll

l

l

l ll

l

l

l l

l

l

l

l (^) l

l

l

l l

l

l

l

l

l

l

l

ll l l

l

l

l

l l

l

l

l

l l l

l

l l

l

l

l

l

l

l

ll l

l l

l

X

Y

SD=0.

Span=1/

Span=2/

l

l

l

l

l l

l

l l

l

l

l

l

l

l

l l

l

l l

l

l

l

l

l

l

l l

l

l

l

l

l l

l

l

l l

l l

l

l

l l

l

l l

l

l

l l l

l

l

l

l

l

l

l l

l

l

l l

l

l

l

l

l

l

l

l

l

l

l

l

l l l

l

l l

l

l

l l

l

l

l

l l

l

l

l l

l

l

l

l l

X

Y

SD=1.

Why do we estimate f?

I Two main reasons: prediction and inference.

I Make accurate predictions of Y based on a new value of X.

I Which particular predictors actually affect the response?

I Is the relationship positive or negative?

I Is the relationship a simple linear one or is it more complicated

etc.?

I Two examples:

I Interested in predicting how much money an individual will

donate based on observations from 90,000 people on which we

have recorded over 400 different characteristics. For a given

individual should I send out a mailing?

I Wish to predict median house price based on 14 variables.

Understand which factors have the biggest effect on the

response and how big the effect is. For example how much

impact does a river view have on the house value etc.