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
Question 5 (Solving Problema) lon 5 Solving Problems] Write 24 18 in slmplest form​
otez555 [7]

Answer:

4/3

Step-by-step explanation:

reduce the fraction by a factor of 6

pretty sure you mean write 24/18 in simplest form so that's the answer

Hope this helps! :)

8 0
2 years ago
F(x)= (x+1)³ find f(x)¹<br><br>answer plz​
Basile [38]

Answer:

f(x)^-1=\sqrt[3]{x}-1

f(x)=x^3+1+3x^2+3x

Step-by-step explanation:

7 0
3 years ago
A recipe requires 1/3 cup of milk for each 1/4 cup of water.How many cups of water are needed for each cup of milk?
d1i1m1o1n [39]
3/4
Work
1/4+1/4+1/4=3/4
1/3+1/3+1/3=3/3=1
7 0
3 years ago
I need help with number 8 please. if you don't mind can you show your work so I know how to do it? Thanks in advance! :)
Trava [24]
You have to divide both sides by 5 because it states"5t" and you should get "t=20"
7 0
3 years ago
Mickey said that 45.7654 rounded to the nearest thousandth is 45.765 and Nicole said that it was 45.766. Who is correct and why?
Nesterboy [21]

Answer:

Mickey

Step-by-step explanation:

Mickey is correct because if you look at the number 45.7654 whenever you round to the nearest thousandth it'll be 45.765

5 is the thousandth place so look to the right. If the number to the right is greater than 5 it'll round to 47.766 but since it's a four ti rounds down.

8 0
3 years ago
Read 2 more answers
Other questions:
  • The _____ is measure of a country's total economic output
    5·1 answer
  • The formula for the volume of a cylinder with a height of 5 units is v(r)=5(3.14)r^2 where r is the radius of the cylinder. In w
    6·2 answers
  • Solve for x.<br> -4 &lt; 11 - 3.2
    14·1 answer
  • Is 8/10 mile longer than 1/2
    6·2 answers
  • Arie's airplanes tracked the number of television advertisements they ran along with the corresponding airplane sales. this tabl
    15·1 answer
  • Which is the graph of f(x) = x2 - 2x + 3?
    7·2 answers
  • Write an equation of the line with the given slope and y-intercept:
    14·1 answer
  • What is the reciprocal of 4, 5/2, and 1/2​
    8·2 answers
  • How is the sentence 19 less less than x is two written in a equation
    5·1 answer
  • QUICK PLEASE. Calculate the final amount if $10 000 invested for 6 years at 4% compounded quarterly.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!