Comments (7)
You're right -- it does ask about remaining sentence. In that case, I think you can take the answer in the book and divide by 2.
But even if that's correct, I think it distracts from the focus of the question, so I'll leave this issue open for now and revise the question when I have a chance.
Thank you!
from thinkbayes2.
Thanks for the question.
Computing the remaining time is an interesting question, but the book asks how long is the sentence being served.
The focus of the question is the update, which depends on the likelihood of observing people with different sentences.
I'll close this issue for now, but let me know if you still think there's an error.
from thinkbayes2.
Computing the remaining time is an interesting question, but the book asks how long is the sentence being served.
The books asks two questions:
"What is the probability that they are serving a 3-year sentence? What is the average remaining sentence of the prisoners you observe?"
The focus of the question is the update, which depends on the likelihood of observing people with different sentences.
This is true regarding the first question, but not the second.
If I have misinterpreted "average remaining sentence", could you please clarify?
from thinkbayes2.
I think you can take the answer in the book and divide by 2.
I don't understand why this is the case; can you explain?
from thinkbayes2.
If you arrive at random and observe a person serving a sentence of length x
, you are equally likely to observe them at any point during their sentence, so the expected remaining time is x/2
.
Given the posterior distribution of sentences, we can find the distribution of remaining time by dividing all values by 2.
from thinkbayes2.
@AllenDowney, thanks for your patience. I now see what I did wrong.
In the original post I used a discrete distribution for the remaining time, between 1 and y, rather than a continuous distribution between 0 and y. The difference between them is exactly 1/2 and accounts for the difference in our result for the average remaining time: 1.67 vs 1.17.
from thinkbayes2.
I'm glad you were able to track it down!
from thinkbayes2.
Related Issues (20)
- Chapter 8 missing cells in zip file HOT 3
- 'Compile' book from code HOT 1
- Chapter 10 Solutions - Definition / Implementation mismatch for the logistic HOT 1
- Chapter 6 Goblin Exercise HOT 2
- Example 6-8 number of Outperforming Portfolios HOT 2
- Chapter 20 Counting Cells Measurement Error Specification HOT 5
- What is considered to be the "data" in the M&M solution? (Ch 2: Bayes's Theorem) HOT 2
- Chapter 1 download data code isn't working HOT 5
- TypeError: Series.__init__() got an unexpected keyword argument 'normalize' HOT 2
- gss_bayes.csv HOT 2
- Oliver Problem - Chapter 6 - General Question HOT 1
- Lincoln Index - Three parameter model HOT 17
- Linda problem should use conditional probability when it comes to sex. HOT 2
- Formulas Not Displaying Properly in github.io version HOT 3
- Chapter 1: caseid definition in the gss_bayes dataset HOT 1
- Chapter 8 - unexpected overlapping curves HOT 1
- Chapter 2 - nomenclature adjustment HOT 2
- Chapter 4 - Proper Prior Probability Initialisation
- Chapter 4 - Typo in Plot Legend
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thinkbayes2.