Question was originally posted on Stack Overflow.
I want to calculate variance of data at a given time where I know the frequency of the conditional and decision attributes. At time $t$ every conditional attribute can have 3 possible values while decsion attribute consists of two classes.
See the picture below for more details:
- How can I calculate the variance of this data snapshot?
- Sample code or an algorithm would be most appreciated.