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
If the volume of a sphere inscribed in a cubic box is 36pi, find the surface area of the box
Kruka [31]

Answer:

Surface area of the cube = 216 square units

Step-by-step explanation:

Let the length of a side of a cube = x unit

Diameter of the sphere inscribed in this cube = length of a side of the cube

Volume of the sphere = \frac{4}{3}\pi r^{3}

Where r = radius of the sphere = \frac{x}{2} units

36π = \frac{4}{3}\pi (\frac{x}{2})^{3}

36π = \frac{4x^{3}\pi }{24}

36×24 = 4x³

x = \sqrt[3]{\frac{36\times 24}{4} }

x = 6 units

Length of a side of the cube = 6 units

Surface area of the cube = 6×(Side)²

                                          = 6×(6)²

                                          = 216

                                          = 216 square units    

3 0
3 years ago
What is 12 ten thousand 8 thousands 14 hundreds 7 ones
CaHeK987 [17]

Answer:

Eight thousand fourteen hundred twelve and seven

5 0
3 years ago
The sum of a number (n) and 14 is 72. Which equation shows this relationship
Luden [163]
The sum is of n and 14 can be written as:

n+14=72
4 0
3 years ago
What is the constant of proportionality in the equation y = 5/3x? ​
Alja [10]
3/5 explanation because I’m big brain boii
6 0
3 years ago
Our current equation is:
inessss [21]

Answer:

C

Step-by-step explanation:

subtracting 289 from both sides, will make one side will be equal to zero.

thus we can then easily solve for b.

can this answer get the brainliest tag?

8 0
3 years ago
Other questions:
  • what are the coordinates of thee point (-10,-3) after a 180 degree clockwise rotation about the origin?
    10·2 answers
  • Can somebody please help me. I don’t understand it at all.
    13·2 answers
  • Last week Rachel and her roommates ate 1/3 of a carton of yogurt, and this week they ate 2/3 of a carton. How much more yogurt d
    11·2 answers
  • Evaluate for the given value of the variable 7/8 x c for c = 8
    12·1 answer
  • I need help with the equation 2/9 = j/18
    10·1 answer
  • -3 1/2 divided by 2 1/3=
    14·1 answer
  • If f(x)=x/2+8, what is(fx) when x=10
    14·2 answers
  • For which values of P and Q does the following equation have infinitely many solutions? 67x+Q=Px+37
    5·1 answer
  • PLSSS HELP IF YOU TURLY KNOW THISS
    9·1 answer
  • How to solve math equation
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!