Krull dimension of a ring $R$ is the supremum of the number of strict inclusions in a chain of prime ideals.
Question 1. Considering $R = \mathbb{C}[x_1, x_2, x_3, x_4]/\left< x_1x_3-x_2^2,x_2 x_4-x_3^2,x_1x_4-x_2 x_3\right>$, how does one calculate the Krull dimension of $R$? This variety is well-known as the twisted cubic in $\mathbb{P}^3$.
Question 2. In general for any ring $R$, how are the Krull dimension of $R$ and the dimension of Spec$(R)$ related?
Thank you.
Question 1: It is a theorem that $\mathrm{dim}\ A[x]=\mathrm{dim}\ A+1$ for any Noetherian ring $A$, where $\mathrm{dim}$ denotes Krull dimension. Thus $\mathrm{dim}\ \mathbb C[x_1,x_2,x_3,x_4]=4$, as $\mathrm{dim}\ \mathbb C=0$ trivially. The easiest way to compute the dimension of $R$ is to verify that $$P=\langle x_1x_3-x_2^2,x_2 x_4-x_3^2,x_1x_4-x_2 x_3\rangle$$ is a prime ideal, i.e. by the methods I employ here, and computing its height. As a caution, I have not proved that $P$ is prime myself but I believe that it is. To determine its height, notice that $\mathbb C[x_1,x_2,x_3,x_4]$ is a UFD so all prime ideals of height $1$ are principal, while $P$ is easily shown not to be principal. By the Generalized Principal Ideal Theorem, $P$ has height at most it's number of generators, i.e. $3$. Hence we need only determine whether $P$ has height $2$ or $3$. In fact, it has height $3$, which can be shown by verifying that $$0\subset \langle x_1x_3-x_2^2\rangle\subset \langle x_1x_3-x_2^2,x_2 x_4-x_3^2\rangle\subset P$$ is a strict chain of prime ideals, e.g. by the methods in the post I linked to.
Question 2: Yes, the dimensions are equal. See for example Wikipedia.
Edit: Not doing calculations can get you in trouble. As Mariano's answer shows, $P$ has height $2$ rather than $3$ (so apparently the second ideal in the chain I wrote is not prime), hence the dimension of $R$ is $4-2=2$.