Ask Question, Ask an Expert


Ask Computer Engineering Expert


Computational Task 1

Please consider the following database.

It represents some of the results of presidential elections in the USA over the period from 1860 until 1992.

For your convenience data were separated in 2 classes: p–class corresponds to the elections when the presidential party (P-party) candidate won, o–class means opposition candidate (O-party) won.

Attributes were filled according to the answers to the 12 problems.


1) Has the P-party been in power for more than one term?

2) Did the P-party receive more than 50% of the popular vote in the last election?

3) Was there important activity of a third party during the election year?

4) Was there serious competition in the P-party primaries?

5) Was the P-party candidate the president at the time of election?

6) Was there a depression or recession in election year?

7) Was there a growth in the gross national product of more than 2.1% in the year of election?

8) Did the P-party president make any substantial political changes throughout his term?

9) Did significant social tension exist during the term of the P-party?

10) Was the P-party administration guilty of any serious mistakes or scandals?

11) Was the P-party candidate a national hero?

12) Was the O-party candidate a national hero?


Election Answers to problems

1672_p_party victory.jpg


938_Q party victoy.jpg

The task is:

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

2) Prepare 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. Choose randomly several ex of each class for the test set and exclude them from the training set. Find the training and the test set errors.

5) Which technique works better for this dataset? Elucidate please.

6) Please prepare a conclusion.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91336

Have any Question? 

Related Questions in Computer Engineering

True or false questions- please indicate whether each

True or False Questions- Please indicate whether each statement is true or false. Q1. The command interpreter is operating system utilities that lets users issue and execute commands from the keyboard. Select one: True F ...

A number of policies protect patients from faulty dangerous

A number of policies protect patients from faulty, dangerous, or unnecessary medicines, medical procedures, and services. Note one of these public policies and identify how it protects a patient group.

Topicsthe internetdiscussion response we are currently

Topics:The Internet Discussion Response: We are currently utilizing IPv4; however, IPv6 has been out for over a decade. What has kept much of the world from making the transition to IPv6? Support your claims with researc ...

Consider the cache in example 83 assume that whenever a

Consider the cache in Example 8.3. Assume that whenever a block is to be brought from the main memory and the corresponding set in the cache is full, the new block replaces the most recently used block of this set. Deriv ...

Consider a long sequence of accesses to a disk with 8 ms

Consider a long sequence of accesses to a disk with 8 ms average seek time, 3 ms average rotational delay, and a data transfer rate of 60 Mbytes/sec. The average size of a block being accessed is 64 Kbytes. Assume that e ...

Hey need help asapexplain why it is important to understand

Hey need help ASAP. Explain why it is important to understand visitors to your site who are not your customers and visitors who do not return.

With the use of technology also comes the responsibility of

With the use of technology also comes the responsibility of businesses to secure the data of internal and external stakeholders. Create  a plan that identifies 5-7 security or privacy issues that might occur at the busin ...

Explain the role the federal government has in regulating

Explain the role the federal government has in regulating security. What additional areas would you like to see the government involved in? What areas should the government not regulate regarding private security? Apply ...

Technology amp product review for identity governance amp

Technology & Product Review for Identity Governance & AdministrationCase Scenario: North-by-East Software is a small but growing software development company. A recently completed risk assessment found that the company h ...

Clipping algorithms are an important component of the

Clipping algorithms are an important component of the creating a scene view. Explain why clipping is necessary. Choose an example of a boundary and a line and show how the endpoints of the clipped line can be calculated.

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate