(Comp.sys.hp48) Item: 323 by cloos@acsu.buffalo.edu [James H. Cloos] Subj: Probability stuff (discrete) Date: Thu Dec 05 1991 IBM does a linear convolution of two vectors, e.g.: [ 1 1 1 1 1 1 ] [ 1 1 1 1 1 1 ] IBM ==> [ 1 2 3 4 5 6 7 6 5 4 3 2 1 ] This is useful in determinig the probabilities of the sum of a number of arbitrary dice. IBP convolutes a vector with itself n times, vector in 2 and N, a real, in 1. NXY takes number of dice in level2 and number of sides per die in level1, the result is a vector showing hte relative probabilities of getting each possible outcome. NXYZ is like NXY, except its: #dice thrown in 3, #sides/die in 2, and # of dice sumed up in level1. The highest (1) of (3) dice of (2) sides are assumed. Reverse the resultant vector to get the lowest. The P...s are like the N...s, except probs are normalized to a total of 1. P\->D is for probablility to distribution. -JimC -- James H. Cloos, Jr. Phone: +1 716 673-1250 cloos@ACSU.Buffalo.EDU Snail: PersonalZipCode: 14048-0772, USA cloos@ub.UUCP Note: Phone & Snail to change soon!