15523073

docx

School

Illinois Institute Of Technology *

*We aren’t endorsed by this school

Course

583

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

5

Uploaded by CorporalFlagChimpanzee43

Report
CS 583 – Assignment 1 Theoretical assignments 1. We are given the random variables X 2 , X 3 , …, X n , and Y 2 , Y 3 , …, Y m . Answer the following questions. a. Assuming every variable is binary, how many independent parameters are needed to represent P( X 2 , X 3 , …, X n , Y 2 , Y 3 , …, Y m )? b. Assuming every variable has three possible values, how many independent parameters are needed to represent P( X 2 , X 3 , …, X n , Y 2 , Y 3 , …, Y m )? c. Assuming each X i has i possible values and similarly, every Y i has i possible values, how many independent parameters are needed to represent P( X 2 , X 3 , …, X n , Y 2 , Y 3 , …, Y m )? d. Assuming every variable is binary, how many independent parameters are needed to represent P( Y 2 , Y 3 , …, Y m | X 2 , X 3 , …, X n )? e. Assuming every variable has three possible values, how many independent parameters are needed to represent P( Y 2 , Y 3 , …, Y m | X 2 , X 3 , …, X n )? f. Assuming each X i has i possible values and similarly every Y i has i possible values, how many independent parameters are needed to represent P( Y 2 , Y 3 , …, Y m | X 2 , X 3 , …, X n )?
2. We are given the following the Bayesian network. Please answer the following questions. a. Write down the joint distribution as a factorization over this Bayesian network. b. Assuming each variable is discrete and can take n possible values, how many independent parameters are needed for this Bayesian network? c. Are the following independence statements true or false? i. A B ii. A B | C iii. A B | J iv. A B | G v. A B | E vi. A B | H vii. A H viii. A H | J ix. A H | D, J x. D J xi. B E xii. B E | J xiii. B E | J, H
3. We have a distribution P over the variables A, B, C, D, E, and G. We would like to build a Bayesian network that is a minimal I-Map for P. In reality, you have access to P, which you can query for independencies, but for the purposes of this problem, we will assume the following structure is a P-Map for P. Create minimal I-Maps for P, using the following variable orders. a. C, A, B, E, D, G b. D, B, A, E, C, G c. G, E, D, C, B, A d. G, A, C, E, D, B
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Programming Assignments The code should be compatible with Python 3.7. Primary libraries: pgmpy, scikit-learn. Submission should be either a IPython Notebook or a standalone script that provides the following output: Drawn structure of the Bayesian Network (if applicable) Inference results 4. We are given the following joint distribution over the random variables A, B, C, and D. Please answer the following questions. Show the necessary tables. You can (and should) share computations between different parts of the question. Usage of TableCPD is recommended a. Are A and B independent? b. Are A and C independent? c. Are A and C independent given B? d. Are A and D independent? e. Are A and D independent given C?
5. For the given problem, construct a Bayesian Network and general-purpose decision tree. Compare results. What differences do you observe? Explain. Predict the probability that children would be playing outdoors given weather conditions.