Homework #11
All problems MUST be in a SINGLE *.m file and be in separate blocks using '%% Problem X'. Otherwise you will not receive credit. You may need additional files for class definitions or functions. See class webpage for naming convention.
Contents
Problem 1
Use a Markov-Chain and the Metropolis-Hastings algorithm to explore the the following 2D probability distribution:
where and
.
Show a visual representation of the chain. Extra credit for particularly creative and clear visualization.
Problem 2
The file 'HW11Data.mat' contains two variables. 'T' indicates the measurement time. 'Volts' is the measured data. The theoretical model predicts that Voltage is proportional to time: . Estimate
from the data and find the standard error on
using a Bayesian approach. The data has Gaussian type noise with
. Assume a uniform prior distribution on
. Hint: See March_30.m.
Problem 3
Make a GUI that plots the quantum mechanical probability distribution of a particle in a 1D box. Assume the particle is in an energy eigenstate. You should be able to select or type to plot a particular eigenstate.
Problem 4
Use the symbolic toolbox to find the analytical expressison for inverse of the matrix 'A' where
A = [ a, b] [ c, d]
Problem 5
Use the symbolic toolbox to find the integral of over all x.