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
I am Lyosha [343]
3 years ago
6

What is the entropy of this collection of training examples with respect to the positive class B. What are the information gains

of A1 and A2 relative to the training dataset For A3, which is a continuous attribute, compute the information gain for every possible split. C. What is the best split (among A1,A2, and A3) according to the information gain
Chemistry
1 answer:
Alenkinab [10]3 years ago
4 0

The data set is missing in the question. The data set is given in the attachment.

Solution :

a). In the table, there are four positive examples and give number of negative examples.

Therefore,

$P(+) = \frac{4}{9}$   and

$P(-) = \frac{5}{9}$

The entropy of the training examples is given by :

$ -\frac{4}{9}\log_2\left(\frac{4}{9}\right)-\frac{5}{9}\log_2\left(\frac{5}{9}\right)$

= 0.9911

b). For the attribute all the associating increments and the probability are :

  $a_1$   +   -

  T   3    1

  F    1    4

Th entropy for   $a_1$  is given by :

$\frac{4}{9}[ -\frac{3}{4}\log\left(\frac{3}{4}\right)-\frac{1}{4}\log\left(\frac{1}{4}\right)]+\frac{5}{9}[ -\frac{1}{5}\log\left(\frac{1}{5}\right)-\frac{4}{5}\log\left(\frac{4}{5}\right)]$

= 0.7616

Therefore, the information gain for $a_1$  is

  0.9911 - 0.7616 = 0.2294

Similarly for the attribute $a_2$  the associating counts and the probabilities are :

  $a_2$  +   -

  T   2    3

  F   2    2

Th entropy for   $a_2$ is given by :

$\frac{5}{9}[ -\frac{2}{5}\log\left(\frac{2}{5}\right)-\frac{3}{5}\log\left(\frac{3}{5}\right)]+\frac{4}{9}[ -\frac{2}{4}\log\left(\frac{2}{4}\right)-\frac{2}{4}\log\left(\frac{2}{4}\right)]$

= 0.9839

Therefore, the information gain for $a_2$ is

  0.9911 - 0.9839 = 0.0072

$a_3$     Class label      split point       entropy        Info gain

1.0         +                        2.0            0.8484        0.1427

3.0        -                         3.5            0.9885        0.0026

4.0        +                        4.5            0.9183         0.0728

5.0        -

5.0        -                        5.5            0.9839        0.0072

6.0        +                       6.5             0.9728       0.0183

7.0        +

7.0        -                        7.5             0.8889       0.1022

The best split for $a_3$  observed at split point which is equal to 2.

c). From the table mention in part (b) of the information gain, we can say that $a_1$ produces the best split.

You might be interested in
PLEASE HELP ASAP
Reika [66]
Physical change is a change in color texture and ect chemical is the change in the actual substance

3 0
3 years ago
Read 2 more answers
Having the same number of valence electrons means having similar chemical properties.
Luba_88 [7]

Answer:

True

Explanation:

Because atoms with the same number of valence electrons react in similar ways with other elements.

6 0
3 years ago
If earth was a hard boiled egg,which part of earth would the egg white represent?
romanna [79]

Answer:

The egg white will represent the outer layer which is the we are located on!

Explanation:

6 0
3 years ago
A 20.0 ml sample of glycerol has a mass of 25.2 grams. What is the mass of 63 ml sample of glycerol?
poizon [28]

The mass of 63 ml sample : 79.38 g

<h3>Further explanation</h3>

Given

20 ml and 25.2 g of glycerol

Required

The mass of 63 ml sample

Solution

Density is the ratio of mass per unit volume

Density formula:

\large{\boxed {\bold {\rho~=~ \frac {m} {V}}}}

Density of glycerol :

= m : V

= 25.2 g : 20 ml

= 1.26 g/ml

Mass of 63 ml sample :

= density x volume

= 1.26 g/ml x 63 ml

= 79.38 g

7 0
3 years ago
identify each material as a compound or a mixture. Caffeine contains hydrogen, carbon, nitrogen, and oxygen atoms in a fixed rat
vitfil [10]
Answer: caffeine is a compound.

Explanation:

1) As stated c<span>affeine contains hydrogen, carbon, nitrogen, and oxygen atoms in a fixed ratio.

2) The definition of compound is a pure substance formed by chemical bonding of two or more fifferent elements. That means a defined ratio of the elements in the compound, which conferes uniform and equal properties to every part of the compound.

Some examples of compounds are salt (NaCl), water (H2O), vinegard (CH3 COOH).

A mixture combines several elements or compounds, not bonded by chemical bonds but mixed in ratios which may vary.
</span>
7 0
3 years ago
Read 2 more answers
Other questions:
  • Convert 29.85 degree Celsius to Kelvin
    7·1 answer
  • What are two sources of salt in ocean water
    7·1 answer
  • Some polymers are elastic because they are made of
    11·2 answers
  • An ice cream company decides to make a new lower calorie flavor,but testers reported that the flavor wasnt as good as the origin
    12·1 answer
  • 2 ClO2 (aq) + 2OH- (aq)→ ClO3- (aq) + ClO2- + H2O (l) was studied with the following results: Experiment [ClO2] (M) [OH-] (M) In
    7·1 answer
  • The process of combining two small nuclei into one nucleus of larger mass is called
    5·2 answers
  • How will preventing the inactivation of sodium channels affect the signaling capability of a neuron?
    5·1 answer
  • Which of the following are products of the light-dependent reactions of photosynthesis that are utilized in the light-independen
    13·1 answer
  • Only one variable can be changed at a time
    8·1 answer
  • Pls help! I don’t have time I have an exam really soon
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!