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

STATISTICS

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> 
etc...

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 
MathML??

Something like this:

<apply><mean/>
  <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>
 </apply>
 
 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:48 GMT