Skip to content

Instantly share code, notes, and snippets.

View guyb7's full-sized avatar

Guy Bloom guyb7

View GitHub Profile
@guyb7
guyb7 / pearson_correlation_coefficient
Created August 27, 2014 17:37
PHP implementation of Pearson's product-moment correlation coefficient
<?php
// PHP implementation of Pearson's product-moment correlation coefficient
function corr($a, $b) {
$sum_ab = 0;
$sum_a = 0;
$sum_b = 0;
$sum_a_sqr = 0;
$sum_b_sqr = 0;
$n = min(array(count($a), count($b)));
for ($i = 0; $i < $n; $i++) {
@eligrey
eligrey / leaks.md
Last active November 22, 2023 23:14
Entities that have sold or leaked my personal data

Eli's leak list

The following entities have either sold or leaked personal data about me, including email addresses and phone numbers. Be wary of sharing your data with them.

Email addresses

These entities have either sold or leaked specific unique email addresses of mine to unauthorized parties, such as spammers.