Program that perform k nearest neighbours algorithm, MATLAB Programming

1) Convert the table into format convenient for the processing with MATLAB.

2) Prepare a program that perform K Nearest Neighbours algorithm using Euclidian distance. (Your program should not utilise the MATLAB function for KNN)

3) For each row (instance) from the table prepare the results of the cross-validation: for each instance apply the program for different values of K = 1,2,3,4,5. Analyse the accuracy of the classification using cross-validation and visualize your results.

4) Please create a decision tree for prediction of USA presidential elections. Select randomly several example of each class for the test set and exclude them from the training set. Find the training and the test set errors.

5) Which method works better for this dataset? Explain please.

6) Please write a conclusion.



Posted Date: 3/20/2013 6:21:36 AM | Location : United States

Related Discussions:- Program that perform k nearest neighbours algorithm, Assignment Help, Ask Question on Program that perform k nearest neighbours algorithm, Get Answer, Expert's Help, Program that perform k nearest neighbours algorithm Discussions

Write discussion on Program that perform k nearest neighbours algorithm
Your posts are moderated
Related Questions
Adaptive filters can also be used in other applications. Speech recognition, for example, is performed in a non-stationary environment, and therefore may require adaptive filtering

Built-In Functions and help: There are lots of built-in functions in a MATLAB. The help command is used to find out what functions MATLAB has, and how to use them. For illustr

Finite Difference Method for An Elliptic Partial Differential Equation   Problem  Use the finite difference method and MatLab code to solve the 2D steady-state heat equat

This problem is intended to demonstrate some problems that can arise from the finite precision of numerical calculations performed with computers.  We will do this by approximating

An FIR filter has coefficients b = [ 1.0000   -0.6387    1.0214    0.8210   -0.7470    1.0920 ] (a) Find H(z) for the filter and plot its frequency response (magnitude and phase

Looping Statements: Consider the problem of computing the area of a circle with radius of 0.3 centimeters-a MATLAB program certainly is not required to do that; you would use

Example of variable names: If nothing appears when, who or whose is entered, which means there aren't any variables! For illustration, in the starting of a MATLAB session, the

please show me how this is coded in MATLAB

You are asked to create an american option multiplicative binomial model calculator in MatLab. Both put and call options should be valued. Given u, d, S 0 , K, r, and T (the usual

How to make EMG analysis by Matlab?