Difference between revisions of "Template:ProbMacros"

From Maths
Jump to: navigation, search
m (Missing bracket)
(Added variance)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ProbMacro}}{{M|\newcommand{\E}[1]{ {\mathbb{E}{\left[{#1}\right]} } } }}<noinclude>
+
{{ProbMacro}}{{M|\newcommand{\E}[1]{ {\mathbb{E}{\left[{#1}\right]} } } }}<!--
Using {{C|\E}} for expected value. [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 06:50, 29 November 2017 (UTC)
+
 
 +
MDM and VAR
 +
-->{{M|\newcommand{\Mdm}[1]{\text{Mdm}{\left({#1}\right) } } }}<!--
 +
-->{{M|\newcommand{\Var}[1]{\text{Var}{\left({#1}\right) } } }}<!--
 +
 
 +
nCr
 +
-->{{M|\newcommand{\ncr}[2]{ \vphantom{C}^{#1}\!C_{#2} } }}<noinclude>
 +
==Changelog (from [[Template:ProbMacro]])==
 +
* Using {{C|\E}} for expected value. [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 06:50, 29 November 2017 (UTC)
 +
* Added {{C|\Mdm}} for things like {{M|\Mdm{X} }} [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 12:19, 8 January 2018 (UTC)
 +
* Added {{C|\ncr}} for things like {{M|\ncr{n}{r} }} (and it works, not my usual: {{C|{}^nC_r}}) - see [[nCr]] [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 12:26, 8 January 2018 (UTC)
 +
* Added {{C|\Var}}, eg {{M|\Var{X} }} [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 20:57, 11 January 2018 (UTC)
 
</noinclude>
 
</noinclude>

Latest revision as of 20:57, 11 January 2018

[ilmath]\newcommand{\P}[2][]{\mathbb{P}#1{\left[{#2}\right]} } \newcommand{\Pcond}[3][]{\mathbb{P}#1{\left[{#2}\!\ \middle\vert\!\ {#3}\right]} } \newcommand{\Plcond}[3][]{\Pcond[#1]{#2}{#3} } \newcommand{\Prcond}[3][]{\Pcond[#1]{#2}{#3} }[/ilmath]
[ilmath]\newcommand{\E}[1]{ {\mathbb{E}{\left[{#1}\right]} } } [/ilmath][ilmath]\newcommand{\Mdm}[1]{\text{Mdm}{\left({#1}\right) } } [/ilmath][ilmath]\newcommand{\Var}[1]{\text{Var}{\left({#1}\right) } } [/ilmath][ilmath]\newcommand{\ncr}[2]{ \vphantom{C}^{#1}\!C_{#2} } [/ilmath]

Changelog (from Template:ProbMacro)

  • Using \E for expected value. Alec (talk) 06:50, 29 November 2017 (UTC)
  • Added \Mdm for things like [ilmath]\Mdm{X} [/ilmath] Alec (talk) 12:19, 8 January 2018 (UTC)
  • Added \ncr for things like [ilmath]\ncr{n}{r} [/ilmath] (and it works, not my usual: {}^nC_r) - see nCr Alec (talk) 12:26, 8 January 2018 (UTC)
  • Added \Var, eg [ilmath]\Var{X} [/ilmath] Alec (talk) 20:57, 11 January 2018 (UTC)