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
Cathy cut 2 apples into 6 slices each.She ate 9 slices.What expression matches the words?
olasank [31]
(6×2)-9=3
6×2=12
12-9=3
3 apple slices are left
5 0
3 years ago
Read 2 more answers
Find the measure of angle T
sukhopar [10]

Answer:

100 degrees

Step-by-step explanation:

The measure of angle T is 100 degrees.

5 0
3 years ago
The product of two integers is 96. One of them is-12, find the other numbers​
miss Akunina [59]

Answer:

-8

Step-by-step explanation:

let the other number be x

according to the question equation is

-12x = 96

x = 96/-12

x = -8

4 0
2 years ago
Read 2 more answers
AB and DE are chords that intersect at point F inside circle C as shown. If the measure of arc EA= 50 degrees and the measure of
defon

Answer:

Part 1) m\angle AFE=55^o

Part 2) m\angle EFB=125^o

Step-by-step explanation:

Part 1) what is the measure of angle AFE

we know that

The measure of the interior angle is the semisum of the arches that comprise it and its opposite.

<u>Note:</u> In this problem the correct measure of arc EA is 40 degrees (see the picture)

so

m\angle AFE=\frac{1}{2}(arc\ EA+arc\ DB)

substitute the given values

m\angle AFE=\frac{1}{2}(40^o+70^o)=55^o

Part 2) what is the measure of angle  EFB?

we know that

m\angle AFE+m\angle EFB=180^o ---> by supplementary angles (form a linear pair)

so

substitute the given value

55^o+m\angle EFB=180^o

m\angle EFB=180^o-55^o=125^o

8 0
3 years ago
DOES ANYONE KNOW HOW TO DO THIS????????
Harrizon [31]

1. r closest to 1: Figure 4

2. Least signs of linear relationship: Figure 1

3. r equal to -1: Figure 3

Step-by-step explanation:

Correlation is the link between two things or variables.

The scatter plots can be used to determine the correlation values for given sets of data.

If both values are increasing, then the correlation is positive

If one value is increasing and the other is decreasing then the correlation is negative

So,

In the given pictures

Figure 4 has the correlation coefficient closest to 1 as both values are increasing but the data points are not in a straight line so r will be close to 1.

Figure 3 has the correlation coefficient equal to one as one value is increasing and the other is decreasing. And the points are in a straight line so r will be equal to one.

As the data points in Figure 1 are more scattered so there will be no relationship between two quantities.

So, the answers are as follows

1. r closest to 1: Figure 4

2. Least signs of linear relationship: Figure 1

3. r equal to -1: Figure 3

Keywords: Correlation, Data set

Learn more about correlation at:

  • brainly.com/question/12884373
  • brainly.com/question/12896802

#LearnwithBrainly

4 0
3 years ago
Other questions:
  • Given A=BR, what happens when A is cut in half, and B remains constant?
    8·1 answer
  • The volume of sphere is 2254 pi m cubed. what is the surface area to nearest tenth?
    14·1 answer
  • 30 POINTS!!!
    14·2 answers
  • a country club offers membership to it's customers. there is a one-time application fee of $75 and the dues are $25 per month. w
    11·1 answer
  • PLEASE HELP, it’s only one problem and it’s small
    7·1 answer
  • Are the ratios 2.5:3.5 and 5.7 proportional ?
    10·1 answer
  • Anyone got the RIGHT answer to this?<br><br> Make x the subject of:<br> h = 4 ( x + 3y ) + 2
    6·1 answer
  • PLEASE HELP DUE IN A FEW MINUTES PLEASE HELP!!!!
    8·2 answers
  • Latoya buys candy that costs 5 per pound. She will spend more than $30 on candy. What are the possible numbers of pounds she wil
    9·2 answers
  • Help me pleaseeeeee!!!!
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!