1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lana66690 [7]
3 years ago
8

In this problem, you will develop a model to predict whether a given car gets high or low gas mileage based on the auto data set

. (a) create a binary variable, mpg01, that contains a 1 if mpg contains a value above its median, and a 0 if mpg contains a value below its median. you can compute the median using the median() function. note you may find it helpful to use the data.frame() function to create a single data set containing both mpg01 and the other auto variables.
Mathematics
1 answer:
Charra [1.4K]3 years ago
8 0

We havep(X)=eβ0+β1X1+eβ0+β1X⇔eβ0+β1X(1−p(X))=p(X),p(X)=eβ0+β1X1+eβ0+β1X⇔eβ0+β1X(1−p(X))=p(X),which is equivalent top(X)1−p(X)=eβ0+β1X.p(X)1−p(X)=eβ0+β1X.
To use the Bayes classifier, we have to find the class (kk) for whichpk(x)=πk(1/2π−−√σ)e−(1/2σ2)(x−μk)2∑Kl=1πl(1/2π−−√σ)e−(1/2σ2)(x−μl)2=πke−(1/2σ2)(x−μk)2∑Kl=1πle−(1/2σ2)(x−μl)2pk(x)=πk(1/2πσ)e−(1/2σ2)(x−μk)2∑l=1Kπl(1/2πσ)e−(1/2σ2)(x−μl)2=πke−(1/2σ2)(x−μk)2∑l=1Kπle−(1/2σ2)(x−μl)2is largest. As the log function is monotonally increasing, it is equivalent to finding kk for whichlogpk(x)=logπk−(1/2σ2)(x−μk)2−log∑l=1Kπle−(1/2σ2)(x−μl)2log⁡pk(x)=log⁡πk−(1/2σ2)(x−μk)2−log⁡∑l=1Kπle−(1/2σ2)(x−μl)2is largest. As the last term is independant of kk, we may restrict ourselves in finding kk for whichlogπk−(1/2σ2)(x−μk)2=logπk−12σ2x2+μkσ2x−μ2k2σ2log⁡πk−(1/2σ2)(x−μk)2=log⁡πk−12σ2x2+μkσ2x−μk22σ2is largest. The term in x2x2 is independant of kk, so it remains to find kk for whichδk(x)=μkσ2x−μ2k2σ2+logπkδk(x)=μkσ2x−μk22σ2+log⁡πkis largest.
ng expression
∫0.950.0510dx+∫0.050(100x+5)dx+∫10.95(105−100x)dx=9+0.375+0.375=9.75.∫0.050.9510dx+∫00.05(100x+5)dx+∫0.951(105−100x)dx=9+0.375+0.375=9.75.So we may conclude that, on average, the fraction of available observations we will use to make the prediction is 9.75%9.75%.res. So when p→∞p→∞, we havelimp→∞(9.75%)p=0.

You might be interested in
Someone pls help me uh
Nady [450]

Answer:

x = -7

Step-by-step explanation:

6+2x=-8

2x=-14

x = -7

6 0
3 years ago
Read 2 more answers
Answer the statistical measures and create a box and whiskers plot for the following set of data. You may optionally click and d
ratelena [41]

sorry

look im trying to finish a challange u need premium if your going toask that big of a quietion my dude/dudet

3 0
3 years ago
If 2 pounds of strawberries cost $4.50, how much would 3 pounds cost?
Nutka1998 [239]
3 pounds cost $6.75

to help you, turn it into a fraction, 2 punds ove 2.50 equals 3 pounds over X
8 0
3 years ago
Read 2 more answers
What is 11x15=? I do not know what it is can you help me
Katen [24]
It is 165 I hope this helps :)
7 0
4 years ago
Read 2 more answers
(8 x 3) + (8 x 2) = 8 x (blank + blank)
kakasveta [241]

Step-by-step explanation:

(8 x 3) + (8 x 2) = 8 x (3 + 2)

24 + 16 = 8 * 5

40 = 40

Hope it will help :)❤

8 0
3 years ago
Other questions:
  • Least to greatest -3/8,5/16,-0.65,2/4
    12·1 answer
  • If the equation of a circle is (x+5)^2 + (y-7)^2=36, its center point is​
    14·1 answer
  • How to do quadratic formula
    8·1 answer
  • Work out 5.4 x 0.24
    8·2 answers
  • A triangle has a perimeter of 165 cm. The first side is 65 cm less than twice the second side. The third side is 10 cm less than
    11·2 answers
  • - A beaker is filled with 0.23 liter of water. Leon
    13·1 answer
  • Explain whether you agree of disagree about open book tests being more difficult than traditional tests. What can you do to bett
    6·1 answer
  • What must be a factor of the polynomial function f(x) graphed on the coordinate plane below?
    9·1 answer
  • Write a subtraction sentence that you can use to find the length of the side of the polygon between the vertices located at (3,4
    10·1 answer
  • You and your friend are sharing three eighths of a bag of candy. How much of the bag will each of you get if you share it evenly
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!