I am going through the Pattern Matching and Machine Learning book by Bishop and have gotten stuck on a few things in Mathematica. In the solution for exercise 1.4 (page 7/101) there is a graph showing a probability distribution transformed by a function.
Here are the questions that I have regarding this:
How do I plot the green and the magenta curves on the y axis?
Why are the green and the magenta curves near each other in size in the book, but not in my own plots?
Why can’t I integrate the transformed curves so as to get the CDF?
How do I get the mode of the transformed curves?
Here is the code for what I’ve done so far. I am been trying out various things to no avail.
I don’t have a good idea for plotting that second function on the y axis, but Mathematica has a built-in function for doing these sort of variable transformations on distributions: TransformedDistribution. In the example in the book, y is distributed as LogisticSigmoid[x - 5] where x follows a normal distribution. You can define this as: