Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

FIT5197 - Modelling for Data Analysis Question on Sampling Please see question below- Task C: Sampling Q]: In R, develop functions to generate samples from

FIT5197 - Modelling for Data Analysis

Question on Sampling

Please see question below-

image text in transcribed
Task C: Sampling Q]: In R, develop functions to generate samples from the probability dis tribution dened by one of the following, using runi) as the onlyr builtin source of (pseudo) random numbers: 1 _ p(:r:) = 134261 2'\" formE [0,2] 10(3) = 2323 [In-2:51 acsn 05 03 c 913:5) 95:11 w 1' 0.9 0.1 r PLR=FJ 9:11:11 0,8 (12 0.1 O. I Figure 1: Simple Bayesian Network for :1: > U and the single case when A = 2. First write a sampling algorithm that uses the rejection method (for either one of the versions 121(3) above). In your report describe howr this was designed. Dene this in R, sample 200 values and histogram them. In the long run what proportion of samples will your algorithm have to reject

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pre Algebra Practice Workbook The Most Comprehensive Review Of Pre Algebra

Authors: Reza Nazari

2024th Edition

1637195591, 978-1637195598

More Books

Students also viewed these Mathematics questions