Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

STA Homework

1. This is a basic illustration of using Bootstrap for inference.

(i) Generate a random sample of size n = 100 following the univariate regression model

Yi = -5 + 2Xi + εi

where Xi's are independent Chi-square random variables with degrees of freedom 6, and εi's are i.i.d. N(0, σ2) with σ = 1. Fix a random seed to ensure that the results are reproducible.

(ii) Fit the least squares regression line to the data and obtain the estimate of (β0, β1, σ2).

(iii) Obtain re-sampling-based 95% confidence intervals for β0 and β1 by using a parametric (i.e., residual-base) bootstrap procedure with 400 bootstrap replicates.

(iv) How do the confidence intervals in (iii) compare with the theoretical confidence intervals for β0 and β1? [To compare the accuracy of the confidence intervals, repeat the procedure in steps (i)-(iii) 10 times (using different random seed for each simulation run) and report the average lengths of the bootstrap confidence intervals and that of corresponding theoretical confidence intervals.]

2. In this example, compare k-NN classification method, linear discriminant analysis and logistic regression in a two-class classification problem. For this consider the iris data available in R.

(i) Extract the data corresponding to flower types setosa and versicolor, numbering a total of 100 flowers. Set aside the last 10 measurements for each flower type as test data and use the remaining data consisting of 80 measurements as training data.

(ii) Fit a logistic regression model to the training data, using the variable Sepal.Length as predictor. Obtain the estimates of the model parameters. Compute the confusion matrix for the test data set.

(iii) Compute the decision boundary for linear discriminant analysis, using Sepal.Length as the predictor variable. Compute the confusion matrix for the test data set.

(iv) Use k-nearest neighbors classification method with k = 3, 4, 5, again using Sepal.Length as the predictor variable. In each case, confusion matrix for the test data set.

(v) Write a very brief summary of the comparative performance of different classification procedures.

Reference -

1. James, G., Witten, D., Hastie, T. and Tibshirani, R. (2013). An Introduction to Statistical Learning with Applications in R. Springer. [Chapters 3, 4 & 5].

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92051608

Have any Question?


Related Questions in Statistics and Probability

Te number of accidents in a day in town a is given by x

The number of accidents in a day in town A is given by X , and the number of accidents in a day in town B is given by  Y . The joint probability function for  X   and  Y Y is  f ( x , y )=964 x ! y !   for  x =0,1,2,3 an ...

How do you calculate conditional probability for behaviors

How do you calculate conditional probability for behaviors in applied behavior analysis?

In a poker hand consisting of 5 cards find the probabilty

In a poker hand consisting of 5 cards find the probabilty of holding 2 aces and 3 jacks In how many ways can you pick 5 different questions from a test bank contsisting of 15 questions? 3 dice are thrown find the probabi ...

In an intro psychology class all 83 students have completed

In an Intro Psychology class, all 83 students have completed an aggression rating scale. The possible ratings range from 1-7 with low scores indicating low aggression. Results showed that the average rating was 4.23 with ...

Assume that the critic finds that 50 percent of the movies

Assume that the critic finds that 50 percent of the movies have positive comments about the plot, 50 percent have positive comments about the acting, and 30 percent were not given positive comments about either plot or a ...

The caloric consumption ofnbsp44nbspadults was measured and

The caloric consumption of 44 adults was measured and found to average 2,113. Assume the population standard deviation is 270 calories per day. Construct confidence intervals to estimate the mean number of calories consu ...

To finance additional inventory arbutus ltd is considering

To finance additional inventory, Arbutus Ltd. is considering forgoing the cash discount on all of its purchases presently offered on terms of 2/10, net 45. No payments will be stretched. Annual purchases are $9.21 millio ...

Analysis of variance anovaan investigator compares the

Analysis of variance (ANOVA) An investigator compares the difference in the amount of 20% sucrose solution removed by pollinators between unadulterated solution and solutions with 50, 100, 150, and 200 parts per million ...

You want to you want to estimate the mean weight of

You want to you want to estimate the mean weight of quarters in circulation. A sample of 30 quarters has a mean weight of 5.649 grams in a standard deviation of 0.066 gram. Use a single value to estimate the mean weight ...

A national report indicates that the mean and standard

A national report indicates that the mean and standard deviation of the ACT scores of incoming freshman at American public universities are 24.6 and 6.2, respectively. A sample of 30 incoming freshmen at a small, suburba ...

  • 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