全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2901 3
2011-12-07
悬赏 50 个论坛币 未解决
有一个数据,它包含10个变量和一个分类变量(classification variable)。
现在用前35个观察值(observation)来构造一个分类函数,以一个新观察值分为group1和group2。
这个method我们将用来解决 W:
   W.jpg
X是我们试图分类的10个变量中的一个向量(vector)
x1.png 是group1里面10个变量中的一个向量(vector),

x2.png 是group2里面10个变量中的一个向量(vector)  ,

Sp 是汇集group1和group2的10个变量的方差协方差的矩阵。

当W>0 时,分配X去group1,否则分配X去group2。

现在请分类最后五个观察值,也就是36-40的观察值。要求用SAS PROC  IML解决。

数据为:
复制代码

请懂的高手帮帮忙。
x2.png

原图尺寸 503 Bytes

x2.png

x1.png

原图尺寸 265 Bytes

x1.png

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-12-7 17:22:21
没看明白要干嘛,是在循环吗
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-12-7 17:37:41
原文的要求如下:
It contains 10 measure (or variables) and a classification variable on the first 35 observations.  
The objective is to use this data (the first 35 observations) to construct a classification function which will be able to classify new observations into group 1 or 2.
The method we will use is to construct W, where:
W.jpg

Where X is a vector of the 10 measures on each person we are trying to classify.

x1.png is a vector of means for the 10 measures of the observations in group 1.

x2.png is a vector of means for the 10 measures of the observations in group 2.

Sp is the pooled variance covariance matrix of the 10 measures on the observations in groups 1 and 2.  

The decision rule is:  Assign X to group 1 if W > 0, otherwise assign X to group 2.  Please classify the last five observations in the file, observations 36-40.  Print your results and SAS PROC IML code.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-9-1 08:59:36
yunqingwang 发表于 2011-12-7 17:22
没看明白要干嘛,是在循环吗
应该是简单的
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群