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
Which relation is a function of x?
Yuliya22 [10]
The correct awnset to that question would be D
4 0
3 years ago
Read 2 more answers
What is the conjugate of (x2-6)?
Mama L [17]

Answer:

2(x - 3)

Step-by-step explanation:

3 0
3 years ago
Solve for W<br> (W/-5) -4=-2
Simora [160]

Answer: \Large\boxed{W=-10}

Step-by-step explanation:

<u>Given equation</u>

(\dfrac{W}{-5} )-4=-2

<u>Add 4 on both sides</u>

(\dfrac{W}{-5} )-4+4=-2+4

(\dfrac{W}{-5} )=2

<u>Multiply -5 on both sides</u>

(\dfrac{W}{-5} )\times (-5)=2\times(-5)

\Large\boxed{W=-10}

Hope this helps!! :)

Please let me know if you have any questions

6 0
2 years ago
What is the distance between the points (−7, −3) and (−7, −9) ?
expeople1 [14]

Answer:

  • C. 6 units

Step-by-step explanation:

<u>Since the points have same x- coordinate of -7, the distance is the difference in y - coordinates:</u>

  • d = -3 - (-9) = -3 + 9 = 6

Correct choice is C

3 0
3 years ago
Read 2 more answers
Aaron's annual salary is 2/3 as much as dories salary Aaron makes 460000=2/3x
VashaNatasha [74]

Answer: Dorie's salary is $690000.

Step-by-step explanation:

Since we have given that

Let the salary makes by Dorie be x

Annual salary of Aaron = $460000

According to question, Aaron's salary is \frac{2}{3} as  much as Dorie's salary.

So, it becomes,

\frac{2}{3}x=460000\\\\x=\frac{3}{2}\times 460000\\\\x=\$690000

So, Dorie's salary is $690000.

3 0
4 years ago
Other questions:
  • Two rectangles have the same area. One says x + 3 and x + 1 and the other says x + 6 and x. What is the value of x?
    6·1 answer
  • An acorn falls from the branch of the tree to the ground 25 feet below. The distance, s, that the acorn is from the ground as it
    10·2 answers
  • PLEASE HELP FAST Robert has $18 to spend on ring tones for his new cell phone. Each ring tone costs $1.95 to download. By roundi
    6·2 answers
  • PLEASE HELP!!! WILL GIVE BRANLIEST
    11·2 answers
  • What is the square root of 24
    8·1 answer
  • What is 175% of 300​
    9·2 answers
  • 2n-5=9n+37 help plsssss
    7·2 answers
  • Help plz no links will mark brainliest if correct!
    13·2 answers
  • Pls explain the answer.
    12·1 answer
  • Miguel spends $20 a day for 3 days. He earns $17 a day for 5 days. Does Miguel end up with more or less money than he started wi
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!