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

  Describe how the maximum shearing stress is affected

Develop your code to support a discussion describing how the maximum shearing stress is affected by a change in the applied torsion and the cylinder diameter.

  Find the force on the object versus time

Computational Fluid Mechanics using Finite Differences method Project Work 1 - Find the force on the object versus time

  Establish a working model in simmultibody

Simplify the provided IGES model to establish a working model in SimMultibody - Make design changes to the present configuration and report recommendations

  Consider the random process

Consider the random process Z(t) = Acos(pi t), where A is a random variable that follows the standard normal Gaussian.

  Write a matlab script that solve system of linear equations

Write a Matlab script that will solve the system of linear equations shown below. This can be done by solving for the vector of unknowns (X) in the equation AX=B where A is the coefficient matrix and B is the vector on the right-hand side.

  Write a mileage per gallons and miles per dollar program

Write a mileage per Gallons and miles per dollar calculator program using two functions, one to calculate MPG and one to calculate MPD. The application will prompt the user to type the odm readings, number of gallons and the cost in US dollars for..

  Perform a principal component analysis on the dataset

Perform a principal component analysis on the dataset you have generated - what is the total variability in the dataset and what is the percent of the total variability explained by the first three components?

  Will compute the value of each piece of clothing.

write a script in MATLAB that will compute the value of each piece of clothing.

  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

  Signal coding and modulation

Explain the underlying principles and concepts of telecommunication modulation techniques - critically review and analyse mobile and satellite communication

  Value for the side of the octagonal prism

Value for the side of the octagonal prism, and a scalar value for the height of the octagonal prism. Generate the x,y,z arrays that define the 9 faces of the pyramid (octagonal base and 8 triangles. Use fill3 command to create the faces (faces wit..

  Deterinine the average codeword length

Determine the average information for this message. (You may ignore hyphens, spaces, and punctuation.)

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