Create the dataset for clustering using the following code. Apply K-means clustering

Create the dataset for clustering using the following code. Apply K-means clustering and determine the cluster centres. Generate the random text dataset and validate the performance of the implemented algorithm in terms of accuracy.

Mu1= [ 5 6];

Mu2= [ 25 10];

Mu3= [15, 20];

Sigma=2*eye (2);

N=50;

clust1=mvnrnd(Mu1, Sigma,N);

clust2=mvnrnd(Mu2,Sigma,N);

clust3=mvnrnd(Mu3,Sigma,N);

Plot the cluster points with the computed cluster centres.

Use the given data “Data_Naive_Bayes” to implement and validate the Naïve Bayes algorithm for classification.

3. Use the given data “Data-linear-regression” to implement Linear Regression.