Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

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: enter image description here

  • How can I calculate the variance of this data snapshot?
  • Sample code or an algorithm would be most appreciated.
share|improve this question
@Zia, it is possible to migrate the questions from one SE site to another. Flag the moderators, do not cross-post. – mpiktas May 30 '11 at 8:22
@Jeromy, we should have posted the @chl edits from stackoverlow, instead of playing a little edit war here :) – mpiktas May 30 '11 at 8:24
ok sorry i didnot know how to do that – Zia May 30 '11 at 8:30
1  
@Zia, no problems, usually the questions that should be migrated are migrated sooner or later, since somebody else flags the moderator. However it is always polite to wait for the answers in the first site you posted the question, before asking anywhere else, and if you do it is always helpful to indicate why the answers in the first site were not satisfactory. – mpiktas May 30 '11 at 8:34
@mpiktas yep. sorry about that. Feel free to change back. I'd just about pressed the button after incorporating the image, and links and so on, and wanted to apply the changes, when I was told it wouldn't apply. – Jeromy Anglim May 30 '11 at 9:06
show 2 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.