Hi All,
Statistics is not my strong suit. So can someone validate these results:
> (to is-even {?n} ; define test for even number (= 0 (% ?n 2)).:
> is-even
> (to is-less-than-four {?n} ; define test for less than four (< ?n 4)).:
> is-less-than-four
> (prob {1 2 3 4 5 6 7 8 9 10} is-even) ; #1.: 0.5
> (prob {1 2 3 4 5 6 7 8 9 10} is-less-than-four) ; #2.: 0.3
> (prob {1 2 3 4 5 6 7 8 9 10} is-less-than-four and is-even) ; #3.: 0.1
> (prob {1 2 3 4 5 6 7 8 9 10} is-less-than-four or is-even) ; #4.: 0.7
> (prob {1 2 3 4 5 6 7 8 9 10} is-less-than-four given is-even) ; #5 .: 0.2
> (prob {1 2 3 4 5 6 7 8 9 10} is-even given is-less-than-four) ; #6 .:
> 0.33333333
Kindly advise if these are correct. I think the last four aren't.
Cheers,
~PM
-------------------------------------------
AGI
Archives: https://www.listbox.com/member/archive/303/=now
RSS Feed: https://www.listbox.com/member/archive/rss/303/21088071-f452e424
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21088071&id_secret=21088071-58d57657
Powered by Listbox: http://www.listbox.com