自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

云金杞

Quant\Econometrician\Programmer\MFIn\CIIA\FRM\CFP

  • 博客(10)
  • 资源 (9)
  • 问答 (2)
  • 收藏
  • 关注

翻译 python-numpy-bootstrap模拟

for i in range(50): # Generate bootstrap sample: bs_sample bs_sample = np.random.choice(rainfall, size=len(rainfall)) # Compute and plot ECDF from bootstrap sample x, y = ecdf(bs_samp...

2018-03-18 19:10:48 1333

翻译 python-numpy-相关性、回归、画图-np.polyfit(x,y,deg=1)

from scipy import stats# Plot the illiteracy rate versus fertility_ = plt.plot(illiteracy, fertility, marker='.', linestyle='none')# Set the margins and label axesplt.margins(0.02)_ = plt.xla

2018-03-18 18:57:57 6999

翻译 python-numpy-指数分布

# Seed random number generatornp.random.seed(42)# Compute mean no-hitter time: tautau = np.mean(nohitter_times)# Draw out of an exponential distribution with parameter tau: inter_nohitter_timei...

2018-03-18 17:40:46 4338

翻译 python-numpy-指数分布模拟

def successive_poisson(tau1, tau2, size=1): # Draw samples out of first exponential distribution: t1 t1 = np.random.exponential(tau1, size=size) # Draw samples out of second exponential d...

2018-03-17 10:27:52 8369

翻译 python-numpy-正态分布的模拟--pdf图--cdf图---正态分布的拟合

# Draw 100000 samples from Normal distribution with stds of interest: samples_std1, samples_std3, samples_std10samples_std1=np.random.normal(20,1,size=100000)samples_std3=np.random.normal(20,3,size=...

2018-03-17 10:02:48 16940 5

翻译 python-numpy-泊松分布

# Draw 10,000 samples out of Poisson distribution: samples_poissonsamples_poisson=np.random.poisson(10,size=10000)# Print the mean and standard deviationprint('Poisson: ', np.mean(samples_pois

2018-03-17 09:52:53 10238

翻译 python-numpy-伯努利试验模拟-np.random.binomial--自定义bins的直方图

def perform_bernoulli_trials(n, p): """Perform n Bernoulli trials with success probability p and return number of successes.""" # Initialize number of successes: n_success n_success = ...

2018-03-16 20:50:25 4578

转载 python-numpy-方差、相关系数

# Array of differences to mean: differencesdifferences=versicolor_petal_length-np.mean(versicolor_petal_length)# Square the differences: diff_sqdiff_sq=np.square(differences)# Compute the mean

2018-03-16 20:18:32 5293

翻译 python-numpy-计算分位数

# Specify array of percentiles: percentilespercentiles = np.array([2.5, 25, 50, 75, 97.5])# Compute percentiles: ptiles_versptiles_vers = np.percentile(versicolor_petal_length, percentiles)# Pri

2018-03-16 10:56:07 28916

转载 python计算ecdf代的函数

def ecdf(data): """Compute ECDF for a one-dimensional array of measurements.""" # Number of data points: n n = len(data) # x-data for the ECDF: x x = np.sort(data) # y-da

2018-03-13 21:53:47 5654

03、债券策略需要的数据.rar

10年期国债收益率与五年期国债收益率的数据均来自英为财经。 10年期国债价格(全价)使用10年期国债期货价格指数代替; 5年期国债价格(全价)使用5年期国债期货价格指数代替;

2020-07-26

行为投资学手册.rar

行为投资学手册思维导图和笔记:一张晰图,一个xmind思维导图源文件。。。

2020-02-08

spss序列基本数据

spss序列基本数据

2017-03-08

python forfinance---code

Build real-life Python applications for quantitative finance and financial engineering

2017-01-19

statsmodels-0.8.0rc1-cp35-cp35-python安装包

statsmodels-0.8.0rc1-cp35-cp35-python安装包

2016-12-09

python写的计算小程序

可以锻炼数学

2016-11-15

python--easygui-0.97安装包

官方安装easygui的安装包,解压下载就可以。

2016-11-12

PyQt4---python安装spyder依赖包

安装spyder使用

2016-11-08

珠心神算-最简洁的锻炼数学计算的小程序

最近智商很捉急,就想着写一个小软件,没事锻炼一下数学的加减乘运算,提高一下自己思维的灵敏度。正好这周末学习autoit,就用这个写了一个小程序。 该软件代码实现了下列功能: 1、选择难易程度 设置了三个级别的难易程度, 初级计算10以内的加减乘 中级计算10-100区间的加减乘 高级计算100-1000之内的加减乘 2、设置每个程度计算多少次 初级 计算100次

2016-10-30

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除