Pattern Recognition and Machine Learning

by | Mar 20, 2022 | Computer Science

CSCI 744 Pattern Recognition and Machine Learning

Reading assignment: Textbook Chapter 2

Part I Single Feature

1. Create a matlab script that will perform each of the steps required for this exercise.

2. Load β€˜partOneData.mat’ into the matlab environment (included in blackboard as part of the assignment).

3. Create a histogram for each of the class distributions {classOne, classTwo}. Plot each of the histograms on the same figure (use 100 bins). The x and y axis should be labeled appropriately. There should be a title for the figure as well as a legend.

4. Report the prior probability for classOne? (Hint: Number of classOne samples divided by all samples)

5. Report the prior probability for classTwo? (Hint: see above hint, but for classTwo)

6. Create 5 random partitions of the data, splitting each of the classes into 60% training and 40% testing.

a. Using only the training data, find the maximum likelihood estimator for the following parameters:

i. πΆπ‘™π‘Žπ‘ π‘  𝑂𝑛𝑒: πœ‡,𝜎

ii. πΆπ‘™π‘Žπ‘ π‘  π‘‡π‘€π‘œ: πœ‡,𝜎

b. Classify each of the test samples using a Bayesian classifier (you must create a function that will do this). Report the prediction accuracy for each class.

7. Report the mean and standard deviation for the prediction accuracy from step 6.

Hint: You will need to create a method that, given the mean and standard deviation of a distribution, determines the probability of a value β€˜x’ belonging to that distribution.

Matlab template below:

function probability = computeGaussianDensity(mean, stdDev, x)

β‰ͺYour code here≫

end

Part II Multivariate

1. Create a matlab script that will perform each of the steps required for this exercise.

2. Load β€˜partTwoData.mat’ into the matlab environment (included in blackboard as part of the assignment).

3. Report the prior probability for classOne?

4. Report the prior probability for classTwo?

5. Create 5 random partitions of the data, splitting each of the classes into 60% training and 40% testing.

a. Repeat the following process for each of the 5 random partitions:

i. Using only the training data, find the maximum likelihood estimator for the following parameters:

1. πΆπ‘™π‘Žπ‘ π‘  𝑂𝑛𝑒: πœ‡,π‘π‘œπ‘£π‘Žπ‘Ÿπ‘–π‘Žπ‘›π‘π‘’ π‘šπ‘Žπ‘‘π‘Ÿπ‘–π‘₯

2. πΆπ‘™π‘Žπ‘ π‘  π‘‡π‘€π‘œ: πœ‡,π‘π‘œπ‘£π‘Žπ‘Ÿπ‘–π‘Žπ‘›π‘π‘’ π‘šπ‘Žπ‘‘π‘Ÿπ‘–π‘₯

ii. Classify each of the test samples using a Bayesian classifier (you must create a function that will do this). Report the prediction accuracy for each class.

6. Report the mean and standard deviation for the prediction accuracy from step 5.

Hint: You will need to create a method that, given the mean and covariance matrix, determines the probability of a value β€˜x’ belonging to the distribution.

Matlab template below:

function probability = computeGaussianDensityMultivariate(mean, covarianceMatrix, x)

β‰ͺYour code here≫

end

We help you get better grades, improve your productivity and get more fun out of college!!

Homework Answers Online

Free title page

Free reference page

Free formatting

Unlimited revisions

WhatsApp chat

How it works – it’s easy

i

Place your Order

Submit your requirements through our small easy order form. Be sure to include and attach any relevant materials.

ξ„€

Make a payment

The total price of your order is based on the type of assignment, number of pages, academic level and deadline.

i

Order process

We assign the assignment to the most qualified tutor. When the tutor completes the assignment, it is transferred to one of our professional editors to ensure that the assignment meets all of your requirements.

Once complete, we’ll send your assignment via the email provided on the order form and you’ll be able to download it.Β 

Achieve academic success with the best online tutors