Plot the trade-off curve

Assignment Help MATLAB Programming
Reference no: EM133116137

Assessment Requirements

You should complete this work in CVX and write a report (either in LaTeX or Word) containing main findings and brief comments/justification for every task. Your submission should be one document that includes both your report and CVX scripts. This coursework is an‘element of assessment' which means you need to pass it in order to pass the module.

Assessment Scenario/Problem

You have to carry out the following two tasks.

Task 1
Assume that you work in a computerised tomography (CT) laboratory and your task is to reconstruct images of human brain phantoms. However, the reconstructed images that you get from the scanner are corrupted with additive noise, and you are asked by your boss to come up with a strategy to de- corrupt them. You decide that you will solve the problem using a smoothing regulariser.

(a) What is the price/unwelcome experience that will be undergone for achieving denoising?

(b) Suppose that the image that you want to reconstruct is the modified Shepp-Logan phantom of the human brain with a spatial image resolution of 200x200. You can obtain this image in the CVX environment by typing in
P = phantom('Modified Shepp-Logan',200);

Alternatively, you can obtain the same image by reading (using the ‘load' command) the related ‘.mat' file that I have uploaded to NOW. Plot this image. Of course, you don't know the exact image that you are trying to reconstruct but you have an approximate knowledge of how human brain phantoms looks like. Which regulariser would you choose for your denoising task? Justify your answer.

(c) Assume that the corrupted version of the image that you get from the scanner, Pn, is equivalent to the true image, P, after adding Gaussian noise with zero mean and standard deviation equal to 0.06. Create and illustrate this noisy version. This is the image that you will work with.

(d) If the reconstructed image pixel intensities Prec(i,j) (for i, j = 1, ..., 200) need to be between 0 and 1 (0 ≤ Prec(i,j) ≤ 1), formulate the image reconstruction problem as a scalarised bi-criterion convex optimisation problem. Then, load it to CVX/CVXPY and solve it for three distinct levels of smoothing. Your chosen three levels should approximately correspond to ‘too much', ‘about right', and ‘not quite enough' smoothing. Provide the solutions to the three optimisation problems, that is, the illustrations of the reconstructed images.

(e) Plot the trade-off curve for this bi-criterion optimisation problem. In the plot show the Pareto optimal point that you will eventually use.

(f) Provide all the CVX/CVXPY code used.

Task 2
One-Vs-All classification is a strategy that leverages binary algorithms for multi-class classification. It involves fitting one binary classifier per output class. For each classifier, the class is fitted against all the other classes. Finally, given a new input point, predictions are made by running all binary classifiers, and choosing the output class that corresponds to the prediction with the highest confidence.

Suppose you have been asked to build a model that best maps sepal and petal lengths to three types of roses, namely hybrid tea, grandiflora, and floribunda. That is to say, the explanatory variables comprise sepal length and petal length, whereas the output classes are the three types of roses. The dataset for this task can be found in the file ‘roses.m', and it contains 20 instances of each rose type, where the input features have been normalised.

Assume that you decided to deal with this task by using convex optimisation. In particular, you have chosen to employ the One-Vs-All strategy and the logistic model

p = prob(y = 1) = exp(aTu + b) / [1 + exp(aTu + b)]

where a ∈ Rn and b ∈ R are the model parameters, u ∈ Rn contains the explanatory variables, and y equals 1 means that an individual rose from the population belongs to a certain type.

(a) Suppose the whole rose population in the dataset is to be used for fitting each binary classifier. Provide the formulation of the convex optimisation problem that you will use for each binary classifier. Explain all notation used and why this problem is convex.

(b) Use CVX/CVXPY software to calculate the maximum likelihood estimates of the model parameters a, b for each binary classifier, and present the results.

(c) Assume that you have been given a rose with normalised sepal and petal lengths (0,0)T. Use the model you built above to predict the class (rose type) to which it belongs.

(d) Provide all the CVX/CVXPY code used.

Reference no: EM133116137

Questions Cloud

Discuss how personal insurance needs are similar : Insurance policies exist to minimize risks and damage that may be caused by unforeseen events. No business should be run without insurance.
Calculate the market value-book value ratio : Price and number of shares outstanding (listed shares outstanding) can be found on the 'quote' tab. Click on the 'financials' tab and look for the balance sheet
Defining an architecture : Why are quality attributes ("ilities") important when defining an architecture and why isn't it a good idea to "bolt" these on at a later date?
Calculate the annual cost of debt : Pic Berhad wishes to issue sukuk worth RM1 million and the maturity value is RM1,000. The sukuk is expected to pay a semi-annual coupon of 5% per year for the n
Plot the trade-off curve : What is the price experience that will be undergone for achieving denoising - Plot the trade-off curve for this bi-criterion optimisation problem
Minimize spending and maximize saving : Why should you try to minimize spending and maximize saving?
Compute mse using the most recent value as the forecast : Consider the following time series data: Compute MSE using the most recent value as the forecast for the next period
What is the operating cycle : Consider the following information: Suppliers' payment period 40 days
What is the price of the bond : Assuming that the annualized yield to maturity is 4.00% and the next coupon payment is one year from now, what is the price of the bond?

Reviews

len3116137

3/31/2022 11:38:26 PM

This coursework is about Optimization, at the university level. It needs to be solved in Matlab using CVX/CVXPY. The details of the work can be found in the Coursework_Spec. The lecture notes for the tasks are also available.

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd