Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Applied Statistics Expert

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

Applied Statistics, Statistics

  • Category:- Applied Statistics
  • Reference No.:- M92571215
  • Price:- $65

Guranteed 36 Hours Delivery, In Price:- $65

Have any Question?


Related Questions in Applied Statistics

Business statistics assignment -quiz 1 -question 1 - a

Business Statistics Assignment - Quiz 1 - Question 1 - A study is under way in the Otway National Park to determine the mature height of Mountain Ash gum trees. Specifically, the study is attempting to determine what fac ...

Quantitative methods in health statistical analysis report

Quantitative Methods in Health Statistical Analysis Report - Question 1 - Are you a Lark or an Owl? Studies indicate that about 10% of us are morning people (Larks) while 20% are evening people (Owls) and the rest are no ...

The scientific method assessment task - data analysis

The Scientific Method Assessment Task - Data Analysis Assignment QUESTION 1 - Single-factor experiments Use Minitab for this question. The data in Q1 tab of 60902_AssessmentTask3Data_Spring2018.xlsx records blood cholest ...

Assessment task -you become interested in the non-skeletal

Assessment Task - You become interested in the non-skeletal effects of vitamin D and review the literature. On the basis of your reading you find that there is some evidence to suggest that vitamin D deficiency is linked ...

Business statistics assignment -the purpose of this

Business Statistics Assignment - The purpose of this assignment is to improve your understanding in choosing between and using methods to assess the relationship between variables and make comparisons across different se ...

Questions -question 1 - briefly explain what each of the

Questions - Question 1 - Briefly explain what each of the following theories says about corporate cash holdings: The static tradeoff theory: Information asymmetry. The agency costs of debt. Managerial agency theory. The ...

Using minitab to construct linear regression modelsscatter

Using Minitab to Construct Linear Regression Models Scatter Plot To obtain a simple scatter plot using Minitab: One of the first steps in the analysis of the study data is to create a scatter plot that compares the quant ...

Enhancing patient safety through organizational learningare

Enhancing Patient Safety through Organizational Learning: Are Patient Safety Indicators a Step in the Right Direction? by Peter E. Rivard, Amy K. Rosen, and John S. Carroll. Take a professional position, from the HIM per ...

Question - go to the website national quality forum nqf

Question - Go to the website, National Quality Forum (NQF), located in the Webliography, and download the article by WIRED FOR QUALITY: The Intersection of Health IT and Healthcare Quality, Number 8, MARCH 2008. You are ...

Business statistics project -problem description the

BUSINESS STATISTICS PROJECT - Problem Description: The blockchain is a decentralized ledger of all transactions across a peer-to-peer network. Using this technology, participants can confirm transactions without a need f ...

  • 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