Ask Statistics and Probability Expert

Assignment - Simple Classifiers

General Instructions

This assignment is individual work. You may discuss questions and problems with anyone, but the work you hand in for this assignment must be your own work.

- Each question indicates what to hand in.
- Do not submit folders, or zip files, even if you think it will help.
- Assignments must be submitted to Moodle.

Question 1:

Purpose: To practice using Variable Elimination on non-trivial examples. Consider the Bayesian network given below.

897_network.jpg

Write out a formula for each of the following queries, using technique called variable elimination shown in class. There are no probabilities given, so leave you answer in algebraic form. Choose any order for the marginalization; there is no need to determine the "optimal" order. Be sure to consider conditional independence, and relevance, as in A3!

(a) P(G|C)
(b) P (B|A, F)

Question 2:

Purpose: To work through the equations for a Linear Classifier.

Consider the following diagram, showing 4 data points in the x1, x2 plane.

1283_diagram.jpg


(a) Give a pair of values (m1, b1) that defines a line that separates the two classes. Use the function h() defined in the notes:

h(x1, x2, m, b) = 1  if x2 - (mx1 + b) ≥0; 0 otherwise

to demonstrate that your line separates the two classes by showing that all the points for the red class are on one side of the line, and all the points for the blue class are on the other.

(b) Take one point from the data, and use the "Perceptron Learning rule" to demonstrate the update of your choice for (m1, b1). Use an arbitrary α; it can be α = 0.1, just to keep math simple. You only need to show the change in (m1, b1) using the rule once, on one data point.

(c) Give a pair of values values (m2, b2) that defines a line that does not separate the two classes (any line where at least one point is misclassified will do). As in part (a), demonstrate that your line does not separate the two classes by showing one or more of the points from one of the classes is on the "wrong" side of the line.

(d) Take one of the misclassified points from the data (depending on your choice of (m2, b2)), and use the "Perceptron Learning rule" to demonstrate the update of your choice for (m2, b2) with that point. Use an arbitrary α; it can be α = 0.1, just to keep math simple. You only need to show the change in (m2, b2) using the rule once, on one data point.

Question 3:
Purpose: To work through the equations for a Logistic Regression Classifier. Consider the following diagram, showing 5 data points in the x1, x2 plane.

2270_diagram1.jpg

(a) Using your (m1, b1) from Question 1, demonstrate the output of the Logistic classifier on all 5 data points. Use the logistic classifier h() defined in the notes:

h2(x1, x2, m, b) = 1/(1 + e-(x2 -mx1 -b))

(b) Using the Logistic Regression Learning rule, your (m1, b1) from Question 1, and the point (3, 3), demonstrate the effect of the the learning rule by calculating the new values for (m1, b1).

Let's use v as an abbreviation:

v = h2(xi1, xi2, m, b)

The Logistic Regression Learning rule is as follows.

m = m - α xi1 (yi - v) v (1 - v)

b = b - α (yi - v) v (1 - v)

(c) Using your updated (m1, b1) from the previous part, demonstrate the output of the Logistic classifier on all 5 data points.

Question 4:

Purpose: To work through the equations of the simple perceptron classifier.

Consider the following diagram, showing 4 data points in the x1, x2 plane.

2416_diagram2.jpg

This data is the same as in Question 2.

(a) Construct a perceptron with one unit, and one output value, that correctly classifies the data.

You could use the following as your basic architecture (but you are not bound to use this one).

861_diagram3.jpg

This is an exercise in understanding how perceptrons work; don't do back propagation or anything. Try to figure out how many inputs your perceptron needs, and what weights will give you the right answer as the output. Use Step as your activation function here (not Sigmoid).
Hint: Use Question 1!

(b) Demonstrate that your perceptron works correctly by showing its output on all 4 data points.

Question 5:

Purpose: To work through one step of the back propagation algorithm for Artificial Neural Networks.

Consider the following diagram, showing 5 data points in the x1, x2 plane.

364_diagram4.jpg

This data is the same as in Question 3.

(a) Construct a 2-level feedforward neural network to classify the 5 data points. Your network should have 2 input units, and one output unit, with up to 3 weights on each unit. Use the Step function as the activation function for all units. There will be no hidden layer here.
The following is a diagram of what you could use. Note that each unit is a perceptron as in Question 3.

2450_diagram5.jpg

The problem is to figure out what weights to use to build this network to get all 5 data points right.

(b) Demonstrate that your ANN works correctly by showing its output on all 5 data points.

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92775531
  • Price:- $95

Guranteed 48 Hours Delivery, In Price:- $95

Have any Question?


Related Questions in Statistics and Probability

Introduction to epidemiology assignment -assignment should

Introduction to Epidemiology Assignment - Assignment should be typed, with adequate space left between questions. Read the following paper, and answer the questions below: Sundquist K., Qvist J. Johansson SE., Sundquist ...

Question 1 many high school students take the ap tests in

Question 1. Many high school students take the AP tests in different subject areas. In 2007, of the 144,796 students who took the biology exam 84,199 of them were female. In that same year,of the 211,693 students who too ...

Basic statisticsactivity 1define the following terms1

BASIC STATISTICS Activity 1 Define the following terms: 1. Statistics 2. Descriptive Statistics 3. Inferential Statistics 4. Population 5. Sample 6. Quantitative Data 7. Discrete Variable 8. Continuous Variable 9. Qualit ...

Question 1below you are given the examination scores of 20

Question 1 Below you are given the examination scores of 20 students (data set also provided in accompanying MS Excel file). 52 99 92 86 84 63 72 76 95 88 92 58 65 79 80 90 75 74 56 99 a. Construct a frequency distributi ...

Question 1 assume you have noted the following prices for

Question: 1. Assume you have noted the following prices for paperback books and the number of pages that each book contains. Develop a least-squares estimated regression line. i. Compute the coefficient of determination ...

Question 1 a sample of 81 account balances of a credit

Question 1: A sample of 81 account balances of a credit company showed an average balance of $1,200 with a standard deviation of $126. 1. Formulate the hypotheses that can be used to determine whether the mean of all acc ...

5 of females smoke cigarettes what is the probability that

5% of females smoke cigarettes. What is the probability that the proportion of smokers in a sample of 865 females would be greater than 3%

Armstrong faber produces a standard number-two pencil

Armstrong Faber produces a standard number-two pencil called Ultra-Lite. The demand for Ultra-Lite has been fairly stable over the past ten years. On average, Armstrong Faber has sold 457,000 pencils each year. Furthermo ...

Sppose a and b are collectively exhaustive in addition pa

Suppose A and B are collectively exhaustive. In addition, P(A) = 0.2 and P(B) = 0.8. Suppose C and D are both mutually exclusive and collectively exhaustive. Further, P(C|A) = 0.7 and P(D|B) = 0.5. What are P(C) and P(D) ...

The time to complete 1 construction project for company a

The time to complete 1 construction project for company A is exponentially distributed with a mean of 1 year. Therefore: (a) What is the probability that a project will be finished in one and half years? (b) What is the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As