#| Appears tall in Racket.Gamble From HAL-ProbLog example examples/appears_tall.pl (https://bitbucket.org/pedrozudo/hal_problog/src/master/examples/appears_tall.pl) """ 2/5::male;3/5::female. normal(180,8)~height:-male. normal(160,8)~height:-female. is_tall:-male, height~=Height, conS(180= height 180) (>= height 170))) (define appears_tall (cond [is_tall #t] [(eq? gender "male") (flip 3/10)] [else #f])) ; (observe/fail (eq? appears_tall #t)) (observe-sample (dist-unit appears_tall) #t) (list gender height appears_tall is_tall ) ) ) (show-marginals (model) (list "gender" "height" "appears_tall" "is_tall" ) #:num-samples 10000 #:truncate-output 5 ; #:skip-marginals? #t ; #:show-stats? #t #:credible-interval 0.93 ; #:show-histogram? #t ; #:show-percentiles? #t )