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
.Challenge: What is the term-to-term rule for this sequence? 1, 5, 13, 29, 61
olya-2409 [2.1K]

Answer:c)21

Step-by-step explanation:

i just took the quiz

6 0
3 years ago
Read 2 more answers
What does <br> f(x) – g(x) =
andrezito [222]

Answer:

(f - g) (x)

Step-by-step explanation:

Since (x) is common between them, you can bring it out. for example,

f(x) = x +1

g(x) = 2x + 3

f(x) - g(x) = x + 1 - 2x + 3

= -x + 4

(f - g) (x) = x + 1 - 2x + 3

= -x + 4

3 0
3 years ago
Read 2 more answers
Express as a difference.
ElenaW [278]
10

b: 5+5
c: 5+5

thats thw andeer
3 0
3 years ago
Andrea claims that 2,899 rounded to the nearest hundred is 3,000. Zoe claims that 2,899 rounded to the nearest thousand is 3,000
dusya [7]
A) Only Zoe is correct.
2,899 rounded to the nearest hundredth would be 2,900
6 0
4 years ago
Sarah sights the top of the statue of liberty at an angle of elevation of 61 if sarah is 5.5 feet tall and is standing 166 feet
vovangra [49]
To solve this problem you must apply the proccedure below:

 1. You have that:

 - Sarah sights the top of the statue of liberty at an angle of elevation of 61°.

 - She is standing 166 feet from the base of the statue.
<span>
 - Sarah is 5.5 feet tall.

 2. Therefore, the heigth of the statute is:

 Tan(61°)=x/166
 x=(166)(</span>Tan(61°)
 x=299.47 feet

 Height of the statue=299.47 feet+5.5 feet
 Height of the statue=304.97 feet
6 0
4 years ago
Other questions:
  • Add (7х2 – 3x) + (5х – 6).
    7·1 answer
  • Write an equation for the line that is parallel to y = −2x and passes through the point (0,7).
    7·1 answer
  • Convert 720 hours into days. Explain.​
    11·1 answer
  • Write the equation of the line in slope intercept form that goes through the points (5, 8) and (6,5)
    10·1 answer
  • How can you factor out the coefficient of a variable? Please help , Thank you
    10·1 answer
  • A six-sided number cube is “weighted” so that the numbers do not all have the same probability of landing up. The probability mo
    15·1 answer
  • -|-2r - 1 |= 11<br> A.(-6,5)<br> B.(5,-6)<br> C.-6<br> D.no solution
    8·1 answer
  • Value of variable. a=bh; find a when b=83 and h 35
    5·1 answer
  • No body helped me the last time so I’m posting it again I really need help with this
    14·1 answer
  • Use the result (a+b)²=a²+2ab+b² to find the value of 49²+98+1
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!