Tag: Random

Bernoulli and Binomial Random Variables

Bernoulli random variable (RV) is one of the most basic discreet random variable. I intent to recall this RV along with the Binomial Random Variable (RV). I assume that you already know what a discreet random variable (RV) is. Let us begin! Bernoulli RV A Bernoulli RV is either 0 or 1. It ...

Building a Random Forest by Hand in Python

From drug discovery to species classification, credit scoring to cybersecurity and more, the random forest is a popular and powerful algorithm for modeling our complex world. Its versatility and predictive prowess would seem to require cutting-edge complexity, but ...

Numpy???s random choice in GoLang

Recently I’ve assisted with implementing some logic in Java that could easily be achieved with a single call of Numpy’s random.choice. It ended up being one of those tasks that allow looking into things you’re using every day but never have time to fully understand how they wo...

Is Java???s random UUID unique ?

Java’s java.util.UUID represents an immutable universally unique identifier (UUID). In particular the static randomUUID() method of this class generates UUID which can be used as a unique identifier in distributed systems. But, is this UUID unique ? What are the chances tha...

How a Random Meeting Changed a Stranger???s Life

I leaned up against the bar, elbows resting on the sticky surface — like a scene from Pulp Fiction — while I scanned the dim room. It was buzzing in every shadowy nook and cranny. A sea of gay men — mostly shirtless — looked back at me as if I were a sunflower in a rice paddy...

Random Times in the Beco

Paintings in The Museum of Life With the weather cooling from the heat of summer, I love spending time on my beco’s bench. I sit there working on my laptop or watching random people hike up the hill in search of the popular viewpoint above. Most of all, I love getting to play with Gra&ccedi...

Weekly ???New??? ??? Pineapple Bun from a Random Bakery

It’s the midst of the semester. Everything is on the track and there is no room for the packed schedule. Sick and tired of the daily routine, I decided to spare some time, look around, and try to do something new, something opposite. That’s why I started this series: motivate me to do so...

Random Acts of Democracy

At first blush this is a remarkable assertion. Our faith in democracy is shaken when elections dangle on the vagaries of a hanging chad. Or settled precedent is abruptly overturned by a partisan court. We are justifiably outraged when innocence depends on on zip code. Or the latest twitter meme. ...