\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,
xmin=-0.5,
xmax=9,
xtick={0,1,...,8},
ymax=0.3,
ybar=0pt,
bar width=1,
bar shift=0pt,
]
\addplot[fill=rwth-50] coordinates {
(0, 0.01679616)
(1, 0.08957952)
(2, 0.20901888)
(3, 0.27869184)
(4, 0.2322432)
(5, 0.12386304)
(6, 0.04128768)
(7, 0.00786432)
(8, 0.00065536)
};
\end{axis}
\end{tikzpicture}