Perform fishers linear discriminant analysis

Assignment Help Applied Statistics
Reference no: EM131762532

Project

We examine handwritten digits scanned from the ZIP codes written on samples of U.S. postal envelopes. In this project, we focus on digits "7" and "9" only. Each digit image (resulting from a 16 16 grayscale matrix) is represented by a 256 dimensional vector of normalized intensity values. All the files relevant to the final project are available in Final_Project folder on Carmen. The computer code, final.R, will help you read data files (train.7.txt and train.9.txt), visualize individual digit images, and split the data into a training set of 800 observations (400 for each digit) and a test set of 489 (245 "7"s and 244 "9"s).

The main focus of this project is how to represent the data in much fewer dimensions and how to use such representations for classification of the two digits. Your analysis should address the following suggested questions. Feel free to explore other aspects of analysis that are not instructed below but of your own interest!

1. Dimension reduction

(a) Carry out a principal component analysis on the training data of 400 "7"s in data.7.train. To understand the nature of variations that the first few principal component directions capture, visualize the average image of "7"s first and then visualize the synthetic digit images that you would get along the principal component directions by considering x¯ + c.e, in other words, "average image + (constant) eigen-image" for some appropriately chosen range of c values including zero. Comment on the nature of variations that they capture.

Using each of the first two principal components, identify and display typical images of "7" and atypical images among the observed images.

How many components might be adequate to represent the 256 dimensional data?

(b) Carry out a similar principal component analysis on the training data of 400 "9"s in data.9.train.

(c) Carry out a principal component analysis on the combined training data of 400 "7"s and 400 "9"s in data.train and address similar questions as in (a). Comment on differences in the results from (a)-(c), if any.

In addition, generate a plot of mean-centered principal component scores using the first two principal components and label each point as the corresponding digit. Are the principal components useful for discriminating the two digits?

2. Classification

(a) Perform Fisher's linear discriminant analysis on the combined training data (data.train), using all the variables with sufficient variation. See the R code for subsetting those variables with sufficiently large standard deviations. There are, in fact, 18 pixels (or variables) with zero variation in the data and we should not use those variables for discrimination.

Visualize the coefficient vector of the linear discriminant as an image and compare it with the principal component directions obtained in 1(c). Evaluate the linear discriminant rule in terms of the apparent error rate and test error rate (error rate over the test data, data.test).

(b) Alternatively, perform Fisher's linear discriminant analysis on the combined training data, using the first two principal components from 1(c) as predictors. Compare the two classification rules in parts (a) and (b) in terms of the apparent error rate and test error rate.

Does the addition of subsequent principal components as predictors seem to improve classification accuracy?

Attachment:- final.rar

Reference no: EM131762532

Questions Cloud

Significance than other parts of the cycle : During the life cycle of a product do feel that any stage holds more significance than other parts of the cycle?
Please answer each of these questions in paragraph : What "virtual presence," other than its website, does the fashion retailer, Planet Blue maintain?
Explain any legal or ethical issues and their relationship : Identify and describe/explain any legal or ethical issue(s) and their relationship to the context of proper HR management.
Discuss these appraisals indicated the following fair values : Independent appraisals had been completed on all assets prior to the sale. These appraisals indicated the following fair values
Perform fishers linear discriminant analysis : STAT 6560 - Perform Fishers linear discriminant analysis on the combined training data - How many components might be adequate to represent the 256 dimensional
Important to maintain a customer relationship : Why is it important to maintain a Customer Relationship instead of constantly seeking new customers?
Describe the efficiency of common techniques : Describe the efficiency of common techniques for effectively communicating compensation and benefit plans to employees. Support your answer.
Write research paper about women rights : The research paper topic must be a topic that is related to or concerns the book Handmaid's Tale (Topic is Women's Right)
Identify the performance obligations and the revenue : Identify the performance obligations and the revenue in 2017, assuming the performance obligations are interdependent

Reviews

len1762532

12/12/2017 7:30:03 AM

I need detailed typed solutions for the assignment. The skeleton code is there and I want you to build the code around it. Just answer the questions in the pdf and give me the R code as well (With proper commenting). Statistics Programming All the files relevant to the final project are available in Final_Project folder on Carmen.

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

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