Page 1 of 1

how to sum up

Posted: Fri Nov 24, 2006 6:54 am
by Vera
Hi,

we try to sketch a probability that is dependand on the effecitivity of inspections and the number of inspections.
e = effectivity
n = number inspections

Formula:
∑ (from 0 to n) (1-e)^(n-1)*e
so, if effectivity is 0,4, the probabilbility is 0,4 if one inspection, and 0,64 with to inspections and so on...
how can I formulate an equation in vensim to achieve this?

Thanks,
Vera

Posted: Fri Nov 24, 2006 11:50 am
by bob@vensim.com
Hi Vera,

This is just a simple algebraic series

sum r^n from 0 to N is

1/r - r^(N-1)


with 0 < r < 1 - so just manipluate your expression.

Bob Eberlein

Posted: Sun Nov 26, 2006 10:03 am
by Vera
Thank you!