多變量統計分析 hung chen department of mathematics national taiwan university...

41
多多多多多多多 Hung Chen Department of Mathematic s National Taiwan Universi ty [email protected] 2/19/2008 https: ceiba.ntu.edu.tw?

Upload: jonah-patterson

Post on 21-Jan-2016

256 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

多變量統計分析

Hung Chen

Department of Mathematics

National Taiwan University

[email protected]

2/19/2008

https: ceiba.ntu.edu.tw?

Page 2: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

課程大綱 • Matrix Algebra and Random Vectors

• Multivariate Normal Distribution

– Random sample

– Inference About a Mean Vector

– Likelihood Ratio Tests, Confidence Regions

• Comparisons of Several Multivariate Means

• Principal component Analysis

• Factor Analysis

• Canonical Correlation Analysis

• Discrimination and Classification

• Clustering

Page 3: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

課程基本資訊 • 時間 : 星期二 9:10~10:00 星期四 11:20~13:10• 地點 : 星期二新 504; 星期四 新 501• 課程網址 : https://ceiba.ntu.edu.tw/962msi/ • 預備知識 : Calculus, Probability (convergence concept & proof) a

nd Math. Stat. (at least at the level of Rice’s book Mathematical Statistics and Data Analysis). Linear algebra.

• 課程目標 : –Learn basic techniques for analysis of multi-dimensional data. –Study multivariate distributions, especially Gaussian distributio

n.–Understand multivariate statistical inference and applications su

ch as discriminant analysis and cluster analysis. –Discuss various methods for dimension reduction, including pri

ncipal component analysis, factor analysis, Canonical Correlation Analysis, etc.  

Page 4: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

課程基本資訊 • 教科書 : Johnson, R.A. and Wichern, D.W. (2007) Applied Multi

variate Statistical Analysis. Pearson Prentice Hall. • 評量方式 :

–Homework 30%. –Midterm 35%.–Final 35%.

• 面談時間 :– 星期二 15:20-16:20 及 待定

• 課程助教林曉薇 ([email protected] )  

Page 5: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 6: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 7: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 8: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 9: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 10: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

Objective: Dimension Reduction

• http://www.r-project.org/• 程式套件 : 安裝或載入• Flury• data(swiss.heads)• swiss.heads• ?swiss.heads• pairs(swiss.heads) • Principal Components Analysis

–Princomp–analysis<- princomp(~ ., data = swiss.heads, cor = FALSE)–screeplot(analysis)– screeplot(analysis, npcs=24, type="lines")

Page 11: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 12: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 13: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 14: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 15: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

Example 1.2

Page 16: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 17: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

pairs(swiss.heads)

Page 18: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 19: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 20: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 21: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 22: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 23: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 24: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 25: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

Example 1.1 Scatterplot of midge data

Page 26: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 27: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 28: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 29: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 30: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

Iris Data Set

data(irisf)pairs(irisf[,-1])

Page 31: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 32: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 33: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 34: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 35: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 36: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?

Example 1.3 Wing length of Water Pipits

Page 37: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 38: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 39: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 40: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?
Page 41: 多變量統計分析 Hung Chen Department of Mathematics National Taiwan University hchen@math.ntu.edu.tw 2/19/2008 https: ceiba.ntu.edu.tw?