Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ourses/12762/quizzes/39920/take Each year Money magazine cansultants campile a l

ID: 3368255 • Letter: O

Question

ourses/12762/quizzes/39920/take Each year Money magazine cansultants campile a list of 50 blue-chip stocks. These stocks are analyzed and suggestions are made about which anes to buy, which should be held, and which should be sold. Let us assume that in one issue the consultants recommended 17 "buys" and published this buy list with the quoted prices of each stack. STOCK STOCK PRICE PRICE Syntex H.J.Heinz 23.00 40.75 49.95 Marion Merrell Aid Rite 56.00 Eli Lilly Eshares 47.46 GM 44.75 Merck 39.26 Schering Plaugh 53.25 Warner Lambert 42.63 British Telecom 29.75 Borden 57.44 Stanhome 49.00 McGraw-Hill 31.25 Glaxa

Explanation / Answer

Median for these stock is equal to 42.63.which is corresponding to warner lambert stock .

#R: output:

> price=c(23,40.75,49.95,56,47.46,44.75,39.26,53.25,42.63,29.75,57.44,49.00,31.25,33,43.32,65,37.35)
> sort(price)
[1] 23.00 29.75 31.25 33.00 37.35 39.26 40.75 42.63 43.32 44.75 47.46 49.00 49.95 53.25
[15] 56.00 57.44 65.00
> length(price)
[1] 17

#since, The number of stock is odd that is 17. then median is equal to the ((17+1)/2)th term.
> price[(17+1)/2]
[1] 42.63