Posts
Inverse Transform Sampling and Maximum Likelihood Estimation
-- Introduction In this blog post we are going to look at how we can generate a random sample out of a random variable, and then look at the maximum likelihood method for estimating the parameters of distribution of that random variable. Generating a random sample Let's assume we have a sample $x_1,...,x_n$ out of a sequence of i.i.d. random variables $X_1,...,X_n \sim X$, where X for example has Poisson distribution with parameter $\theta$.
Posts
Functional Programming With Javascript. Part 2
In Part I of Functional Programming with Javascript we explained what Functional Programming is, i.e. a programming paradigm where programs are constructed by applying and composing functions. We explained the concepts of state, pure and impure functions, higher order functions. We left with the JavaScript functions being first class citizens and showed a Dynamic Programming technique called memoization. In this article we are going to explain what a closure is and delve into more advanced functional programming constructs using the closure.
Posts
Using Data Mapper in Angular 2
In this post I'm going to show you a way of separating your concerns when it comes to dealing with the network communication of your application. First, lets start with a simple diagram.
Data Mapper is an architectural pattern for separating the business logic of your domain model from the network communication logic. A Data Mapper is a Data Access Layer that performs bidirectional transfer of data between a persistent data store (often a relational database) and an in memory data representation (the domain layer).
Posts
Functional Programming With Javascript. Part 1
In this series of articles we are going to go deeply into functional programming language concepts using the Javascript programming language. What is Functional Programming Functional Programming is not something new. We can track functional programming back to the 1930s with the introduction of Lambda Calculus by Alonzo Church, far before there was any computer programming language at all. You can read more about lambda calculus here. So what exactly is functional programming?
Posts
New Levels of Abstractions With AngularJS and ES6 Classes
In this blogpost I am going to show you how easy it is to construct reusable abstractions with AngualarJS and ES6 Classes. If you are with a more Object Oriented Language Programming background this article might seem simple and trivial but if you are coming from a Javascript background like me you might get some benefit out of it since in Javascript OOP is a bit harder to comprehend and see.
Posts
Linked List in Javascript
This is my first article, so I wanted it to set the mood for my entire blog and best describe what I'm passionate about, Computer Sciences in a modern web environment and Mathematics in a Data Science context. I also wanted it to be an introduction article. I assume all of my readers know what an array is, so I decided to move to something very similar but in the same time describing an entirely different representation of a list.