Phase retrieval is an active topic recently. A popular model for phase retrieval is a quadratic model. A lot of numerical experiments show that the quadratic model has excellent performance. However, there are very few theoretical results about the performance of the model. Using tools from compressed sensing and probability theory, we study the performance of the model. We also compare the performance of the quadratic model with one of least square.