2

I need to include an equation that contain Statistical mode.I need to find the most repeated value in a set and also need to include range of that set.In the equation bellow,i am trying to replace max and min with mode.

enter image description here

When i typed \mode just like \max or\min,Latex is giving error.So how can I write an emaquation containing Statistical mode with limits?

1
3

If I understand well what you want, just load amsmath (if not already done) and add to your preamble:

\DeclareMathOperator*{\mode}{mode}  
3
  • yes it worked,but now the 1<i<TN is not under mode – user6745741 Apr 18 '17 at 13:37
  • Sorry, I forgot this detail. Use the * version: \DeclareMathOperator*. – Bernard Apr 18 '17 at 13:45
  • completely solved my problem. – user6745741 Apr 18 '17 at 13:48
0

The set of predefined functions (like \max and \min) in LatTeX is rather restricted. You can roll your own by using a recent version of the amsmath package:

\usepackage{amsmath}
\DeclareMathOperator{\modmax}{Mod\_max}
\DeclareMathOperator{\modmin}{Mod\_min}

After this declarions in the preamble of the document, you can use them like \max and \min.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.