You are on page 1of 6

CHI-SQUARE EXERCISE PROBLEM 1

In Drosophila: A = normal wing a = vestigial wing B = brown body color b = ebony color

A pair of parental flies, AaBb x AaBb, are allowed to breed. Their offspring are allowed to interbreed with each other for many generations. You sample 80 flies from a population of 500 and find the following: Normal wing, brown color: Normal wing, ebony color: Vestigial wing, brown color: Vestigial wing, ebony color: Total sample: 49 15 9 7 80

In your sample of 80 you find 39 males and 41 females. Do the following calculations and show your work on the Hand-In: 1. Calculate chi-square for the distribution of body color and wing type. 2. What are your degrees of freedom? 3. What percentage of the time do you expect this deviation due to chance? Extra (not required on hand-in): 4. Calculate chi-square for distribution of males and females. 5. What are your degrees of freedom? 6. What percentage of the time would you expect this deviation due to chance?

SOLUTIONS 1. expect ratio 9 A_B_ : 3 A_bb : 3 aaB_ : 1 aabb; since there are 80 individuals, that is 5x16 (in other words, 80/16 = 5), so multiply by 5 for predicted: 45 A_B_; 15 A_bb; 15 aaB_; 5 aabb 2 = (49-45)2/45 + (15-15)2/15 + (9-15)2/15 + (7-5)2/5 2= 16/45 + 0 + 36/15 + 4/5 2= 3.556 2. degrees of freedom = 3; 3. 50% P > 30% 4. 2 = (39-40)2/40 + (41-40)2/40 = 1/40 + 1/40 = 0.05 5. degrees of freedom = 1; 6. 90% P > 80%

CHI-SQUARE EXERCISE PROBLEM 2


In sweet peas, purple flowers (A) are dominant to white (a). However, a second gene codes for an enzyme involved in pigment production; at least one copy of the dominant allele for this gene (B) must be present for purple flowers to be possible. In other words, bb plants have white flowers even if they are AA or Aa. Two purple-flowered plants that are AaBb are crossed: AaBb x AaBb. Their offspring are used to establish a population. After a number of generations for that population, you randomly sample 100 plants and count: Purple-flowered plants: White-flowered plants: 58 42

Do the following calculations and show your work on the Hand-In: 1. Calculate chi-square for distribution of flower color. 2. What are your degrees of freedom? 3. What percentage of the time would you expect this deviation due to chance?

SOLUTIONS 1. expect ratio 9 A_B_ : 3 A_bb : 3 aaB_ : 1 aabb; however, only A_B_ are purple, all others are white; thus predict 9/16 (56.25%)purple and 7/16 (43.75%) white; for a sample of 100 plants, NOTE do not round in making the predictions, so do NOT predict 56 purple, 44 white 2 = (58-56.25)2/56.25 + (42-43.75)2/43.75 = 0.1244 2. degrees of freedom = 1; 3. 80% P> 70%

CHI-SQUARE EXERCISE PROBLEM 3


In parakeets, feather color is determined by two genes: A = yellow pigment produced a = no yellow pigment produced B = blue melanin produced b = no blue melanin produced

A bird that makes both yellow pigment and blue melanin is green (A_B_). A bird that makes no yellow pigment and no blue melanin is white (aabb). Two doubly heterozygous birds are mated: AaBb x AaBb They produce many offspring that are used to establish a population. After a number of generations you have a flock of 75 birds in your large aviary. You randomly sample 20 birds and count the following: Yellow parakeets Blue parakeets Green parakeets White parakeets 4 4 12 0

In your sample you find 8 males and 12 females. Do the following calculations and show your work on the Hand-In: 1. Calculate chi-square for the distribution of feather color. 2. What are your degrees of freedom? 3. What percentage of the time do you expect this deviation due to chance? Extra (not required on hand-in): 4. Calculate chi-square for distribution of males and females. 5. What are your degrees of freedom? 6. What percentage of the time would you expect this deviation due to chance?
SOLUTIONS 1. expect ratio 9 A_B_ (green): 3 A_bb (yellow): 3 aaB_ (blue) : 1 aabb (white); since there are 20 individuals sampled, 20/16 = 1.25x16, so multiply by 1.25 for predicted (11.25 green, 3.75 yellow, 3.75 blue, 1.25 white) 2 = (12-11.25)2/11.25 + (4-3.75)2/3.75 + (4-3.75)2/3.75 + (0-1.25)2/1.25 2 = 0.5625/11.25 + 0.0625/3.75 + 0.0625/3.75 + 1.5625/1.25 2 = 0.05 + 0.0167 + 0.0167 + 1.25 2 = 1.333 2. degrees of freedom = 3; 3. 80% P > 70% 4. 2 = (8-10)2/10 + (12-10)2/10 = 4/10 + 4/10 = 0.8 5. degrees of freedom = 1; 6. 50% P > 30%

CHI-SQUARE EXERCISE PROBLEM 4 (extra)


In Drosophila, eye color is an X-linked trait, and females are XX while males are XY. The alleles for eye color are: XR = red eyes (dominant) Xr = white eyes (recessive) Y = no allele (Y chromosome) Your TA gives you a male fly and a female fly as gifts, and you decide to start a colony: Parents XRXr x Xr Y

You allow the offspring of these parents to interbreed, and continue interbreeding for several generations. Soon your population reaches over 1000 flies. You take a random sample of 100 flies and observe: 30 red-eyed females 28 red-eyed males 22 white-eyed females 20 white-eyed males Do the following: 1. Calculate chi-square value for your results (combined calculation for both eye color and sex). 2. What are your degrees of freedom? 3. What percentage of the time would you expect this deviation due to chance? SOLUTIONS Problem 4 tougher challenge for determining expected 1. expect ratio 1 red-eyed female : 1 red-eyed male : 1 white-eyed female : 1 white-eyed male after one generation, and if in equilibrium then that continues to hold (the genetics behind this gets complicated, but can be worked out); this means for each type predict 25 out of 100 2 = (30-25)2/25 + (28-25)2/25 + (22-25)2/25 + (20-25)2/25 2 = 25/25 + 9/25 + 9/25 + 25/25 2 = 2.72 2. degrees of freedom = 3; 3. 50% P> 30%

CHI-SQUARE EXERCISE PROBLEM 5 (extra)


In Drosophila: N = normal wing; frequency of allele N = p n = vestigial wing; frequency of allele n = q You have a population of 200 flies and you divide them into 2 equal groups such that in these beginning populations p = 0.5 and q = 0.5: GROUP 1: 50 normal-winged (25 male, 25 female) 50 vestigial-winged (25 male, 25 female) 50 normal-winged (25 male, 25 female) 50 vestigial-winged (25 male, 25 female)

GROUP 2:

Group 1 flies are allowed to remain in a cage and interbreed for many generations. Group 2 flies are kept in a cage that has a fan constantly blowing into it. These flies are allowed to interbreed for many generations. After the population in each cage is over 1000, you randomly sample 100 flies from each cage and find: Group 1: 76 normal winged Group 2: 8 normal-winged 24 vestigial-winged 92 vestigial-winged Do the following: 1. Calculate chi-square for Group 1s wing phenotypes. 2. What are your degrees of freedom? 3. What percentage of the time would you expect this deviation due to chance? 4. Calculate chi-square for Group 2s wing phenotypes. 5. What are your degrees of freedom? 6. What percentage of the time would you expect this deviation due to chance? 7. How did environment affect wing type? SOLUTIONS
Problem 5 tougher challenge for determining expected 1. expect freq. normal-winged = p2 + 2pq = (0.5)2 + 2(0.5)(0.5) = 0.75, or 75 in 100 freq. vestigial-winged = q2 = (0.5)2 = 0.25, or 25 in 100 2 = (76-75)2/75 + (24-25)2/25 = 1/75 + 1/25 = 0.053 2. degrees of freedom = 1; 3. 90% P > 80% 4. 2 = (8-75)2/75 + (92-25)2/25 = 4489/75 + 4489/25 = 239.413 5. degrees of freedom = 1; 6. P << 1% (essentially zero) 7. environment favored vestigial-winged flies for Group 2