In Julia, one can generate random numbers that follow a Gamma distribution by using the Distribution package. Thereby one can use the
rand() function that draws random numbers and specify the Gamma distribution by using the
Gamma(a,b) command. The parameters a and b define the shape parameters of the Gamma distribution. This article provides a more generic overview of how to generate random numbers in Julia.
Continue reading Generate Gamma Distributed Numbers in Julia
How can one save objects in Julia? One easy way to do so it to use the
JLD package. The following examples demonstrates how to save data objects in Julia and how to load the once they are saved. Continue reading How to save Objects/Data in Julia?
In Julia, you can set a seed to the random number generator using the
srand() function. The code example below sets the seed to 1234. Generating a random variable with
rand(1) after setting the seed to 1234 will always generate the same number, i.e. it will always return 0.5908446386657102. Continue reading How to set a Seed in Julia?
Julia presents various ways to carry out multiple regressions. One easy way is to use the lm() function of the GLM package. In this post I will present how to use the lm() and run OLS on the following model
Continue reading Multiple Regression in Julia
Julia presents various ways to carry out linear regressions. In this post I will present how to use the native function linreg() to run OLS on the following model
Continue reading Linear Regression in Julia
In a former blog post (see here) I described how to read an Excel file into Julia. In this post I will focus on how to import an Excel file directly from the Web. This feature might be especially useful for recurring routines that rely on the most up-to-date data. Continue reading How to Read an Excel File dircetly form the Web in Julia Language?
This article shortly describes how to read an Excel file into Julia. Generally, one can use different libraries to read Excel files, including XLSXReader , ExcelReaders or Taro. In this tutorial I will focus on Taro as it created the fewest problems and provides – at least in my eyes – an easy to understand syntax.
Continue reading How to Read an Excel File in Julia Language? An example.