1. A system comprising: a distributed network; and plurality of node devices connected to the distributed to the distributed network, each node device having local measurements that are independent and identical distributed samples of a random variable, wherein each node device uses gossip-based distributed kernel density estimation to estimate an unknown distribution from the distributed samples using kernel density estimation.