This documents instruct how to write a basic mathematical formula for those in the domain of application of artificial intelligence.
When I am reviewing a paper from computer society, especially from the application domain of Artificial Intelligence, so many papers with terrible mathematical notations have been sent. These paper have great English with poor mathematics (almost slang or just a pasted one of python code.). I think teaching how to write a formula is the duty of supervisors who give their disciples a degree. However many of them does not teach it at all. Here are list of error and correction. If you know me and take any review from academic society, please consider to follow this instruction. Do not write a formula with some special ability or sense gifted from a God. Write it with formal rules . It is a formula!
\(max\) should be written as \(\max\). \(sin, cos\) should be \(\sin, \cos\) too. In principle, any character of Italic font denote a variable, and there is a multiplication between any two characters. So if you write \(x=sin (y)\), it means \(x = s\times i\times n(y)\), where \(s, i, y\) are supposed to be a variable and \(n\) be a function that takes one argument.
To distinguish products of variables from a function name, well defined functions such as \(\sin, \cos, \log, \max\), etc., must be written in Roman typeface (upright). I recommend to write \(Softmax, ReUL\) as \(\mathrm{Softmax}, \mathrm{ReLU}\) respectively.
At the same time, a variable with multiple italic characters are not allowed. A variable noted as \(iteration\) is so, so bad. Use such as \(n_\mathrm{iteration}\), that means number of iteration. Note that subscription is in Roman typeface. I prefer just write it as \(n\). If you need so long identification such as \(\mathrm{iteration}\), I recommend to refine the model or system of your proposal, because it should be unnecessarily redundant.
This is a common sense on this planet that is taught at junior high school.
In python, you can use only 26 alphabets (for English speakers, japanese can use 2000). So you need to a identification with multiple characters. But in mathematics, you can use lots of decoration that enables us to distinguish variable without lengthen its name. For example, there is,
You can use upper case, greek, and fraktur as followings too.
You lacks number of variable even using the above, use index.
A countable set is defined with \(\cbr{\ }\), not with \(\br{\ }\) nor \(\sbr{\ }\). So it is defined as, \(A = \cbr{1, 2, ..., n}\). A series or tuple is defined with \(\br{}\), for example, \(a = \br{1, 2, 3}\). Picking up an element from a set is stated as \(e \in A\), on the other hand, from a series is stated as \(a_i\) with a index (In this case \(i\in\cbr{1,2,3}\)). If you want to write a summation for them, here are example respectively.
Define a countable set without its contents. For example, a statement ``Let \(A\) be a set of books" is OK. A statement ``Let \(A=\cbr{a_1, a_2, ..., a_n}\) be a set of books where \(n\) is a number of books" is not good because it is redundant.
Here are common notations.
There is exactly only one identical element in a set. But there is multiple occurrences in a series. For example, if we define \(\delta\) as,
So called ``dataset" may not be a set in a sense of set theory.
Do you find a statement axis \(x\) ?, or \(f_x\)? This is not good convention. Because it should be a name of an axis, they should be ``axis \(\mathrm{x}\)", and \(f_\mathrm{x}\). \(x\) is frequently used to denote a coordinate value on axis \(\mathrm{x}\), but axis and its value are different class concept. This mixing understanding will be a problem in differential and integral.
frequently, we want to know the value of the above on 2 points here \(x_1, x_2\).
Here is common integration for cumulative function.
\(\sR^\cbr{\mathrm{x, y, z}}\) is a 3-D vector space with axes \(\mathrm{x, y, z}\). If \(a \in \sR^\cbr{\mathrm{x, y, z}}\), \(a_\ax, a_\ay, a_\az\) denote a coordinate value for each \(\ax, \ay, \az\) respectively. If we define a function \(f\) as \(f: \sR^\cbr{\mathrm{x, y, z}}\to \sR\), then
If we want to finite difference, it can be defined as,
Do not write the following sentence.
Kinetic energy is defined as,
It should be as following.
Let \(e\) be a kinetic energy. It is defined as,
That is, define a variable first in sentence. Then introduce the equation it must satisfy. Do not introduce a varibale with equation at the same time.