### Chi-squared Test and Goodness of Fit

In a classical experiment, Gregor Mendel observed the shape and color of peas that resulted certain crossbreedings. A sample of 556 peas was studied with the result that 315 produced round yellow, 108 produced round green, 101 produced wrinkled yellow, and 32 produced wrinkled green. According to Mendelian theory, the frequencie