# -*- coding: utf-8 -*-"""Created on Fri Feb 17 15:08:37 2017@author: yunjinqiE-mail:yunjinqi@QQ.comDifferentiate yourself in the world from anyone else."""import pandas as pdfrom scipy import statsdf=pd.read_csv('C:/Users/Administrator/exam0203.csv')dftype(df)x=df.iloc[::,3]y=df.iloc[::,4]beta, alpha, r_value, p_value, std_err=stats.linregress(x,y)betaalphar_value#r_squre=r_value*r_valuep_valueR语言和Python回归结果是相同的,但是Python的界面很不好看,在统计上,Python还是需要进一步努力
新闻热点
疑难解答