2. Independent parameters. How many independent parameters are required to uniquely define the CPD of E (the conditional probability distribution associated with the variable E) in the same graphical model as above, if A, B, and D are binary, and C and E have three values each? A B E If you haven't come across the term before, here's a brief explanation: A multinomial distribution over m possibilities 1,...,m has m parameters, but m-1 independent parameters, because we have the constraint that all parameters must sum to 1, so that if you specify m-1 of the parameters, the final one is fixed. In a CPD P(XY), if X has m values and Y has k values, then we have k distinct multinomial distributions, one for each value of Y, and we have m-1 independent parameters in each of them, for a total of k(m-1). More generally, in a CPD P(X|Y₁,..., Y), if each Y; has kį values, we have a total of k₁ X... x kr x (m-1) independent parameters. Example: Let's say we have a graphical model that just had X→Y, where both variables are binary. In this scenario, we need 1 parameter to define the CPD of X. The CPD of X contains two entries P(X = 0) and P(X = 1). Since the sum of these two entries has to be equal to 1, we only need one parameter to define the CPD. D Now we look at Y. The CPD for Y contains 4 entries which correspond to: P(Y=0|X = 0), P(Y = 1|X = 0), P(Y=0|X = 1), P(Y = 1|X = 1). Note that P(Y=0|X = 0) and P(Y = 1 X = 0) should sum to one, so we need 1 independent parameter to describe those two entries; likewise, P(Y=0|X = 1) and P(Y= 1|X = 1) should also sum to 1, so we need 1 independent parameter for those two entries. Therefore, we need 1 independent parameter to define the CPD of X and 2 independent parameters to define the CPD of Y. 18 11 12
2. Independent parameters. How many independent parameters are required to uniquely define the CPD of E (the conditional probability distribution associated with the variable E) in the same graphical model as above, if A, B, and D are binary, and C and E have three values each? A B E If you haven't come across the term before, here's a brief explanation: A multinomial distribution over m possibilities 1,...,m has m parameters, but m-1 independent parameters, because we have the constraint that all parameters must sum to 1, so that if you specify m-1 of the parameters, the final one is fixed. In a CPD P(XY), if X has m values and Y has k values, then we have k distinct multinomial distributions, one for each value of Y, and we have m-1 independent parameters in each of them, for a total of k(m-1). More generally, in a CPD P(X|Y₁,..., Y), if each Y; has kį values, we have a total of k₁ X... x kr x (m-1) independent parameters. Example: Let's say we have a graphical model that just had X→Y, where both variables are binary. In this scenario, we need 1 parameter to define the CPD of X. The CPD of X contains two entries P(X = 0) and P(X = 1). Since the sum of these two entries has to be equal to 1, we only need one parameter to define the CPD. D Now we look at Y. The CPD for Y contains 4 entries which correspond to: P(Y=0|X = 0), P(Y = 1|X = 0), P(Y=0|X = 1), P(Y = 1|X = 1). Note that P(Y=0|X = 0) and P(Y = 1 X = 0) should sum to one, so we need 1 independent parameter to describe those two entries; likewise, P(Y=0|X = 1) and P(Y= 1|X = 1) should also sum to 1, so we need 1 independent parameter for those two entries. Therefore, we need 1 independent parameter to define the CPD of X and 2 independent parameters to define the CPD of Y. 18 11 12
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
J 2
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman