Question

In: Statistics and Probability

Consider the following data for Simmons store where it is postulated that the categorical variable Y=0,if...

Consider the following data for Simmons store where it is postulated that the categorical variable Y=0,if the customer did not use the coupon and 1,if the customer used the coupon;and X= annual spending at Simmons’s store ($000s) annually. Run a logistic regression model and compute the probability for a customer using a coupon if he/she spends $5 (in $000’s) annually at Simmons store. Examine the output and evaluate the following r squared for the model.

Customer Annual spending ($000s) Coupon =0, if not used, 1 if used)
1 2.291 0
2 3.215 0
3 2.135 0
4 3.924 1
5 2.528 0
6 2.473 0
7 2.384 0
8 7.026 1
9 1.182 0
10 3.345 1
11 2.567 0
12 1.892 0
13 3.123 1
14 2.678 0
15 1.789 0
16 3.456 1
17 3.231 1
18 2.456 0
19 3.111 1
20 3.556 1
21 2.875 0
22 2.124 0

Solutions

Expert Solution

Hey below is the output of logistic regression that I ran using online statistical calculator.

you can also run this in R

code for R

//

x=c(2.291,
3.215,
2.135,
3.924,
2.528,
2.473,
2.384,
7.026,
1.182,
3.345,
2.567,
1.892,
3.123,
2.678,
1.789,
3.456,
3.231,
2.456,
3.111,
3.556,
2.875,
2.124
)
coupon=c(0,
0,
0,
1,
0,
0,
0,
1,
0,
1,
0,
0,
1,
0,
0,
1,
1,
0,
1,
1,
0,
0
)
data1=data.frame(x,coupon)
model = glm(coupon~x,
data = data1,
family = binomial(link="logit"))
summary(model)

//

I hope this helps you

Thanks


Related Solutions

Which of the following is not a categorical variable?
Which of the following is not a categorical variable? Gender Diabetes Type Il status (Y/N) Height in cm Age divided into quartiles (<25th Percentile. 25-50th Percentile. 50-75th percentile, >75th percentile)
Consider the following initial value problem. y''−4y = 0, y(0) = 0, y'(0) = 5 (a)...
Consider the following initial value problem. y''−4y = 0, y(0) = 0, y'(0) = 5 (a) Solve the IVP using the characteristic equation method from chapter 4. (b) Solve the IVP using the Laplace transform method from chapter 7. (Hint: If you don’t have the same final answer for each part, you’ve done something wrong.)
Solve the following differential equation, using laplace transforms: y''+ty-y=0 where y(0)=0 and y'(0)=3
Solve the following differential equation, using laplace transforms: y''+ty-y=0 where y(0)=0 and y'(0)=3
A statistical program is recommended. Consider the following data for a dependent variable y and two...
A statistical program is recommended. Consider the following data for a dependent variable y and two independent variables, x1 and x2. x1 x2 y 30 12 94 47 10 108 25 17 112 51 16 178 40 5 94 51 19 175 74 7 170 36 12 117 59 13 142 76 16 211 (a) Develop an estimated regression equation relating y to x1. (Round your numerical values to one decimal place.)ŷ =   Predict y if x1 = 43. (Round...
Consider the following discrete memoryless channel: Y = X + Z, where Pr{Z = 0} =...
Consider the following discrete memoryless channel: Y = X + Z, where Pr{Z = 0} = Pr{Z = a} = 1/2 and the alphabet for x is {0, 1}. Assume that Z is independent of X. a) Find the capacity of the channel in terms of a. b) Explain how capacity is affected by a in terms of signal-to-noise ratio (SNR).
Consider the observations taken on the continuous random variable Y given in this dataset. x/y 0...
Consider the observations taken on the continuous random variable Y given in this dataset. x/y 0 1 P(X=x) 0 0.72 0.08 0.80 1 0.08 0.12 0.20 P(Y=y) 0.80 0.20 1 1. Graph the data using an appropriate plot. 2. What are the key features of the graph? 3. Assess the normality of the data set. What can be concluded? 4. Compute the 5-number summary. Treat the sample mean and sample standard deviation as if they are the true population mean...
Consider the observations taken on the continuous random variable Y given in this dataset. x/y 0...
Consider the observations taken on the continuous random variable Y given in this dataset. x/y 0 1 P(X=x) 0 0.72 0.08 0.80 1 0.08 0.12 0.20 P(Y=y) 0.80 0.20 1 Graph the data using an appropriate plot. 2. What are the key features of the graph? 3. Assess the normality of the data set. What can be concluded? 4. Compute the 5-number summary. Treat the sample mean and sample standard deviation as if they are the true population mean and...
Consider the following data for a dependent variable y and two independent variables, x2 and x1....
Consider the following data for a dependent variable y and two independent variables, x2 and x1. x1 x2 y 30 12 94 46 10 109 24 17 113 50 17 179 41 5 94 51 19 175 75 8 171 36 12 118 59 13 143 77 17 212 Round your all answers to two decimal places. Enter negative values as negative numbers, if necessary. a. Develop an estimated regression equation relating y to x1 . Predict y if x1=45....
Consider the following data for a dependent variable y and two independent variables, x1 and x2.
You may need to use the appropriate technology to answer this question. Consider the following data for a dependent variable y and two independent variables, x1 and x2. x1 x2 y 30 12 93 47 10 108 25 17 112 51 16 178 40 5 94 51 19 175 74 7 170 36 12 117 59 13 142 76 16 211 The estimated regression equation for these data is ŷ = −18.89 + 2.02x1 + 4.74x2. Here, SST = 15,276.0,...
Consider the following data for a dependent variable y and two independent variables, x1 and x2....
Consider the following data for a dependent variable y and two independent variables, x1 and x2. x1 x2 y 30 12 94 47 10 108 25 17 112 51 16 178 40 5 94 51 19 175 74 7 170 36 12 117 59 13 142 76 16 209 The estimated regression equation for these data is ŷ = −17.02 + 1.99x1 + 4.70x2. Here, SST = 14,902.9, SSR = 13,773.1, sb1 = 0.2470, and sb2 = 0.9480. (1a) Test...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT