Solutions

These solutions show the reasoning, not only the final answer.

MATH-C01-C-001

Given:

x=6x = 6

Compute:

3x2=362=182=163x - 2 = 3 \cdot 6 - 2 = 18 - 2 = 16

Answer: 16.

MATH-C01-C-002

The function is:

g(t)=t2tg(t) = t^2 - t

Use 5 as the input:

g(5)=525=255=20g(5) = 5^2 - 5 = 25 - 5 = 20

Answer: 20.

MATH-C01-C-003

The statement

catY\text{cat} \in Y

means cat is a member of the set YY.

In the label example, it means cat is one of the allowed labels.

MATH-C01-C-004

The tuple is:

z=(10,20,30,40)z = (10, 20, 30, 40)

Using mathematical indexing:

z1=10,z2=20,z3=30,z4=40z_1 = 10,\quad z_2 = 20,\quad z_3 = 30,\quad z_4 = 40

Answer: z3=30z_3 = 30.

MATH-C01-C-005

Expand the summation:

i=13ai=a1+a2+a3\sum_{i=1}^{3} a_i = a_1 + a_2 + a_3

Substitute the values:

2+5+8=152 + 5 + 8 = 15

Answer: 15.

MATH-C01-C-006

The expression is:

1ni=1ni\frac{1}{n}\sum_{i=1}^{n} \ell_i

Read it as:

add all n loss values
divide by n

This is the average loss over n examples.

MATH-C01-C-007

The explanation mixes conventions.

In mathematical indexing, x1x_1 is the first item. So if

x=(4,7,9)x = (4, 7, 9)

then:

x1=4,x2=7,x3=9x_1 = 4,\quad x_2 = 7,\quad x_3 = 9

In Python, the second item is x[1], not x[2].

Correct answer: x2=7x_2 = 7 in mathematical notation.

MATH-C01-C-008

The set is:

V={yes,no,maybe}V = \{\text{yes}, \text{no}, \text{maybe}\}

The token yes appears in the set. So:

yesV\text{yes} \in V

is true.

MATH-C01-C-009

Average loss means total loss divided by the number of examples:

4+6+83=183=6\frac{4 + 6 + 8}{3} = \frac{18}{3} = 6

Answer: 6.

MATH-C01-C-010

Enter 1.

A useful reading of a formula has more than symbol names. It should include:

  • what each symbol names
  • what operation happens
  • what the formula means in the current problem

For example, "sigma over i" is weaker than "add the loss for each example."

The deeper lesson is to name the operation and the meaning, not only the symbol.