Generate training sample of size hundred for each class

Assignment Help Basic Statistics
Reference no: EM13134805

Write a function to simulate data as described on page 17 in ESL for one of the classes. Your function should take as inputs a 102 matrix of centroids, the sample size, and the noise variance. Generate a training sample of size 100 for each class, as well as a test sample of 5,000 per class. (Best to generate the centroids matrices per class once and store them). Try and write elegant code, that makes use of the matrix/vector facilities in R.

Reference no: EM13134805

Questions Cloud

What is the inventory period : garnishes, inc has sales for the year of $46,300 and cost of goods sold of $21,700. the firm carries an average inventory of $4,800 and has an average accounts payable balance of $4.400. what is the inventory period?
Find out the depreciation expense : Gardner Corporation purchased a truck at the beginning of 2010 for $75,000. The truck is estimated to have a salvage value of $3,000 and a useful life of 120,000 miles. It was driven 18,000 miles in 2010 and 32,000 miles in 2011. What is the depre..
How many days on average does it take the firm to collect : jenny's has annual sales of $367,200 and cost of goods sold of $198,600. the average accounts receivable balance is $16.400. how many days on average does it take the firm to collect its accounts receivable?
Define what are its electron-pair and molecular geometries : Draw the Lewis Structure for the ClF2+ion and AlF4-. For each ion, what are its electron-pair and molecular geometries? What orbitals on Cl and F overlap to form bonds between these elements
Generate training sample of size hundred for each class : Generate a training sample of size 100 for each class, as well as a test sample of 5,000 per class. (Best to generate the centroids matrices per class once and store them).
What caused the change of bank of america corporation : What caused the change of Bank of America Corporation's percentage of the accounts receivable balance to total assets for the last two years?
What is the rationale for such laws : Many states have prevailing wage laws that require government contracts pay premium wages to workers who would otherwise work for 20% to 30% less. What is the rationale for such laws? In your opinion, what is their effectiveness?
Financial items of the lessee : If a lease transaction is accorded capital lease treatment rather than operating lease treatment, it would have what impact on the following financial items of the lessee?
How much will be in the account at the end of the year : To finance your newborn daughter’s education you deposit $1,200 a year at the beginning of each of the next 18 years in an account paying 8% annual interest. How much will be in the account at the end of the 18th year?

Reviews

Write a Review

Basic Statistics Questions & Answers

  Ordered logit model

When there are multiple observations per subject, what issues are there with doing a MNL and an ordered logit model, answer in detail and provide example.

  Estimate the proportion of the marine corp

A much larger sample would be needed to estimate the proportion of the U.S. Army's 2.4 million active duty and reserve personnel who approved the repeal than would be needed to estimate the proportion of the Marine Corp's 200,000 personnel who fel..

  Determining the point estimate

Determine the point estimate? Give the symbol and value.

  Basic statistics-probability

Pizza House offers 4 different salads, 5 different kinds of pizza, and 4 different desserts. How many different three course meals can be ordered?

  Sample tests for hypotheses

A recent national survey found that high school students watched an average (mean) of 7.5 DVDs per month with a population standard deviation of .60.

  Stating decision rule for significance level

State the decision rule for .05 significance level. (Round your answer to 3 decimal places.)

  Confidence interval for difference between two means

What is the 95% confidence interval estimate for the difference between the mean reflectivity reading for Paint A and Paint B? Please complete the blank: "we can be 95% confident that the true difference between the actual means is?

  Question regarding simple linear regression

The president of Crooked Arrow National Bank wants to determine whether more than 60% of the banks loans are made to persons residing in Crooked Arrow.

  Total variance of the investment as investment risk

The variance of the return per share is 4 for stock 1 and 100 for stock 2. The covariance of the return between the two stocks is 5 per share. Use the total variance of the investment as investment risk.

  Probability that newspaper-s sample will lead to defeat

Suppose the budget has the support of 52% of the voters. What is the probability that the newspaper's sample will lead it to predict defeat?

  Mean crash damages of vehicles

Research question: Are the mean crash damages the same for these three vehicles?

  Estimation of confidence interval for r-square

If we want to increase our confidence level from 95% to 99%, what happens to our confidence interval?

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