Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Q2:
2.
Tuple x is
Create above data set and predict a person gender belonging to tuple X will using naïve
Bayesian classification in R.
3.
4.
Create above weather data set and Find out the possibility of whether player play if weather
is X=(outlook="sunny",temp="cool",humidity="high",windy="TRUE") using naïve
Bayesian classification in R.
Answer:
Suppose you have a database on four customers. You know their gender, income and
whether or not they bought your product. Create a data frame with this data.
1. Using Bayes rule calculate the probability that a customer will buy your product
given that he has high income and male.
2. Estimate naive Bayes model using your data above. What is the prior probability of
someone buying your product? What is the probability that a customer has a high
income given that he or she bought your product? What is the probability that a
customer is male given that he bought your product?
3. Using the model you estimated above, predict the probability of buying given that a
customer has a high income and is male. Is your result the same as the one you
calculated by hand in question 1?
1.
Create above weather data set and Find out the possibility of whether player play if
weather is X=(outlook="sunny",temp="cool",humidity="high",windy="TRUE")
using naïve Bayesian classification in R.
3. Suppose you have a database on four customers. You know their gender, income
and whether or not they bought your product. Create a data frame with this data.
4. Using Bayes rule calculate the probability that a customer will buy your
product given that he has high income and male.
5. Estimate naive Bayes model using your data above. What is the prior
probability of someone buying your product? What is the probability that a
customer has a high income given that he or she bought your product? What
is the probability that a customer is male given that he bought your product?
6. Using the model you estimated above, predict the probability of buying
given that a customer has a high income and is male. Is your result the same
as the one you calculated by hand in question 1?
4. Load Data set Student.arfff and execute the following using WEKA.
3. List all the categorical (or nominal) attributes and the real-valued (or
numeric) attributes separately.
4. How many numeric and how many nominal attributes does this dataset
have?
5. Apply discretize Filter and display data before and after applying filter
3. How many numeric and how many nominal attributes does this dataset
have?