Question

In: Statistics and Probability

2. Consider a data set {3, 20, 35, 62, 80}, perform hierarchical clustering using complete linkage...

2. Consider a data set {3, 20, 35, 62, 80}, perform hierarchical clustering using complete linkage and plot the dendogram to visualize it.

R code needed with full steps including packages

Solutions

Expert Solution

FIrst step:install the package of Cluster, as shown below

In the step 2: read the package in to the R console using command

library("cluster")

Next step: complete the cluster analysis as follow

Next step: Dendogram

From the dendogram, the order is as follows

Step 1: 2 and 3 are clustered

Step2: 4 and 5 are clustered

Step3: 1 and 2 are clustered

Step 4: 1 and 4 are clustered


Related Solutions

Consider the following data set: 3 -5 5 7 9 10 -3 35 2 1 1...
Consider the following data set: 3 -5 5 7 9 10 -3 35 2 1 1 a) Determine by hand (you can use the calculator) the mean, median and mode of this data set. show enough details in your work for it to be clear that you did this work. b) Use MINITAB to obtain the above results for this data set (and only these results). c) By hand clearly determine the 5 number summary for this data set and...
Use the data (12, 55), (15, 62), and (20, 80) to calculate the likelihood value for...
Use the data (12, 55), (15, 62), and (20, 80) to calculate the likelihood value for the parameter values β0 = 15 and β1 = 3 when assume σ = 2. Please show all calculations.
Using excel and the data in chapter 14 data set 2, complete the analysis and interpret...
Using excel and the data in chapter 14 data set 2, complete the analysis and interpret the results. It is a 2 x 3 experiment: There are two levels of severity, where the Level 1 is severe and Level 2 is mild, and there are three levels of treatment, where Level 1 is Drug #1, Level 2 is Drug #2, and Level 3 is Placebo. This is an ANOVA with replication because each participant received all three levels of treatment,...
Consider the data. xi 3 12 6 20 14 yi 65 35 50 15 20 The...
Consider the data. xi 3 12 6 20 14 yi 65 35 50 15 20 The estimated regression equation for these data is ŷ = 70 − 3x. (a) Compute SSE, SST, and SSR using equations SSE = Σ(yi − ŷi)2, SST = Σ(yi − y)2, and SSR = Σ(ŷi − y)2. SSE=SST=SSR= (b) Compute the coefficient of determination r2. (Round your answer to three decimal places.) r2 = Comment on the goodness of fit. (For purposes of this exercise,...
Using the following data set: 10, 5, 2, 7, 20, 3, 13, 15, 8, 9 Apply...
Using the following data set: 10, 5, 2, 7, 20, 3, 13, 15, 8, 9 Apply the Merge sort algorithm. [Show to sorting process of the first half only] Apply the Quick sort algorithm [Show the first partitioning implementation]
Using R Programing Apply clustering to "Wholesale customers Data Set" and see if you can distinguish...
Using R Programing Apply clustering to "Wholesale customers Data Set" and see if you can distinguish between regions. NOTE: the clustering should exclude the region column.
Complete parts​ (a) through​ (h) for the data below. x- 40, 50, 60, 70, 80 y-62,...
Complete parts​ (a) through​ (h) for the data below. x- 40, 50, 60, 70, 80 y-62, 58, 55, 47, 33 B) Find the equation of the line containing the points (50, 58) and (80, 33) y=__x+(__) D) By hand, determine the least-squares regression line The equation of the​ least-squares regression line is given by ModifyingAbove y with caret equals b 1 x plus b 0y=b1x+b0 where b1 equals r times StartFraction s Subscript y Over s Subscript x EndFractionb1=r•sysx is...
Refer to the TV Revenue data set. Perform a complete multiple regression analysis that might be...
Refer to the TV Revenue data set. Perform a complete multiple regression analysis that might be used to predict net revenue using all provided explanatory variables (there are 4 explanatory variables). Complete all steps for the multiple regression as outlined in class and modify the original model if necessary. Use an alpha = .10 for all hypotheses tests. Make sure you show each required step for any hypothesis test. Provide all required Minitab output with your written responses. Obs NetRevenue...
Consider the data. xi 3 12 6 20 14 yi 60 35 55 15 15 The...
Consider the data. xi 3 12 6 20 14 yi 60 35 55 15 15 The estimated regression equation for these data is ŷ = 69 − 3x. (a) : Compute SSE, SST, and SSR using equations SSE = Σ(yi − ŷi)2, SST = Σ(yi − y)2, and SSR = Σ(ŷi − y)2. SSE= SST= SSR= (b) Compute the coefficient of determination r2 (Round your answer to three decimal places.) r2 = Comment on the goodness of fit. (For purposes...
Consider the data. xi 3 12 6 20 14 yi 55 35 45 10 15 The...
Consider the data. xi 3 12 6 20 14 yi 55 35 45 10 15 The estimated regression equation for these data is ŷ = 62.25 − 2.75x. (a) Compute SSE, SST, and SSR using equations SSE = Σ(yi − ŷi)2, SST = Σ(yi − y)2, and SSR = Σ(ŷi − y)2. SSE= SST= SSR= (b) Compute the coefficient of determination r2.(Round your answer to three decimal places.) r2 = Comment on the goodness of fit. (For purposes of this...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT