\begin{tikzpicture}[
scale=0.4,
]
\begin{axis}[
axis lines = left,
xlabel = {$k$},
ylabel = {$P(X=k)$},
x label style={at={(axis description cs:1,0.1)},anchor=north},
y label style={at={(axis description cs:-0.15,1)},rotate = -90,
anchor=north},
yticklabel style={
/pgf/number format/fixed,
/pgf/number format/precision=2
},
ymin=0,
ymax=0.45,
xmin=-0.5,
xmax=6.5,
xtick={0,1,...,6},
ybar=0pt,
bar width=1,
bar shift=0pt,
]
\addplot[fill=rwth-50] coordinates{
(0,0.0)
(1,0.01010101)
(2,0.14141414)
(3,0.42424242)
(4,0.35353535)
(5,0.07070707)
};
\end{axis}
\end{tikzpicture}