When it comes to doing time series analysis, often times it is necessary to calculate lags for a specific variable. To do this in R, we use the diff() function. Click here to read my updated post (Example No. 8) […]
Continue reading »Category: Uncategorized
Normal Distributions and the Law of Large Numbers – An Illustration Using Python
Like any phenomenon with a statistical distribution, trading is often influenced by the “law of large numbers”; meaning that the more observations we have across any particular dataset, the more that the data will resemble a normal distribution where the […]
Continue reading »Return Analysis and Histogram Generation
This particular program analyses returns contained in a csv file to generate a histogram graphing the same in order to analyse return distributions. As we saw previously, the import csv function is what allows us to analyse data in a […]
Continue reading »Using NUMPY and SCIPY libraries to conduct regression analysis
The numpy, scipy, and statsmodels libraries are frequently used when it comes to generating regression output. While these libraries are frequently used in regression analysis, it is often the case that a user might choose different libraries depending on the […]
Continue reading »Kruskal-Wallis Test: Nonparametric One-Way ANOVA
The Kruskal-Wallis Test is a popular nonparametric test to examine whether two samples originate from an identical distribution or not. A normal distribution is not assumed, and the groups in question may have different sample sizes. Thus, this test is […]
Continue reading »glm: Construct a Binomial Logistic Regression in R
The purpose of a binomial logistic regression is to regress a dependent variable that can only take on finite values. In this instance, we wish to calculate an odds ratio for our regression – i.e. what is the probability that […]
Continue reading »Momentum Forex Trading Using The R Quantmod Library
We have already seen the basics of setting up quantmod in R to be able to obtain information on financial securities. The quantmod library is also able to obtain information on currencies, and R can be quite useful when it […]
Continue reading »Is A Low R-Squared Statistic A Bad Thing?
If you have never gotten a low R-Squared statistic when conducting regression analysis, I would hazard that you have never run a regression before. Finding a low R-Squared is one of the classic dilemmas of all researchers that attempt to […]
Continue reading »