Task 1
Following the Naïve Bayes classification example in the slides, please predict if the player go out to play if
1. the outlook is Overcast
2. the temperature is cool
3. the humidity is high
4. not windy
Task 2
Please import the “admit.csv” into Rstudio. In this dataset, we know the GRE score, the GPA, and the rank of 400 applicants for a graduate program. We also know if each of the candidates is admitted. In the admit column, 1 stands for “admitted”, and 0 stands for “rejected”. We are going to do clustering based on GRE and GPA for these applicants. Do not forget to standardize the dataset before clustering.
Please do hierarchical clustering using complete link method. If you want only two clusters, what cluster is the 4th applicant in? If you want three clusters, what cluster is the 4th applicant in?
Please show the codes while answer the questions.
R programming
task1:answer is If the given conditions are met then the player go out for playing .
task2 :
for this we have to apply the k meas clustering algorithm which has 5 steps for which the dataset is required in the given question the data set of the GRE GPA and the rank of the 400 candidates will given ,with the help of this the data is created in which clustering the data used by k means clustering algorithm .
after this we required to make the clusters in which one cluster denotes the same set of the data like the student score the rank between 100-200 is come in cluster one and other 200-300 comes in other cluster and so on .
for clustering we scalling the data using r functions.
data("GRE") //LOADIG THE DATASET
df <- scale(GRE) //SCALLING THE DATA
head(df, n = 3) //VIEW THE FIRST THREE ROWS
Task 1 Following the Naïve Bayes classification example in the slides, please predict if the player...