Articles by Mic

Hypothesis testing on normally distributed data in R

July 11, 2015 | Mic

Hypothesis testing is a useful statistical tool that can be used to draw a conclusion about the population from a sample. Say for instance that you are interested in knowing if the average value of a certain parameter differs significantly from a given value within a well defined confidence level: ...
[Read more...]

Volume of solids of revolution: the cone

March 6, 2015 | Mic

Have you ever wondered where do all those formulas to calculate the volume of solids like a cone, a cylinder, a sphere ecc… come from? In fact they come from a simple formula and from a clever basic idea. Imagine you have a function f Intuitively you could approximate the ...
[Read more...]

How to fit a copula model in R

February 10, 2015 | Mic

I have been working on this topic for a great amount of time and to be honest I find R documentation not that user-friendly as the documentation for most Python modules. Anyway the fact that copulas are not the easiest model to grasp has contributed to further delays too. But ... [Read more...]

Generate slope fields in R and Python

September 21, 2014 | Mic

Here is a short post on how to generate a quick slope field in R and Python. If you do not know what a slope field is, well I am not the best person to explain it to you since it is a relative new concept for me as well. ... [Read more...]

Multivariable gradient descent

September 9, 2014 | Mic

This article is a follow up of the following:Gradient descent algorithm Here below you can find the multivariable, (2 variables version) of the gradient descent algorithm. You could easily add more variables. For sake of simplicity and for making it more intuitive I decided to post the 2 variables case. In ...
[Read more...]

Plain vanilla BlackJack simulation with R

July 30, 2014 | Mic

Please before continue reading, make sure to read the disclaimer at the bottom of this article. Here is a simulation I run with R in the same period I created the poker one. I have just decided to call it plain vanilla since neither double down or split pairs are ... [Read more...]

Calculating VaR with R

July 27, 2014 | Mic

Simulations can be useful in an unimaginably large number of scenarios. Finance in particular is a field of study where maths and statistics have made led to great advances (sometimes for the good, sometimes for the bad). Value at Risk is just another example of subject where a simulation approach ... [Read more...]

Stochastic processes and stocks simulation

July 25, 2014 | Mic

Please before continue reading, make sure to read the disclaimer at the bottom of this article. Sometimes names of phenomena do not look like they suit the things they are attached to. In my opinion, that’s the case for stochastic processes.Stochastic process is a fancy word to describe ... [Read more...]

The maths of Texas Hold ’em with R

July 24, 2014 | Mic

Please before continue reading, make sure to read the disclaimer at the bottom of this article. Every time I watch on tv some game of Texas Hold’em I am always curious about the small percentages which appear in the bottom corners of the screen and tell us the chances ... [Read more...]

Simulate data with R

July 23, 2014 | Mic

Last semester I was attending a boring class, even though the professor was really clever, he was always bouncing around the main theme and never got straight to the point. While thinking about everything but the class, I had an idea: when you are give... [Read more...]

Copula functions in R

July 21, 2014 | Mic

A copula function is an application which "couples" (joins) a multivariate distribution to its univariate margins (marginal distributions).Copula functions can be really helpful in building multivariate distributions given the marginals. Here is a fast...
[Read more...]

The Monty Hall problem

July 20, 2014 | Mic

The Monty Hall problem is a famous game which was played in the television show "Let's make a deal".The game goes like this:There are three doors, behind each door there is either a goat or an amazing sportcar. The contestant wins if they guess where t... [Read more...]
1 2

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)