[Tex/LaTex] How to write Exponential distribution in overleaf
casesmath-mode
I am new to overleaf and having trouble in writing an exponential distribution function in overleaf.
Could anyone please help me share some insight on how to write it?
Thanks in advance!!
Best Answer
Use cases (or dcases), and although I prefer writing exp, if you insist on using e ensure it is an upright letter, as its a number, not a variable, so use \mathrm{e}.
Here are 3 more script fonts for which there exists a LaTeX package (in math mode): Dutchcal(from the esstix 13 font), Boondox (from the stix fonts) (two variants) and Adobe's Bickham. All exist in regular and boldface. The following code allows to test them, commenting and uncommenting the relevant lines:
I think the following may be what you're looking to write. Observe the use of \text in the numerator and denominator of the first equation. I encased the term X in the first numerator in $ symbols to inform LaTeX that it (the X) should be processed in math mode.
Observe also that there must be no blank lines in a display-math environment (such as equation).
\documentclass{article}
\usepackage{amsmath} % for "\text" and "\DeclareMathOperator" macros
\DeclareMathOperator{\Support}{Support}
\DeclareMathOperator{\Confidence}{Confidence}
\begin{document}
\begin{equation}
\Support(X) = \frac{\text{No of transactions that contain $X$}}%
{\text{No of transactions in the database}}
\end{equation}
\begin{equation}
\Confidence(X \longrightarrow Y) = \frac{\Support(X\cup Y)}{\Support(X)}
\end{equation}
\end{document}
Best Answer
Use
cases
(ordcases
), and although I prefer writingexp
, if you insist on usinge
ensure it is an upright letter, as its a number, not a variable, so use\mathrm{e}
.