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

  How frequently should the equipment receive periodic mainten

The length of time (in months after maintenance) until failure of a bank’s surveillance television equipment has a Weibull distribution with α = 2 and β =60 months. If the bank wants the probability of a breakdown before the next scheduled maintenanc..

  What message did this survey send to employers

What is the point estimate of the proportion of the population of employees who strongly dislike their current work experience? At 95% confidence, what is the margin of error? What is the 95% confidence interval for the proportion of the population o..

  Find the minimum sample size needed, using a prior study th

A researcher wishes to estimate, with 95%confidence, the population proportion of adults who think the president of their country can control the price of gasoline. Her estimate must be accurate within 55%of the true proportion. a) No preliminary est..

  1 following are positions taken by twelve senators on a

1. following are positions taken by twelve senators on a half dozen key issues. the issues are scaled from 1 to 5 with

  What prevents or substantiates their correlation

Symbolic interactionism is actually a theory posed in sociological psychology. Do you believe this theory can be aligned with the framework of constructivism, which originates from learning psychology? Why, or why not?

  Is there a significant interaction effect

All homework "Results sections" must follow the example given in the SPSS tutorials and the Course Content document "Writing Results of Statistical Tests in APA Format" (note: you do not have to refer to a figure).

  How many days should one order last on average

What is the expected total inventory holding and ordering cost per year and how many days should one order last on average?

  Describe the dataset and describe each of the variables

Bus105 s0216 Computing Assignment. Description of the data set- Describe the dataset and describe each of the variables, For each variable answer the question is it categorical or numerical

  Filtering and summarizing data

Filtering and Summarizing Data

  An exam affects student performance as measured

Suppose than an instructor want wants to investigate whether the font used on an exam affects student performance as measured by the final exam score. She uses four different fonts (time , courier, helvetica, comic sans ) and randomly assigns h..

  Describe the trend in profitability and pinpoint its causes

Compute the net profit margin for 2010-2012. Compute the gross profit margin for 2010-2012. Describe the trend in profitability and pinpoint its causes.

  Identify and describe two forces of porters 5 force

Identify and describe two forces of Porters 5 Force that Apple have the most significant impact on the industry. Explain why.

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