Minimum correlation =
90 journal entries and 26 events
carrot
exercise
weekend
bread
pudding
brushed teeth
touched tree
nachos
cycling
brussel sprouts
ice cream
computer
potatoes
candy
dentist
running
pizza
work
beer
cauliflower
lasagna
lettuce
television
spaghetti
reading
peanuts
function analyze(min=0) {
return [...EVENTS]
.map(e => ({evt: e, cor: phi(tableFor(e))}))
.filter(x => Math.abs(x.cor) > min)
.map(x => x.evt+": "+x.cor.toFixed(4))
// let a = [];
// for (let e of EVENTS) {
// let cor = phi(tableFor(e));
// if (Math.abs(cor) > min)
// a.push(e+": "+cor.toFixed(4))
// }
// return a
}
function journalEvents() {
EVENTS.clear();
for (let entry of JOURNAL)
for (let e of entry.events)
EVENTS.add(e);
}