《幻灯片1-上海》由会员分享,可在线阅读,更多相关《幻灯片1-上海(28页珍藏版)》请在金锄头文库上搜索。
1、Statistics II上机实验上机实验EXCEL的统计应用EXCEL的统计应用王静王静 Wang Jing上海金融学院公共经济管理学院统计系上海金融学院公共经济管理学院统计系 Statistics Dept., Shanghai Finance University上 海 金 融 学 院上 海 金 融 学 院王 静王 静两总体参数的统计推断两总体参数的统计推断线性回归线性回归预测预测EXCEL的统计应用EXCEL的统计应用上 海 金 融 学 院上 海 金 融 学 院王 静王 静两 总 体 参 数 的统计推断- 常用抽样分布常用抽样分布 - 两总体均值之差两总体均值之差 - 两总体比例之差两
2、总体比例之差 - 两总体方差之比两总体方差之比上 海 金 融 学 院上 海 金 融 学 院王 静王 静两 总 体 参 数 的统计推断- 常用抽样分布常用抽样分布 - 两总体均值之差两总体均值之差 - 两总体比例之差两总体比例之差 - 两总体方差之比两总体方差之比上 海 金 融 学 院上 海 金 融 学 院王王 静静正态分布正态分布正态分布正态分布一、正态分布概率函数(已知分位数,求累积概率)一、正态分布概率函数(已知分位数,求累积概率) “插入函数统计NORMDIST/ NORMSDIST” 例(1)已知Z=1.68,P(Z2.7)=? 插入函数统计TDIST(2.7,19,1)上 海 金 融
3、 学 院上 海 金 融 学 院王王 静静 2分布分布分布分布一、给定一、给定1-,求临界值,求临界值 “插入函数统计CHIINV(右侧卡方分布)” 例,已知df=10,=0.01(右侧),卡方分布临界值是多少? CHIINV(0.01,10)二、给定分位数,求概率(右侧)二、给定分位数,求概率(右侧) “插入函数统计CHIDIST”例,设22(19),求P(22.7)=? 插入函数统计CHIDIST(2.7,19)上 海 金 融 学 院上 海 金 融 学 院王王 静静F F分布分布分布分布一、给定一、给定1-,求临界值,求临界值 “插入函数统计FINV(右侧分布)” 例,已知df1=10,df
4、2=9,=0.01(右侧),F分布临界值是多 少? FINV(0.01,10,9)二、给定分位数,求概率(右侧)二、给定分位数,求概率(右侧) “插入函数统计FDIST” 例,设F F(10,9),求P(F 2.7)=? 插入函数统计FDIST(2.7,10,9)上 海 金 融 学 院上 海 金 融 学 院王王 静静两 总 体 参 数 的统计推断- 常用抽样分布常用抽样分布 - 两总体均值之差两总体均值之差 - 两总体比例之差两总体比例之差 - 两总体方差之比两总体方差之比上 海 金 融 学 院上 海 金 融 学 院王 静王 静两总体均值之差的区间估计两总体均值之差的区间估计两总体均值之差的区
5、间估计两总体均值之差的区间估计一、使用一、使用z统计量的情况统计量的情况置信下限:置信上限:二、使用二、使用t统计量的情况统计量的情况置信下限:置信上限:22 12 122 12()XXznn+22 12 122 12()XXznn+22 12 12 12()(1)*()2XXNORMSINVSQRTnn+22 12 12 12()(1)*()2XXNORMSINVSQRTnn+()()2 12212 121 12pX Xtn nSn n+ +()()2 12212 121 12pX Xtn nSn n+ +22 2112212(1)(1) 2pnSnSSnn+=+22 2112212(1)(
6、1) 2pnSnSSnn+=+22 1122 1212 1212(1)(1)11()( ,2)*()(2nSnSXXTINVnnSQRTSQRTnnnn+)22 1122 1212 1212(1)(1)11()( ,2)*()(2nSnSXXTINVnnSQRTSQRTnnnn+)上 海 金 融 学 院上 海 金 融 学 院王 静王 静两个总体均值之差的假设检验两个总体均值之差的假设检验两个总体均值之差的假设检验两个总体均值之差的假设检验一、使用一、使用Z统计量统计量二、使用二、使用t统计量统计量上 海 金 融 学 院上 海 金 融 学 院王 静王 静For some time the sal
7、es department has considered if they should replace the 7” photo frames with 8” frames. The interest in 8” frames has appeared after the technical manager returned from a fair where he got the impression that the power consumption measured in watt per hour does not deviate as far as the 7” frames ar
8、e concerned. If this can be verified the firm may decide to change to 8” frames.25 randomly chosen 7” photo frames have been examined. Also 25 randomly chosen 8” photo frames were examined. Their power consumption was measured while showing photos. The result appears from in EXCEL photo frames.? ?Ex
9、ample: Photo framesExample: Photo frames上 海 金 融 学 院上 海 金 融 学 院王 静王 静Assuming that the power consumption of 7” and 8” photo frames follows a normal distribution, test on the 5% level if average power consumption is bigger for 8” photo frames.? ?Example: Photo framesExample: Photo frames上 海 金 融 学 院上 海
10、 金 融 学 院王 静王 静两 总 体 参 数 的统计推断- 常用抽样分布常用抽样分布 - 两总体均值之差两总体均值之差 - 两总体比例之差两总体比例之差 - 两总体方差之比两总体方差之比上 海 金 融 学 院上 海 金 融 学 院王 静王 静两总体比例之差的区间估计两总体比例之差的区间估计两总体比例之差的区间估计两总体比例之差的区间估计()1122 122 12(1)(1)PPPPPPznn+()1122 122 12(1)(1)PPPPPPznn+1122 12 12(1)(1)()(1)*()2PPPPPPNORMSINVSQRTnn+输入公式:输入公式:上 海 金 融 学 院上 海 金
11、 融 学 院王 静王 静两 总 体 参 数 的统计推断- 常用抽样分布常用抽样分布 - 两总体均值之差两总体均值之差 - 两总体比例之差两总体比例之差 - 两总体方差之比两总体方差之比上 海 金 融 学 院上 海 金 融 学 院王 静王 静两个总体方差之比的区间估计两个总体方差之比的区间估计两个总体方差之比的区间估计两个总体方差之比的区间估计22222 12112 2 21221212(1,1)(1,1)SSSS FnnFnn 置信上限:置信上限:置信下限:置信下限:22 1212()/(1,1,1)2SSFINVnn22 1212()/(,1,1)2SSFINVnn上 海 金 融 学 院上
12、海 金 融 学 院王 静王 静两总体方差比的假设检验两总体方差比的假设检验两总体方差比的假设检验两总体方差比的假设检验F检验:检验:上 海 金 融 学 院上 海 金 融 学 院王 静王 静For some time the sales department has considered if they should replace the 7” photo frames with 8” frames. The interest in 8” frames has appeared after the technical manager returned from a fair where he
13、got the impression that the power consumption measured in watt per hour does not deviate as far as the 7” frames are concerned. If this can be verified the firm may decide to change to 8” frames.25 randomly chosen 7” photo frames have been examined. Also 25 randomly chosen 8” photo frames were exami
14、ned. Their power consumption was measured while showing photos. The result appears from in EXCEL photo frames.? ?Example: Photo framesExample: Photo frames上 海 金 融 学 院上 海 金 融 学 院王 静王 静Assuming that the power consumption of 7” and 8” photo frames follows a normal distribution, test on the 5% level if
15、the variance of the power consumption may be the same for both 7” and 8” photo frames.? ?Example: Photo framesExample: Photo frames上 海 金 融 学 院上 海 金 融 学 院王 静王 静回 归 分 析- 简单线性回归简单线性回归 - 多元线性回归多元线性回归上 海 金 融 学 院上 海 金 融 学 院王 静王 静回归分析回归分析回归分析回归分析上 海 金 融 学 院上 海 金 融 学 院王 静王 静To give the purchasing department
16、 a good basis on which to decide which digital photo frames should be included in the range, the management of DigiFrames has asked the marketing department to find out which parametres are most important in determining the sales success of any photo frame. The marketing department has collected information about the sa