Question

In: Statistics and Probability

alpha value is 0.05 if it is not specified in the problem. **Everything should be in...

alpha value is 0.05 if it is not specified in the problem.

**Everything should be in r code base.

4. Back to the iris dataset one last time! We wish to estimate the probability of a flower’s species based on the available measurements.

a. Build a Multinomial model to predict Species based on Sepal.Length. Use it to estimate the probability of each species for a flower with a sepal 6.3 cm long.

b. Build a Multinomial model to predict Species based on Petal.Length. Use it to estimate the probability of each species for a flower with a petal 5.1 cm long.

c. Compare both the residual deviances and the AICs for the two previous models. Which appears to be the “better” model based on these metrics?

d. Build a Multinomial model to predict Species based on all four of the measurements (no interactions). Use the model to estimate the probability of each species for a flower with a Sepal.Length of 6.3 cm, a Sepal.Width of 2.8 cm, a Petal.Length of 5.1 cm, and a Petal.Width of 1.5 cm.

e. The flower described in part d is actually in the dataset. What species was it?

Solutions

Expert Solution

Answer a.

Answer b.

Part c.

1. Deviance is a measure of goodness of fit of a model. Higher numbers always indicates bad fit. Model 1 has Residual Deviance of 182.0679 whereas Model 2 has residual deviance of 33.48589 which indicates Model 2 is better.

2. The model which has a less Akaike-Information-Criterion-(AIC) value is better than the other higher value. The Akaike information criterion (AIC) is an estimator of the relative quality of statistical models for a given set of data. Model 1 has AIC of 190.0679 while Model 2 has AIC of 41.48589 . Thus, Model 2 is Better based on AIC.

Part d.

Part e.

It is actually Virginica but has a greater probability of being Versicolor in part d.


Related Solutions

Use alpha = 0.05 for hypothesis testing unless specified otherwise. 2. A college teacher decided to...
Use alpha = 0.05 for hypothesis testing unless specified otherwise. 2. A college teacher decided to do an experiment to see whether the position her students satin the classroom had an effect on their performance in the class. At the beginning of the semester, she randomly assigned each student to one of three classroom positions: Front,Middle, or Back. As it turned out, 10 students were assigned to the Front of the room, 14students to the Middle, and 10 to the...
Produce the following for each problem: Assuming an Alpha = 0.05, calculate the number of replications...
Produce the following for each problem: Assuming an Alpha = 0.05, calculate the number of replications necessary for each factor (including interactions), to have a type II error less or equal to 0.1. Evaluate results and provide conclusion(s). Scan the solutions to these problems. Depth of Cut (in) Feed Rate (in/min) 0.15 0.18 0.20 0.25  74  79  82  99 0.20  64  68  88 104  60  73  92  96  92  98  99 104 0.25  86 104 108 110  88  88  95  ...
1. drawn bell shaped curved showing rejected/ non rejection with an alpha value of 0.05
  1. drawn bell shaped curved showing rejected/ non rejection with an alpha value of 0.05 2. determine regression of the line equation y=bx+a 3. Find a and b 4. let 20 be x and what it indicated 5. Then set it up for 95% prediction interval x y xy x^2 y^2 19 7 133 361 49 23 10 230 529 100 25 3 75 625 9 15 12 180 225 144 67 4 268 4489 16 54 2 108...
Determine the test statistic, the P-value, and test the hypothesis at the alpha equals 0.05α=0.05 level...
Determine the test statistic, the P-value, and test the hypothesis at the alpha equals 0.05α=0.05 level of significance. Outcome   Observed   Expected 0 3   1.6 1 40   25.5 2 121   153.1 3 442   408.4 4 391   408.4
Assuming 0.05 as your alpha value: Find the mean Find the standard deviation Find the E...
Assuming 0.05 as your alpha value: Find the mean Find the standard deviation Find the E value Find the confidence interval The values are as follows: $2.53 $2.51 $2.26 $2.90 $2.33 $2.32 $2.21 $2.25 $2.56 $2.59 $2.67 $2.61 $2.48 $2.31 $2.47 $2.86 $2.36 $2.54 $2.63 $2.29 $2.31 $2.46 $2.47 $2.52 $2.38 $2.60 $2.59 $2.31 $2.25 $2.28 $2.40 $2.58 $2.37 $2.49 $2.29 $2.23 !
What does this statment mean Firms should do everything to maximize shareholder value”?
What does this statment mean Firms should do everything to maximize shareholder value”?
At an alpha level of 0.05, test to determine if the means of the three populations...
At an alpha level of 0.05, test to determine if the means of the three populations are equal. The data below is based on samples taken from three populations. Sample 1 Sample 2 Sample 3 60 84 60 78 78 57 72 93 69 66 81 66
Question 48 - If a study has an alpha of 0.05 and a power of 0.80...
Question 48 - If a study has an alpha of 0.05 and a power of 0.80 you know the chance of making a type II error is: 80% 20% 5% Unable to determine
In forward stepwise regression, why should the alpha-to-enter value for adding variables never exceed the alpha-to-remove...
In forward stepwise regression, why should the alpha-to-enter value for adding variables never exceed the alpha-to-remove value for deleting variables?
Conduct the appropriate test of the specified probabilities using the given information. Use α = 0.05....
Conduct the appropriate test of the specified probabilities using the given information. Use α = 0.05. The five categories are equally likely to occur, and the category counts are shown in the table Category 1 2 3 4 5 Observed Count 48 62 75 50 65 Given: H0: p1 = p2 = p3 = p4 = p5 = 1/5 Ha: At least one pi is different from 1/5. FInd: Find the test statistic. (Round your answer to two decimal places.)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT