1. 6 Take-Aways after Reading "The Signal and The Noise"

    The Signal and The Noise by Nate Silver is a must-read book for those interested in predictions. It is not a technical book. You will not learn any algorithm. However, it presents a series of real-world scenarios when predictions did work and where predictions did not work. The book is …

    read more
  2. Weighted Random Sampling with PostgreSQL

    You have a table like the following:

    CREATE TABLE weights (
    color varchar primary key,
    weight float
    );
    
    INSERT INTO weights (color, weight)
    VALUES
    ('red', 8),
    ('blue', 3),
    ('green', 10),
    ('yellow', 10);
    

    The table lists the weights associated with certain colors. Imagine a weight representing how much you like that color.

    Now …

    read more

social