The quantity of goods produced and costs incurred by a firm are tabulated below. Find the correlation coefficient using Karl Pearson's formula.
Quantity producedTotal cost1012020230303154042550510
0.99
XiYiX2iY2iXiYi1012010014400120020230400529004600303159009922594504042516001806251700050510250026010025500∑=150∑=1600∑=5500∑=607250∑=57750
r=N∑ni=1(XiYi)–(∑ni=1Xi)(∑ni=1Yi)√N∑ni=1X2i–(∑ni=1Xi)2√N∑ni=1Y2i–(∑ni=1Yi)2=4875070.71×690.11=0.999