摘要: 创业维艰 javaheadfirst java 设计模式 马斯洛的智慧 失控 已读 从0到1 兴业e家日记:适合基金入门 http://www.xyfunds.com.cn/website/story/xy_manhua.jsp 网站不断更新 变量筛选: 随机森林筛选变量重要性:http://www 阅读全文
posted @ 2016-05-09 14:20 yjjsdu 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Anova: http://www.sbc.su.se/~andale/statcourse/standard.htm Notation for arima: http://support.sas.com/documentation/cdl/en/etsug/63348/HTML/default/v 阅读全文
posted @ 2016-04-14 17:27 yjjsdu 阅读(116) 评论(0) 推荐(0) 编辑
摘要: empty 阅读全文
posted @ 2015-02-26 11:20 yjjsdu 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 【和尚与屠夫】 从前有一个和尚跟一个屠夫是好朋友。和尚天天早上要起来念经,而屠夫天天要起来杀猪。为了不耽误他们早上的工作,是他们约定早上互相叫对方起床。 多年以后,和尚与屠夫相继去世了。屠夫去上天堂了,而和尚却下地狱了。 Why? 因为屠夫天天作善事,叫和尚起来念经,相反地,和尚天天叫屠夫起来杀生…... 阅读全文
posted @ 2014-07-30 14:37 yjjsdu 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1. basic optionssed [options] {command} {input-file}sed -nsed -n 'p' a.out打印a.out文件内容-n: 取消默认打印到屏幕功能sed -fsed [options] -f {sed-commands-in-file} {i... 阅读全文
posted @ 2014-07-27 16:21 yjjsdu 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Task 1: Python in ActionTask 2: 信用卡流程整理 阅读全文
posted @ 2014-07-14 13:17 yjjsdu 阅读(70) 评论(0) 推荐(0) 编辑
摘要: Originally by: 于俊杰 JoinJoin a1.txt a2.txtinner join by the first columnjoin -a1 a1.txt a2.txtleft join by the first columnjoin -a1 -1 1 -2 3 a1.txt ... 阅读全文
posted @ 2014-07-09 21:52 yjjsdu 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 协方差, 协方差矩阵,相关系数 阅读全文
posted @ 2014-05-25 14:47 yjjsdu 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 1. introductionfrom numpy import *random.rand(4,4)#array to matrixrandMat=mat(randon.rand(4,4))#matrix inverseIvrandMat=randMat.I#indentity matrixeye(... 阅读全文
posted @ 2014-05-03 09:38 yjjsdu 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1. quit console > q() or >quit() 2. help > help(solve) or > ?solve > help.start() 3. help.search() --search for help>help.sea... 阅读全文
posted @ 2014-04-11 11:36 yjjsdu 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1. for root, dirs, filenames in os.walk('.'): ......os.walk: search the entire tree of directories 阅读全文
posted @ 2014-03-29 19:06 yjjsdu 阅读(140) 评论(0) 推荐(0) 编辑
摘要: proc rank data=mydata groups=10 out=newdata;var x z;ranks decile_x decile_z;run;Equal Frequency Discretization (EFD) 阅读全文
posted @ 2014-03-26 15:52 yjjsdu 阅读(226) 评论(0) 推荐(0) 编辑
摘要: import os, glob,sysdirname= r'C:\Python33\Lib' if len(sys.argv)==1 else sys.argv[1]allsize=[]allpy=glob.glob(dirname +os.sep+'*.py')for filename in al... 阅读全文
posted @ 2014-03-23 23:48 yjjsdu 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Forking isbased on the notion of copying programs: when a program calls the fork routine, theoperating system makes a new copy of that program and its... 阅读全文
posted @ 2014-03-23 23:34 yjjsdu 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Class 2 Gradient DescentFor \[n\times n\] matrix A, B, tr(AB)=trr(BA) tr(ABC)=tr(CAB)=tr(BCA) tr(A)=tr($A^T$)tr():representing the trace of matrix, equal to the sum of diagonal elements of matrixfor \[A\in R^{m*n}, f(A) \in R^1:\]$(\bigtriangledown)_A f(x)=[\frac{\partial f(A)}{\partial A_(ij)}]_... 阅读全文
posted @ 2014-03-09 08:44 yjjsdu 阅读(526) 评论(0) 推荐(0) 编辑
摘要: sdfds\[x^2\]sdddsdf\[x=\frac{{-b}\pm\sqrt{b^2-4ac}}{2a}\] 阅读全文
posted @ 2014-03-08 23:08 yjjsdu 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-02 14:56 yjjsdu 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #whereami.pyimport os, sysprint('my os.getcwd =>', os.getcwd())print('my sys.path =>', sys.path) # show the first 6 import paths, no brace after sys.p... 阅读全文
posted @ 2014-03-02 13:08 yjjsdu 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Chapter 2 system toolsos.getcwd #current workding directoryos.environ # shell environment variablessys.argv #command-line argumentssys.stdin stdou... 阅读全文
posted @ 2014-02-26 23:48 yjjsdu 阅读(218) 评论(0) 推荐(0) 编辑
摘要: #tkinter examplefrom tkinter import *Label(text='spm').pack()mainloop()#tkinter showinfo buttonfrom tkinter import *from tkinter.messagebox import sho... 阅读全文
posted @ 2014-02-23 17:21 yjjsdu 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #peopleinteract_queryimport shelvefieldnames=('name', 'age','job','pay')maxfield=max(len(f) for f in fieldnames)db=shelve.open('class-shelve')while Tr... 阅读全文
posted @ 2014-02-23 15:55 yjjsdu 阅读(215) 评论(0) 推荐(0) 编辑
摘要: OOP: Structure, Encapsulation, Customization1. Using Classesclass Person: def __init__(self, name, age, pay=0, job=None): self.name=name ... 阅读全文
posted @ 2014-02-22 15:51 yjjsdu 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1. Using formatted files#test scriptbob={'name': 'bob smith', 'age': 42, 'pay':30000, 'job':'dev'}sue={'name': 'sue jones', 'age':45,'pay':40000,'job'... 阅读全文
posted @ 2014-02-22 14:41 yjjsdu 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 1. using listbob=['bob smith', 42, 3000, 'software']sue=['sue jones', 45, 4000, 'hardware']bob[0], sue[2]bob[0].split()[-1]split 默认以空格分隔sue[2]*=1.25p... 阅读全文
posted @ 2014-02-22 10:58 yjjsdu 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Spearman Rank Order 相关系数 是变量排序后的简单相关系数。举例如下:x=(0.8, 1.2, 1.2, 2.3, 18)y=(3, 9, 6, 11, 15)x升序中的顺序数rank_x0.8111.22(2+3)/2=2.51.23(2+3)/2=2.52.3441755y升序... 阅读全文
posted @ 2014-02-19 20:06 yjjsdu 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 目的: 测试单变量与目标变量的线性关系,在排除其他变量影响的条件下的 相关性。求偏相关系数的sas 实现:ods graphics on;proc corr data=fish1 plots=scatter(alpha=0.2 0.3);var height weight;partial lengt... 阅读全文
posted @ 2014-02-19 19:49 yjjsdu 阅读(2848) 评论(0) 推荐(0) 编辑
摘要: 数据分析的变量主要分为一下三类:分类变量/名义变量 (categorical /nominal)顺序变量 (ordinal)区间变量(interval)分类变量:只有种类的区别,无大小(顺序)之分。比如性别:男女,头发颜色:金色,棕色,黑色,白色,红色等。顺序变量:值有大小(顺序)之分的变量,但变量... 阅读全文
posted @ 2014-02-19 19:28 yjjsdu 阅读(879) 评论(0) 推荐(0) 编辑
摘要: 1.proc tabulate data = tmp_re noseps; class RANK; table RANK all,(mean*f=8.4)*( &_vlist.); var &_vlist.; label RANK='Rank'; %if &weight~=1 %the... 阅读全文
posted @ 2013-10-19 16:44 yjjsdu 阅读(193) 评论(0) 推荐(0) 编辑
摘要: In interactive mode, the last printed expression is assigned to the variable _>>> price * tax12.5625>>> price + _113.0625>>> round(_, 2) 113.06print("... 阅读全文
posted @ 2013-09-15 13:29 yjjsdu 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1. There is no 'for' for loop in sas. "Do" will be used; do i=1 to 100; ...; end; 阅读全文
posted @ 2013-07-13 23:06 yjjsdu 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1.在Python中有三种内建的数据结构——列表、元组和字典2.### list begin #!/usr/bin/python# Filename: using_list.py# This is my shopping listshoplist = ['apple', 'mango', 'carr... 阅读全文
posted @ 2013-07-13 16:24 yjjsdu 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.##########if beginnumber = 23guess = int(input('Enter an integer : '))if guess == number: print ('Congratulations, you guessed it.') # New block sta... 阅读全文
posted @ 2013-07-13 13:18 yjjsdu 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-06-08 19:43 yjjsdu 阅读(109) 评论(0) 推荐(0) 编辑
摘要: first line: #!/usr/bin/perlautomatically, find the path of perl using env supported by unixfist line: #!/usr/bin/env perl(Non-unix system, the first l... 阅读全文
posted @ 2013-06-08 19:38 yjjsdu 阅读(199) 评论(0) 推荐(0) 编辑
摘要: by flamephoenix一、进程处理函数 1、进程启动函数 2、进程终止函数 3、进程控制函数 4、其它控制函数二、数学函数三、字符串处理函数四、标量转换函数五、数组和列表函数六、关联数组函数一、进程处理函数1、进程启动函数函数名 eval 调用语法 eval(string) 解说... 阅读全文
posted @ 2013-06-03 20:53 yjjsdu 阅读(184) 评论(0) 推荐(0) 编辑
摘要: by flamephoenix一、文件输入/输出函数 1、基本I/O函数 1)open函数 2)用open重定向输入 3)文件重定向 4)指定读写权限 5)close函数 6)print, printf和write函数 7)select函数 8)eof函数 9)间接文件变量 2、... 阅读全文
posted @ 2013-04-30 23:20 yjjsdu 阅读(122) 评论(0) 推荐(0) 编辑
摘要: by flamephoenix一、数组变量的限制二、定义三、访问关联数组的元素四、增加元素五、创建关联数组六、从数组变量复制到关联数组七、元素的增删八、列出数组的索引和值九、用关联数组循环十、用关联数组创建数据结构 1、(单)链表 2、结构 3、树一、数组变量的限制 /* Hash is a gen... 阅读全文
posted @ 2013-04-30 22:32 yjjsdu 阅读(353) 评论(0) 推荐(0) 编辑
摘要: by flamephoenix一、定义二、调用 1、用&调用 2、先定义后调用 3、前向引用 4、用do调用三、返回值四、局部变量五、子程序参数传递 1、形式 2、传送数组六、递归子程序七、用别名传递数组参数八、预定义的子程序一、定义 子程序即执行一个特殊任务的一段分离的代码,它可以使减少重复代码且... 阅读全文
posted @ 2013-04-17 18:52 yjjsdu 阅读(145) 评论(0) 推荐(0) 编辑
摘要: by flamephoenix一、条件判断二、循环:1、while循环 2、until循环 3、for循环 4、针对列表(数组)每个元素的foreach循环 5、do循环6、循环控制 7、传统的goto语句三、单行条件一、条件判断 if ( ) {}elsif ( ) {}...else{}二、循... 阅读全文
posted @ 2013-04-17 18:45 yjjsdu 阅读(106) 评论(0) 推荐(0) 编辑
摘要: by flamephoenix一、简介二、匹配操作符三、模式中的特殊字符1、字符+2、字符 []和[^]3、字符 *和?4、转义字符5、匹配任意字母或数字6、锚模式7、模式中的变量替换8、字符范围转义前缀9、匹配任意字符10、匹配指定数目的字符11、指定选项12、模式的部分重用13、转义和特定字符的... 阅读全文
posted @ 2013-04-16 21:54 yjjsdu 阅读(133) 评论(0) 推荐(0) 编辑