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

  Explain differences in three categories using significance

The data (in milliamps) are shown below. Using the .05 level of significance, are there any differences in the three categories.

  Computing probability values for the given data

A random sample of 100 students at Southern University was collected. The mean age was found to be 24.2 years, with a standard deviation of 3.4 years.

  Hypothesis testing of population proportions

Identify the null hypothesis, alternative hypothesis, test statistic, P-value or critical value(s), conclusion about the null hypothesis, and final conclusion that addresses the original claim.

  Mean net weight of packages of ground chuck

A state meat inspector in lowa has been given the assignment of estimating the mean net weight of packages of ground chuck labeled " 3 pounds." Of course, he realizes that the weights cannot be precisely 3 pounds.

  Descriptive statistics and probability distribution

Provided an example of a research problem at any organization that would benefit from the employ of either descriptive statistics or probability distribution statistics.

  Measures of central tendency-solution set

Students in the social work course received the following course grades. Create a frequency distribution for this data. Compute the mean. Determine the median.

  What proportion of tires will fail before warranty expires

A standard deviation of 4,000 miles. The tires carry a warranty for 35,000 miles. a. What proportion of the tires will fail before warranty expires?

  Five step hypothesis testing for mean with one sample

The manufacturer of the X-15 steel-belted radial truck tire claims that the mean mileage the tire can be driven before the tread wears out is 60,000 miles.

  Explain and use statistics for experience stress in daily

If 20 students in the class said they frequently experience stress in their daily lives, would you be surprised? Explain and use statistics to support your answer

  Find the dependent variable for achievement test

All the pupils took the same achievement test, and the means for groups receiving different methods were compared. What was the dependent variable?

  Different types of trending

What are some examples of each of the trend types (Secular/Linear)? What external factors might affect each of the different types of trending?

  Question reagrding critical value

Assume a normal distribution applies and alpha = 0.05 (Use Z table), find the Critical value for the alternative hypothesis:

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