We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Artificial Intelligence
- Probability & Statistics - Foundations
- Poisson Distribution #3
- Discussions
Poisson Distribution #3
Poisson Distribution #3
Sort by
recency
|
10 Discussions
|
Please Login in order to post a comment
print("0.050") instead of print("0.05")
R code: write (A, stdout) is printing either 0.05 or 4 digits after decimal for 1st part. Please help.
Don't round the value you want to print. Use:
For these kinds of questions the submission should be a form where we can just enter the dumb answer instead of trying to figure out what the hell the grader expects.
I submitted several answers: hard-coded plain text: 0.050 0.983 which I manually computed AND matches to the expected output but I am still getting it incorrect. I sumbitted the following R solution sprintf("%.3f",dpois(0,3)) sprintf("%.3f",round(1-(dpois(0,6) + dpois(1,6)),5))
And STILL getting it as wrong.
Is this question supposed to be about Poisson distributions or about R/Python formatting functions???
I could use some help on this. I've tried many different formulations of the problem (basic AND/OR probability calculations, binomial distribution, etc) and I always get the answer
0.903
for part B, and I can't understand why that isn't the answer. I've also done other potentially correct things and gotten different results (like0.980
when doing certain formats of AND/OR logic on the probabilities), so I'd like some insight because I'm not getting any closer personally, just trying random things at this point.