Question

Can anyone show me how to do this problem? Question 4: Sampling and Bayesian Network (25 points) We want to study people's exercise habits on sunny and rainy days. Suppose we consider the weather, along with a person's exercise, over the span of two days. We'll have four random variables: W and W stand for the weather on days 1 and 2, which can either be rainy (R) or sunny (S), and the variables E and E represent whether the person exercises on days 1 and 2 or not and take values T (for truly doing exercise) or F. We can model this as the following Dynamic Bayes Net with these probabilities. Note that this is a simple case of DBN and you can consider it as an HMM. W: P(W=S) = 0.6, P(W=R) = 0.4 W': P(W'=S|W=S) = 0.7, P(W'=R|W=S) = 0.3, P(W'=S|W=R) = 0.5, P(W'=R|W=R) = 0.5 W S E P(E|W=T) = 0.9, P(E|W=F) = 0.1, P(E|W=T') = 0.2, P(E|W=F') = 0.8 S R R Suppose we produce the following sample of (W,E,W',E') from the exercise model: R,F,R,T S,T,S,T S,T,S,T S,T,R,F R,F,S,T R,F,R,F S,F,S,T S,T,S,T S,T,R,F a) What is P(W=R), the probability that sampling assigns to the event W=R? b) Assume we're computing P(W=B=T,E=F). Cross off samples above which are rejected by rejection sampling. Rejection sampling seems to be wasting a lot of effort, so we decide to switch to likelihood weighting. Assume we generate the following six samples given the evidence and E=F: W,E,W',E' = S,T,R,F S,T,R,F S,T,R,F S,T,R,F S,T,R,F S,T,R,F c) What is the weight of the first sample (S,T,R,F) above? d) Using likelihood weighting, estimate P(W=E=T,E=F).

          Can anyone show me how to do this problem?
Question 4: Sampling and Bayesian Network (25 points) We want to study people's exercise habits on sunny and rainy days. Suppose we consider the weather, along with a person's exercise, over the span of two days. We'll have four random variables: W and W stand for the weather on days 1 and 2, which can either be rainy (R) or sunny (S), and the variables E and E represent whether the person exercises on days 1 and 2 or not and take values T (for truly doing exercise) or F. We can model this as the following Dynamic Bayes Net with these probabilities. Note that this is a simple case of DBN and you can consider it as an HMM.

W: P(W=S) = 0.6, P(W=R) = 0.4
W': P(W'=S|W=S) = 0.7, P(W'=R|W=S) = 0.3, P(W'=S|W=R) = 0.5, P(W'=R|W=R) = 0.5
W S
E
P(E|W=T) = 0.9, P(E|W=F) = 0.1, P(E|W=T') = 0.2, P(E|W=F') = 0.8
S
R R

Suppose we produce the following sample of (W,E,W',E') from the exercise model: R,F,R,T S,T,S,T S,T,S,T S,T,R,F R,F,S,T R,F,R,F S,F,S,T S,T,S,T S,T,R,F

a) What is P(W=R), the probability that sampling assigns to the event W=R?
b) Assume we're computing P(W=B=T,E=F). Cross off samples above which are rejected by rejection sampling. Rejection sampling seems to be wasting a lot of effort, so we decide to switch to likelihood weighting. Assume we generate the following six samples given the evidence and E=F: W,E,W',E' = S,T,R,F S,T,R,F S,T,R,F S,T,R,F S,T,R,F S,T,R,F
c) What is the weight of the first sample (S,T,R,F) above?
d) Using likelihood weighting, estimate P(W=E=T,E=F).
        
Show more…
can anyone show me how to do this problem questlon 4saupling and bayesian network25 points we want to study pcoples cxercise habit on sunny and rainy days suppose we consider the weather alo 59743

Added by David G.

Close

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
Can anyone show me how to do this problem? Question 4: Sampling and Bayesian Network (25 points) We want to study people's exercise habits on sunny and rainy days. Suppose we consider the weather, along with a person's exercise, over the span of two days. We'll have four random variables: W and W stand for the weather on days 1 and 2, which can either be rainy (R) or sunny (S), and the variables E and E represent whether the person exercises on days 1 and 2 or not and take values T (for truly doing exercise) or F. We can model this as the following Dynamic Bayes Net with these probabilities. Note that this is a simple case of DBN and you can consider it as an HMM. W: P(W=S) = 0.6, P(W=R) = 0.4 W': P(W'=S|W=S) = 0.7, P(W'=R|W=S) = 0.3, P(W'=S|W=R) = 0.5, P(W'=R|W=R) = 0.5 W S E P(E|W=T) = 0.9, P(E|W=F) = 0.1, P(E|W=T') = 0.2, P(E|W=F') = 0.8 S R R Suppose we produce the following sample of (W,E,W',E') from the exercise model: R,F,R,T S,T,S,T S,T,S,T S,T,R,F R,F,S,T R,F,R,F S,F,S,T S,T,S,T S,T,R,F a) What is P(W=R), the probability that sampling assigns to the event W=R? b) Assume we're computing P(W=B=T,E=F). Cross off samples above which are rejected by rejection sampling. Rejection sampling seems to be wasting a lot of effort, so we decide to switch to likelihood weighting. Assume we generate the following six samples given the evidence and E=F: W,E,W',E' = S,T,R,F S,T,R,F S,T,R,F S,T,R,F S,T,R,F S,T,R,F c) What is the weight of the first sample (S,T,R,F) above? d) Using likelihood weighting, estimate P(W=E=T,E=F).
Close icon
Play audio
Feedback
Powered by NumerAI
Ivan Kochetkov Kathleen Carty
Jennifer Stoner verified

Samriddhi Singh and 101 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
assume-we-can-predict-the-weather-using-simple-markov-model-consisting-of-three-suiy-miny-or-snowy-every-sunny-day-is-followed-by-another-sunny-day-with-a-slates-probability-of-0-the-probabi-04894

Assume we can predict the weather using a simple Markov model consisting of three states sunny, rainy, or snowy. Every sunny day is followed by another sunny day with a probability of 0.8. The probability of rain the day after a sunny day is 0.15. The probability of a rainy day following another rainy day is 0.6 and the chance of snow after a rainy day is 0.3. Finally, given a snowy day the chance of another snowy day is 0.4 and the chance of rain the next day 0.5.

Samriddhi S.

a-professor-has-four-4-umbrellas-some-at-home-some-in-his-office-the-professor-goes-from-his-home-to-the-office-and-returns-home-from-his-office-everyday-he-takes-an-umbrella-with-him-only-i-89086

A professor has four (4) umbrellas, some at home, some in his office. The professor goes from his home to the office and returns home from his office everyday. He takes an umbrella with him only if it rains. If it does not rain, he leaves the umbrella behind. If there are no umbrellas where he is (i.e. home or the office), the professor gets wet. The probability that it rains in any given time of a day is 0.6. This process is a Markov Chain and you are asked to model the process by answering the following questions. In your modelling, you can either look at the process from home to office or from office to home (actually this does not make any difference). a) Clearly define the states of this process. Find the one step transition probability matrix for this process. b) Do the limiting probabilities exist? Justify your answer c) Write the complete set of equations required to determine the long run probabilities for the possible states of this process. Do not solve the equations.

Shyam P.

suppose-y-binornial-n-with-n-known-and-the-prior-for-0-is-7-0-beta-for-the-binomial-distribution-and-here-bin-stands-pule-0-1-_-0-3-01n-0-ga-11-_-08-1-ba8-0-01-_-what-is-the-posterior-densit-87206

Suppose y ~ Binomial (n, θ), with n known, and the prior for θ is π (θ) = Beta (α, β). Here Bin stands for the Binomial distribution and P (y|θ) = (n y) θ^y (1 - θ)^(n-y), y ∈ {0, 1, ..., n}, π (θ) = (1/B(α, β)) θ^(α-1) (1 - θ)^(β-1), θ ∈ (0, 1). (1) What is the posterior density of θ? π (θ|y) = Beta (α - y, β + n - y) π (θ|y) = Beta (α - y, β + n + y) π (θ|y) = Beta (α + y, β + n - y) π (θ|y) = Beta (α + y, β + n + y) (2) What is the marginal likelihood of y? m (y) = (n y) (B(α-y, β+n-y)/B(α, β)) m (y) = (n+y y) (B(α-y, β+n-y)/B(α, β)) m (y) = (n y) (B(α+y, β+n-y)/B(α, β)) m (y) = (n+y y) (B(α+y, β+n-y)/B(α, β)) (3) Suppose the above model is labelled M0. There is a possible alternative model M1 which is y ~ Bin (n, 1/2). Find the Bayes Factor B01. B01 = (0.5^(n-y))/B(α-y, β+n-y) B01 = (0.5^(n-y) B(α, β))/B(α+y, β+n-y) B01 = 0.5^n / B(α-y, β+n-y) B01 = (0.5^n B(α, β))/B(α+y, β+n-y)

Adi S.


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,932 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,899 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,293 solutions

*

Transcript

-
0:00 Hello everyone.
00:02 So as for the given information about the weather, it is given that we can predict the weather using a simple markup model consists of three states.
00:14 The three states are sunny, rainy, snowy.
00:28 Right? so here we'll write sunny, rainy, snowy.
00:39 Okay.
00:40 So it is given that every sunny day is followed by another sunny day.
00:46 With the probability of 0 .8.
00:48 So this becomes 0 .8.
00:51 Next, the probability of rainy day after a sunny day is 0 .15.
00:57 Okay, this is sunny day after this, rainy day is 0 .15.
01:03 Next it is given the probability of the rainy day following another rainy day...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever