W3C home > Mailing lists > Public > www-math@w3.org > October 1998


From: Luis Alvarez <alvarez@zib.de>
Date: Wed, 14 Oct 1998 15:29:07 +0200 (MET DST)
Message-Id: <199810141329.PAA00954@opts1.zib.de>
To: www-math@w3.org
Hello, I am writing a MathML interface for REDUCE. I have come across the 
problem of interpreting discrete_random_variables when evaluating <mean>,<sdev> 

In the dictionary it is said that if the first argument is a symbol of type 
discrete_random_variable then we calculate the mean according to the given E[X] 
formula where we are told that:

the probability that x=x_i is P(x=x_i) = f(x_i)

When implementing this I realised that the function f(x_i) is not defined in the 
syntax of the <mean> tag. And so, using the infomation in the dictionary I 
wasn't able to figure out how to implement this. 

My idea was to allow all <ci> with attribute type=discrete_random_variable to 
have a <sep/> such that we are first given x_i and then f(x_i). But is this 

Something like this:

  <cn type="discrete_random_variable"> 1<sep/> .2 </cn>
  <cn type="discrete_random_variable"> 4 <sep/> .3 </cn>
  <cn type="discrete_random_variable"> 6 <sep/> .5 </cn>
 What do you think? How is it done normally?
Luis Alvarez
Konrad-Zuse-Zentrum für Informationstechnik Berlin (ZIB)
Optisation Division

Tel: (+49 30) 84 18 53 34
Received on Wednesday, 14 October 1998 09:29:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:28 UTC