Skip to content

Commit

Permalink
added telephone_operator_parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikgeissler authored and LKlinke committed Dec 17, 2024
1 parent b87f1d2 commit e7daa01
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
nat x; // 0: weekday, 1: weekend
nat d; // sample the number of phone calls received in one hour.
rparam p;
nparam n;

x := bernoulli(p)
if (x=0){
d := poisson(n+6) // Weekdays there are 10 phone calls on average in an hour
} else {
d := poisson(n) // Weekends there are 4 phone calls in average in an hour
}

observe(d=5) // we have observed 5 phone calls.
?Ex[x]
//!Plot[x, d]
!Print

0 comments on commit e7daa01

Please sign in to comment.