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
Q. Which graph represents the solutions to the inequality |2x − 4| less than or equal to 14?
alina1380 [7]
The answer should actually be option B)

hope this helped and please vote me brainiest

7 0
3 years ago
An inventory record for the bookstore of a local college shows a receipt of 150 accounting books on May 1. Another shipment of 2
babunello [35]
Hi there
Let's order the transactions
on May 1. 150
less On May 20 100 books were sold

Less June 3, 31 books were purchased by the students

Add on June 15 25 books arrived

Add On June 17, a shipment of 150 books arrived

So
the number on hand on June 17
150−100−31+25+150
=194....answer

Hope it helps
4 0
3 years ago
Whats 8 2.5% of 75?Write your answer as a decimal.​
Katena32 [7]
216 % hope this helps !!
4 0
3 years ago
Read 2 more answers
11. The preferred overall competition area in judo, including the mats, is a square with an area of 256 m2.
choli [55]
<span>a) We know that the correct answer will be the square root of 256 since the competition area is a square with an area of 256 meters. And since 10^2 = 100 which is less than 256, the answer has to be greater than 10. And since 20^2 = 400 which is greater than 256, the answer also has to be less than 20. Therefore the answer has to be between 10 and 20. b) The last digit has to be either a 4 or a 6. The units digit is the only digit that will contribute to the units digit of the square. And 0^2 = 0, 1^2 = 1, 2^2 = 4, 3^2 = 9, 4^2 = 16, 5^2 = 25, 6^2 = 36, 7^2 = 49, 8^2 = 64, 9^2 = 81. Of the 10 possible digits, only the values 4 and 6 have a square that has an units digit of 6. c) The square root of 256 based up (a) and (b) above has to be either 14, or 16. So the dimensions are either 14x14 meters or 16x16 meters.</span>
3 0
3 years ago
How can i get answer 5 for -10 - (+5) ?​
timama [110]

Answer:

- 10 - (-20 + 5)

Step-by-step explanation:

- 10 - (-20 + 5)

- 10 - (-15) = -10 + 15

-10 + 15 = 5

have a nice day and mark me brainliest! :)

4 0
3 years ago
Other questions:
  • use the substitution method to solve the system of equations . choose the correct ordered pairs x+y=5 y=7 A.(12,7) B.(-12,7) C.
    14·1 answer
  • Pre-image ​ ABCD is dilated to be image ​ A′B′C′D′ ​ . The origin is the center of dilation. What scale factor is used to create
    6·2 answers
  • 1. What is the slope of (1,1) and (4,3)
    7·1 answer
  • I need help with this won plz help
    8·2 answers
  • Please help AS LEVEL c2 tell me how to work out
    14·1 answer
  • Q3. A + B = 0 and AB = - 36.<br> What is the value of A-B?
    13·2 answers
  • Patrick b
    14·1 answer
  • I need help with area of a rectangle! Plese help me out this is a starr review!
    12·1 answer
  • Factor completely.
    15·1 answer
  • Raymond earns 1795 each month and pays 53.40 on electricity to nearest 10th of a percent what percent of Raymonds earnings are s
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!