arthurzc23 / machine-learning-a-probabilistic-perspective-solutions Goto Github PK
View Code? Open in Web Editor NEWMy solutions to Kevin Murphy Machine Learning Book
License: Other
My solutions to Kevin Murphy Machine Learning Book
License: Other
When E1 and E2 are conditionally independent given H, we can derive p(e1,e2) as follows:
p(e1,e2) = sum(p(e1,e2|h')p(h')) = sum(p(e1|h')p(e2|h')p(h')) over all h' in support of H.
Thus, (iii) is sufficient for 2.6(b)
The proposition in problem 2.9(b) is actually false. You can find a counter example here:
https://github.com/astahlman/MLaPP/blob/master/solutions/ch2.pdf
In the following solution https://github.com/ArthurZC23/Machine-Learning-A-Probabilistic-Perspective-Solutions/blob/master/7/2.pdf, my w1 and w2 values are as follows:
w1=[-4/3 8/3]
w2=[-4/3 8/3]
which are different from your solution.
You derive the likelihood, then say that the resulting distribution is
Ga(theta | N+1, lam+sum(x_i))
but plugging that into the definition given for the Gamma distribution in the textbook gives
Ga(theta | N+1, lam+sum(x_i)) = [lam+sum(x_i)]^(N+1) theta^N e^(- theta [lam+sum(x_i)])
which is not the likelihood that you derived.
Am I missing something here?
You calculate p(y)
as p(wx)
. This is incorrect. See: https://en.wikipedia.org/wiki/Product_distribution
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.