#10770: Expectation of probability spaces is defined improperly
------------------------+---------------------------------------------------
   Reporter:  weigandt  |       Owner:  weigandt                
       Type:  defect    |      Status:  new                     
   Priority:  minor     |   Milestone:  sage-4.7                
  Component:  misc      |    Keywords:  Probability, Expectation
     Author:            |    Upstream:  N/A                     
   Reviewer:            |      Merged:                          
Work_issues:            |  
------------------------+---------------------------------------------------

Comment(by jason):

 I think I understand it a bit differently, but I'm not an expert in
 statistics.  For me, it's easier to understand if we use letters rather
 than numbers.

 {{{
 sage: X=frequency_distribution('AAAABBB')
 sage: X('A')
 0.500000000000000
 }}}

 So the value of 'A' is 0.5.
 {{{
 sage: X.probability_space()('A')
 0.500000000000000
 }}}
 So the probability of 'A' is also 0.5.  Thus summing up the products of
 the values (0.5 for each of 'A' and 'B') and the probabilities of (also
 0.5 for each of 'A' and 'B') gives 0.5.

 I don't know if that's the natural way to do things, but I do see some of
 the reasoning behind the code.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10770#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to