subject

Calculating distance with categorical predictors. this exercise with a tiny dataset illustrates the calculation of euclidean distance and the creation of binary dummies. (note that creating dummies is not required in certain software such as jmp, but it is useful to understand how they are derived and used).

the online education company statistics. com segments its customers and prospects into three main categories: it professionals (it), statisticians (stat), and other (other). it also tracks, for each customer, the number of years since first contact (years). consider the following customers; information about whether they have taken a course or not (the outcome to be predicted) is included:

customer 1: stat, 1 year, did not take course

customer 2: other, 1.1 year, took course

a. consider now the following new prospect:

prospect 1: it, 1 year

using the information given above on the two customers and one prospect, create one dataset for all three with the categorical predictor variable transformed into 2 dummy variables, and a similar dataset with the categorical predictor variable transformed into 3 dummy variables.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
Why are weather forecasts more reliable now compared of hundred years ago
Answers: 1
You know the right answer?
Calculating distance with categorical predictors. this exercise with a tiny dataset illustrates the...
Questions
question
English, 23.03.2021 22:00
question
Biology, 23.03.2021 22:00
question
Mathematics, 23.03.2021 22:00
question
Mathematics, 23.03.2021 22:00