The meaning of the subscript is not pre-defined in Mathematica. In this instance it is used to grab an element of a dataset, but it could be used as an adjective like Subscript[F, gravity]. To use the subscript notation you could use
<< Notation`
Notation[ParsedBoxWrapper[SubscriptBox["x_", "i_"]] ⟺ ParsedBoxWrapper[RowBox[{"x_", "[[", "i_", "]]"}]]]

Then you could write a block of code which implements the procedure with whichever dataset is assigned to x at the moment of evaluation.
x = RandomReal[{0, 1}, 30];
Note N is a built-in function, so we will use [ScriptCapitalN] instead
\[ScriptCapitalN] = Length@x;
μ = 1/\[ScriptCapitalN] \!\(\*SubsuperscriptBox[\(∑\), \(i = 1\), \(\[ScriptCapitalN]\)]\*SubscriptBox[\(x\), \(i\)]\);
σ = Sqrt[1/\[ScriptCapitalN] \!\(\*SubsuperscriptBox[\(∑\), \(i = 1\), \(\[ScriptCapitalN]\)]\*SuperscriptBox[\((\*SubscriptBox[\(x\), \(i\)] - μ)\), \(2\)]\)];

A little less "exactly as written", you could reinforce the idea that each of these quantities depends on the dataset by making them functions.
ClearAll[\[ScriptCapitalN], μ, σ];
\[ScriptCapitalN][x_] := Length@x;
μ[x_] := 1/\[ScriptCapitalN][x] \!\(\*SubsuperscriptBox[\(∑\), \(i = 1\), \(\[ScriptCapitalN][x]\)]\*SubscriptBox[\(x\), \(i\)]\);
σ[x_] := Sqrt[1/\[ScriptCapitalN][x] \!\(\*SubsuperscriptBox[\(∑\), \(i = 1\), \(\[ScriptCapitalN][x]\)]\*SuperscriptBox[\((\*SubscriptBox[\(x\), \(i\)] - μ[x])\), \(2\)]\)];
σ@x
