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
Is this correct? Thanks to anyone who answers.
GREYUIT [131]
Hello!

A proportional relationship means the line passes through the origin (0,0) and shows a constant rate of change.

Your answers appear to be correct. Good job! :)

8 0
3 years ago
IWILL MARK BRAINLEST PLS HELP ASAP
IgorLugansk [536]

Answer:

BCD = ECD

Step-by-step explanation:

they would equal the same thing because it is still the same shape

3 0
3 years ago
I am a 3 digit number that has a 2 in the hundreds place. I am divisible by 3,4, and 5. What number am I?
Nastasia [14]
4x60=240
3x80=240
5x48=240
Answer 240
Hope that helps!


4 0
3 years ago
Leroy had 45 baseball cards and gave 15 away. About what percent does he still have?
anyanavicka [17]

Answer:

B.) 66%

Step-by-step explanation:

7 0
3 years ago
Sixty-one diminished by ten x. Answer: _______________________ . The product of twice a number k. Answer: ______________________
KengaRu [80]

Answer:

61 - 10x

2k

42 / 6 = 7

38 + 2m

3y - 6

Step-by-step explanation:

A. Sixty-one diminished by ten x

= 61 - 10x

B. The product of twice a number k

= 2 * k

= 2k

C. The quotient of forty-two and six is seven

42 / 6 = 7

D. Twice the total of nineteen and a number m.

= 2(19 + m)

= 38 + 2m

E. Six less than 3 times y

3y - 6

6 0
2 years ago
Other questions:
  • What is the property of 16-3 and 3-16
    10·1 answer
  • Select all the values that belong to the solution set of 9 ≤ 6 - y.
    7·1 answer
  • Emily buys a toaster during the sale of 10% off if Ellen pays $36 what was the original price?
    12·2 answers
  • What is 0.7 in inches
    11·2 answers
  • PLEASE HELP THIS IS DUE!!!
    5·1 answer
  • A mover is loading an elevator with many identical 48-pound boxes.
    12·2 answers
  • Help help help help
    12·1 answer
  • Callie posted a cute cat video on a popular website. On the first day after she posted the video, the video had 5 views. On the
    7·1 answer
  • Sandeep visited Green Glen Apple Orchard yesterday. He picked a basket of fresh apples in the field. He also got 3 pounds of pre
    8·2 answers
  • X
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!