# Descriptive statistics for a frequency table

Let $X$ be a random variable which takes values $0,1,2,3,4,5$, and $6$ with the distribution function $f$. The distribution of $X$ is given below

What is the simplest way to compute mean, variance, etc from distribution presented like this? From the documentation, Variance[] only takes a predefined distribution or a plain list as input.

x = {0, 1, 2, 3, 4, 5, 6};