can the following sum be simplified For $n \ge 3$, define
$$f(n) = \sum_{k=3}^n {n \choose k}{k-1 \choose 2}.$$
Is there a closed form expression for $f$?

We will use the identities
$$
\begin{align}
\sum_{k=m}^n\binom{n}{k}\binom{k}{m}
&=\sum_{k=m}^n\binom{n}{m}\binom{n-m}{k-m}\\
&=\binom{n}{m}2^{n-m}\tag{1}
\end{align}
$$
and
$$
\binom{k-1}{2}=\binom{k}{2}-\binom{k}{1}+\binom{k}{0}\tag{2}
$$
noting that
$$
\binom{k-1}{2}=\left\{\begin{array}{}
0&\text{for }k\in\{1,2\}\\
1&\text{for }k=0
\end{array}\right.\tag{3}
$$
Applying $(1)$, $(2)$, and $(3)$, we get
$$
\begin{align}
\sum_{k=3}^n\binom{n}{k}\binom{k-1}{2}
&=-\binom{n}{0}\binom{-1}{2}+\sum_{k=0}^n\binom{n}{k}\binom{k-1}{2}\\
&=-1+\sum_{k=0}^n\binom{n}{k}\left(\binom{k}{2}-\binom{k}{1}+\binom{k}{0}\right)\\
&=-1+\binom{n}{2}2^{n-2}-\binom{n}{1}2^{n-1}+\binom{n}{0}2^{n-0}\\[9pt]
&=(n^2-5n+8)2^{n-3}-1\tag{4}
\end{align}
$$
