Question

The table below provides a training data set containing nine observations. two pedictors α1 and X) and one qualitative response variable (Category) X1 X2 Below is scatter plot which shows the data, with Category indicated 1.0 -0.5 0.0 0.5 1.0 1.5 2.0 X1 Suppose we wish to use this data set to make a prediction for Category when X-0 and X-3 using K nearest neighbors. a Compute the Euclidean distance between each observation and the test point X b. What is your prediction with K 1? Why? c. What is your prediction with K 3? Why? -0 and X-3 You are not required to use R to answer these questions
0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
The table below provides a training data set containing nine observations. two pedictors α1 and X)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The following table provides a set of training data that contains 10 observations, 2 characteristics and a qualitative r...

    The following table provides a set of training data that contains 10 observations, 2 characteristics and a qualitative response variable that tells us if the patient should be classified as sick and go immediately to emergency. Observation X1 X2 Y 1 4 1 Healthy 2 1 0 Healthy 3 2 4 Sick 4 3 2 Healthy 5 1 2 Sick 6 2 5 Sick 7 4 3 Healthy 8 3 4 Sick 9 2 3 Sick 10 6 2 Healthy...

  • You are presented with a data-set containing 6 observations, and wish to cluster them using hiera...

    You are presented with a data-set containing 6 observations, and wish to cluster them using hierarchal clustering. A similarity function s(x,x') is chosen which measures how similar observation r is to observation ', for each pair of observations. The distance function is then defined as d(x, x)-1- s(x,') The similarity scores are give by the below matrix, where the [ijlth entry is the similarty between observations r and a 123456 11.00 0.70 0.65 0.40 0.20 0.05 2 0.70 1.00 0.95...

  • 7.3 Consider a set of three records with two numeric fields X, and Y. Type is the categorical tar...

    7.3 Consider a set of three records with two numeric fields X, and Y. Type is the categorical target variable. Record X 3.0 3.0 3.0 3.0 Small Large Large (a) Suppose we have a new record (D) with values X-1.5 and Y-3.0. Use k-NN simple unweighted voting (for different values of k-1,2, and 3) to determine the classification of D. A scatter plot of Y against X shows the location of the three training records, and new unclassified record. 3.5...

  • Data on the fuel consumption ?y of a car at various speeds ?x is given. Fuel...

    Data on the fuel consumption ?y of a car at various speeds ?x is given. Fuel consumption is measured in mpg, and speed is measured in miles per hour. Software tells us that the equation of the least‑squares regression line is ?̂ =55.3286−0.02286?y^=55.3286−0.02286x Using this equation, we can add the residuals to the original data. Speed 1010 2020 3030 4040 5050 6060 7070 8080 Fuel 38.138.1 54.054.0 68.468.4 63.663.6 60.560.5 55.455.4 50.650.6 43.843.8 Residual −17.00−17.00 −0.87−0.87 13.7613.76 9.199.19 6.316.31 1.441.44...

  • 4. Histograms Suppose we have a table called data with two numerical columns, "x" and·y. Consider...

    4. Histograms Suppose we have a table called data with two numerical columns, "x" and·y. Consider the following scatter plot, which was generated by calling data.scatter('x', 'y') 2.0 1.5 1.0atos- 0.0 Histogram A: E 25 D 20 E 15 10 0 1 2 3 1 4 Histogram B: 40 C 30 20 a 10 0.0 0.5 1.0 1.5 .02.5 3.0 Question 1. One of these two lines of code generated Histogram A, and the other generated Histogram B . data.hist('x)...

  • Consider the FLAG data set. The first 10 observations are given for informational purposes. CONTRACT COST...

    Consider the FLAG data set. The first 10 observations are given for informational purposes. CONTRACT COST DOTEST STATUS 1 1379.43 1386.29 1 2 134.03 85.71 1 3 202.33 248.89 0 4 397.12 467.49 0 5 158.54 117.72 1 6 1128.11 1008.91 1 7 400.33 472.98 1 8 581.64 785.39 0 9 353.96 370.02 0 10 138.71 174.25 0 Use Minitab to fit a model that predicts COST based on DOTEST. Paste your output here: Calculate a confidence and prediction interval...

  • The data in the table below represent individual observations on molecular weight taken hourly from a...

    The data in the table below represent individual observations on molecular weight taken hourly from a chemical process. The target value of molecular weight is 1050 and the process standard deviation is thought to be about ? = 25. Please use software outputs to present your analysis. (a) Set up a tabular CUSUM for the mean of this process (choose appropriate ? and ℎ). (b) Set up an EWMA control chart with appropriate ? and ?. Observation Number 1 2...

  • Below is a small data set showing observations on two variables X and Y. X Y...

    Below is a small data set showing observations on two variables X and Y. X Y 0.408 0.173 0.275 0.084 0.375 0.115 0.349 0.156 0.312 0.070 0.382 0.210 We are especially interested in determining if there is a linear relationship between Y and X (Y is the dependent variable and X is the explanatory variable). a) Begin by making a scatterplot of Y vs X. b) Estimate a linear equation for predicting Y given X. c) How good is your...

  • 4. The data set below shows the length of service (in years)and salaries in thousands of...

    4. The data set below shows the length of service (in years)and salaries in thousands of dollars) for 10 randomly selected employees. Length of service, 2 Salary, y 0.5 2 4 6 8 10 .75 39 41 41 40.5 42 41 40 1 6 8 38 41 42 (a) Construct a scatter plot for the data showing the regression line. (b) Find the equation of the regression line for the data. (c) Find the value of the correlation coefficient, r....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT