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
Please help I don't understand​
Mars2501 [29]

Answer:

3. 3:5

4. 4:1

Step-by-step explanation:

Just ratios I believe, myb if it's wrong but that should be it.

Since 3 & 5 aren't divisible by anything the scale factor is just 3:5.

Since 24 & 6 are divisible by a common number, being 6, you'd divide 24:6 & get a scale factor of 4:1.

4 0
2 years ago
Find the values for X<br>×^2-4=0​
EastWind [94]
Solve the equation so that the X is on a side by itself
6 0
3 years ago
Divide. Write your answer in simplest form. -5/3 divided by (-1/8)
Y_Kistochka [10]

Answer:

13 1/3 or 40/3

Step-by-step explanation:

KCF

Keep -5/3 how it is

Change the division sign to a multiply sign

Flip -1/8, meaning make it the reciprocal (-8/1)

Then multiply across, getting 40/3

Lastly, you can change it to mixed for or leave it how it is, depending on the directions.

6 0
3 years ago
Read 2 more answers
Write the equation of a circle with a center at (0, 8) and a radius of 9.
pshichka [43]

Answer:

x^2 + (y-8)^2= 81

Step-by-step explanation:

the equation of a circle with a center at (0, 8) and a radius of 9.

To frame the equation of the circle we use center radius form of equation

(x-h)^2 + (y-k)^2= r^2

Where (h,k) is the center and 'r' is the radius

Given center is (0,8) and radius = 9

h = 0 , k= 8 and r= 9

Plug in all the values

(x-h)^2 + (y-k)^2= r^2

(x-0)^2 + (y-8)^2= 9^2

x^2 + (y-8)^2= 81

3 0
2 years ago
A triangle has one leg of 24 inches and one leg of 10 inches. For the triangle to be a right triangle, what must be the length o
meriva

Answer: 26 inches

Step-by-step explanation:

The hypoteneuse is the longest side in a triangle. From the question, we are already informed that a triangle has one leg of 24 inches and one leg of 10 inches.

To calculate the hypotenuse, we add the square of both legs together which are the opposite and adjacent and then find the square root. This will be

hypotenuse² = 24² + 10²

hypotenuse² = 576 + 100

hypotenuse² = 676

hypotenuse = ✓676

hypotenuse = 26

The hypothenuse is 26 inches

7 0
3 years ago
Other questions:
  • Orlando bought a number of hats at equal cost for $500. He sold all but 2 for $540 at a profit of $5 for each item. How many hat
    13·1 answer
  • What is the value of numbers
    15·1 answer
  • jeff uses 3 fifth - size strip to modek 3/5. he wants to use tenth-size strip to model an equivalent fraction. how many tenth-si
    13·1 answer
  • Multiply Using Two-Digit Numbers Look at the problem 325 x 89. 1. Write out the six multiplication problems that are involved in
    10·1 answer
  • What is X&gt;195 on a number line
    14·2 answers
  • Write the equation in slope intercept form. what are the slope and y intercept -5x-12y=11
    14·2 answers
  • What is the scale of a drawing where a 6 meter wall is 4cm long<br> 1 cm=_____________________ m
    9·2 answers
  • #20 I’m not sure how to solve it. And the answer should be able to grid in like on the SAT
    7·1 answer
  • Pls help no links in the answer
    13·1 answer
  • Would someone help me 2/3 2/1 8/9 7/9 breast to least​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!