Assume you have a data set as below. It contains records of cars with three features: the type of the car (sports or SUV), the color of the car (red or yellow), and the origin of the car (domestic or imported). And the labels for the data are yes (car was stolen) and no (car was not stolen).
CarType,Color,Origin,Stolen?
sports,red,domestic,yes
sports,red,domestic,yes
sports,red,domestic,yes
sports,red,domestic,no
SUV,red,domestic,no
SUV,red,imported,yes
SUV,yellow,imported,no
SUV,yellow,imported,yes
SUV,yellow,domestic,no
sports,yellow,imported,no
sports,red,imported,yes
Calculate the probability of P(Yes|Red,Domestic,SUV)
Answer
we have to find the probability of yes given that it is a Red,Domestic,SUV car
let A and B be the events yes and Red,Domestic,SUV
then number of cars in (A and B) or number of cars in (yes and Red,Domestic,SUV) = 1 (because there is only one car which has yes and which is Red,Domestic,SUV)
total number of Red,Domestic,SUV cars = 2, i.e. P(B) = 2
using the formula P(A|B) = P(A and B)/P(B)
setting the values
P(A|B) = 1/2 or 0.5
Assume you have a data set as below. It contains records of cars with three features:...
Suppose that we have the data below, where Stolen is the target attribute that consists of binary values (yes or no). Color Type Origin Stolen red sports domestic yes red sports domesticno red sports domestic yes yellow sports domestic no yellow sports imported yes yellow Suy imported no yellow suy imported yes yellow suv domesticno red Suy imported no red sports imported yes You have a naive bayes model and a new test instance with attributes color=red, type=suv and origin=imported....
Consider the following data set. You are asked to predict the class label (if Stolen = Yes or No) for a test data point “X” where “X” = (color=Red, Type=SUV, Origin=Domestic) using the Naïve Bayes approach. Show every step and calculation details. Color Type Origin Stolen 1 Red Sports Domestic Yes 2 Red Sports Domestic Yes 3 Red Sports Domestic Yes 4 Yellow Sports Domestic No 5 Yellow Sports Import Yes 6 Yellow SUV Import No 7 Yellow SUV Import...
write question
1 ASAP
CIS 321 -Intro. to Prob. and Stats Quiz #3-Chapters 10 and 12 + Bayesian Classification Reza Zafarani-Spring 2018 Name (2pts): Problem 1 Covariance [4pts] Let X and Y be two and Cor(X, Y) random variables. Express Cor(XX + y) in termd Var(XY) Problem 2 - Poisson Distribution (6pts In a computer network, the sumber of lost connections in a second C is modeled as oed, PIC 0), is 10, What is the expected number of lost...
Please answer all three questions below: 1.) A bag of marbles contains the following assortment of marbles. Yellow Blue Blue Yellow Yellow Yellow Green Green Green Red Red Green Yellow Yellow Blue Bag of Marbles The experiment is to reach into a bag pull out two marbles without replacement. Calculate the probability of randomly choosing a Red marble and Green marble. P(Red AND Green) = 2.) A bag of marbles contains the following assortment of marbles. Yellow Blue Red Blue...
Using R, program the following. Problem 1 (11.4) *The data set `carsafety` (**UsingR**) contains car-crash data. For several makes of car the number of drivers killed per million is recorded in 'Drivers.deaths'. The number of drivers of other cars killed in accidents with these cars, per million, is recorded in 'Other.deaths'. The variable 'type' is a factor indicating the type of car.* *(a) Perform a one-way ANOVA of the model Driver.deaths~type. Is there a difference in population means? Did you...
Concept 8. When calculating a 95% confidence interval for a population mean, which is the most important situation where use of the t distribution would be better than use of the normal distribution? Write the letter for the best choice. A. When the sample size is small. B. when the population standard deviation is unknown. C. when the sample standard deviation is unknown. D. When the population standard deviation is known. E. When the sample size is large. For 9...
You manage the inventory for a car dealership. Data on current inventory can be found in the week 2 data set excel file. Management would like you to assess current inventory on the dealership lot. Using the Week 2 Data Set, create and calculate the following in Microsoft® Excel®: Show a a pie chart which summarizes the colors of the cars in the sample. 2. Show a bar chart which summarizes the number of each of the models of cars...
Consider the following data set that contains information about a sample of ten 2015 Subaru Outback offered for sale. Vehicle Condition Color Mileage Price x1000miles) S1000) 1 poor silver 13 30 2 average white 22 3 average blue 29 28 4 average green 46 27 5 average silver 47 26 6 average red 50 24 7 good silver 53 23 8 excellent green 56 22 9 poor red 64 21 10 excellent blue 65 20 The scatter plot that summarizes...
VI. USE THE INFORMATION BELOW TO ANSWER PROBLEMS 19-21 Based on data from NHI of the United States, the probability that a 10th grader has used marijuana in the last year is 0.26. What is the probability that of the 35 students in a 10 grade English class that more than 14 have used marijuana in the last year? 19. Pick the equation that is most appropriate to answer the question above. a) Za lo b) Z 20. c) x=uzo...
Consider the following data set that contains information about a sample of ten 2015 Subaru Outback offered for sale. Mileage Price Vehicle Condition Color (x1000miles) $1000) 1 poor silver 13 30 2. average white 22 29 3 average blue 29 28 4 average green 27 5 average silver 47 26 6 average red 24 7 good silver 53 23 8 excellent green 56 22 9 poor 64 21 10 excellent blue 65 20 The scatter plot that summarizes the data...