Creating pdfs froms Sample Data and Bayes Theorem for Continuous Probability

64 Views Asked by At

I am not much of a math guy, but know some basics of pdfs, pmfs, Bayes theorems, probability distribution and stuffs. I am actually trying to build a Bayesian Network that models the personality of humans. For that I need independent probabilitiy distributions of different factors (such as age), and their effects, such as happiness.

The way in which I am collecting data is on the following Google Sheet. https://docs.google.com/spreadsheets/d/1OTMSUjalaT3K7sbwyfhvxooV65kI6X9umb6LCZDSUEk/edit#gid=0

My Question here is, Given the data above (in the gSheet) How Can I Calculate the pdf for P(Age), and conditional probability distribution of P(Age | Effects) where Effects = things like Happiness, Anger..

I'm like on a blackout on how to calculate these stuffs. Can anyone help? Please

1

There are 1 best solutions below

3
On

You have a lot of learning to do. To begin, you can estimate $P(A|B)$ as the fraction of elements where B is true that also have A true. For example, $P(age=41|happiness=high)$ is approximately the ratio of the count of all members with age 41 and happiness level of high over the count of all those with happiness level high.