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
What three parts make up an atom?
MissTica

The nucleus of an atom is made up of protons and neutrons. Then electrons circle around the nucleus.

Answer:

Proton, Neutron, Electron

8 0
4 years ago
Read 2 more answers
What is formed when water chemically combines with carbon dioxide
solong [7]

When water chemically combines with carbon dioxide, a Carbonic acid is formed.

<u>Explanation</u>:

  • Carbon dioxide responds with water in a solution to form a weak acid, carbonic acid. Carbonic acid disassociates into hydrogen particles and bicarbonate particles. The hydrogen particles and water respond with the most basic minerals modifying the minerals.  
  • Carbon dioxide and the other atmospheric gases disintegrate in surface waters. Dissolved gases are in equilibrium with the gas in the atmosphere. Carbon dioxide responds with water in a solution to form the weak acid, carbonic acid. Carbonic acid disassociates into hydrogen particles and bicarbonate particles.  
  • The hydrogen particles and water respond with the most basic minerals altering the minerals. The results of enduring are prevalently clays and soluble particles, for example, calcium, iron, sodium, and potassium. Bicarbonate particles additionally remain in solution; a remnant of the carbonic acid that was utilized to weather the rocks.

5 0
3 years ago
What is the mass, in grams of a pure iron cube that has a volume of 4.20cm^3
Dmitriy789 [7]
d_{Fe}=7874\frac{kg}{m^{3}}=7,874\frac{g}{cm^{3}}\\&#10;V=4,2cm^{3}\\\\&#10;m=dV=7,784\frac{g}{cm^{3}}*4,2cm^{3}\approx 32,7g
6 0
3 years ago
A laboratory technician combined sodium hydroxide with excess iron(II) nitrate. A reaction took place according to this chemical
Whitepunk [10]

 The initial  mass  of sodium hydroxide  is  3.3 g (answer C)

 <u><em>calculation</em></u>

Step 1 : find the  moles of iron (ii) hydroxide (  Fe(OH)₂

moles =  mass÷  molar mass

from periodic table the  molar mass of Fe(OH)₂  = 56 + [16 +1]2  = 90 g/mol

moles  is therefore = 3.70 g÷ 90 g/mol = 0.041 moles

Step 2:  use the mole ratio to  calculate the moles of  sodium hydroxide (NaOH)

   from given equation  NaOH : Fe(OH)₂    is 2 :1

therefore the moles of NaOH = 0.041 x 2 = 0.082 moles

Step 3: find  mass of NaOH

mass = moles x molar mass

from the periodic table the  molar mass of NaOH = 23 +16 +1  = 40 g/mol

mass  = 0.082  moles x 40 g/mol = 3.3 g ( answer C)


8 0
3 years ago
Energy of motion is referred to as CA. thermal energy B. electrical energy C. potential energy D. kinetic energy​
Natali [406]
It’s, D. Kinetic Energy.

Explanation: Energy associated with an object’s motion is called kinetic energy. A speeding bullet, a walking person, and electromagnetic radiation like light all have kinetic energy.

Hope this helped ;)
8 0
3 years ago
Other questions:
  • Describes changes<br> in energy during a chemical reaction?
    5·1 answer
  • Which chemical formula shows an ionic compound?
    8·2 answers
  • Will mark brainiest!
    8·2 answers
  • A simple equation relates the standard free‑energy change, ΔG∘′, to the change in reduction potential. ΔE0′. ΔG∘′ = −nFΔE0′ The
    8·1 answer
  • Balance the reaction. A coefficient of "1" is understood. Choose option "blank" for the correct answer if the coefficient is "1.
    13·2 answers
  • Describe the difference between a. a hypothesis and a theory and b. an observation and an experiment.
    9·1 answer
  • Rank these transition metal ions in order of decreasing number of unpaired electrons.
    7·1 answer
  • True or false: Some parasites have complex life cycles where they live in different species of hosts at different stages
    9·2 answers
  • Which of these items found on a food label IS NOT a food?
    7·1 answer
  • According to an energy pyramid model, which trophic level is expected have the largest biomass in land ecosystems ?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!