Data Science Case Study
Data Science Case Study
1 A Bike rental company is intrested in extending its services to a new city. The company has the
2 weekly demand data from 27 cities. The demand for weekly rides depends upon Price per week,
3 Population of city, Monthly income of riders, Average parking rates per month.
4
5 1. Try to estabilish a model which can estimate the demand for any new city.
6
7 2. Estimate the demand for a city which has Price per week $80, Population of city 16,30,000,
8 Monthly income of riders $16,200, Average parking rates per month $105.
9
10
11
12
Demand estimation using linear regression
Y
City Number of weekly riders
1 192,000
2 190,400
3 191,200
4 177,600
5 176,800
6 178,400
7 180,800
8 175,200
9 174,400
10 173,920
11 172,800
12 163,200
13 161,600
14 161,600
15 160,800
16 159,200
17 148,800
18 115,696
19 147,200
20 150,400
21 152,000
22 136,000
23 126,240
24 123,888
25 126,080
26 151,680
27 152,800
Average 160,026
Demand 129540.804576199
timation using linear regression
X1 X2 X3 X4
Price per week Population of city Monthly income of riders Average parking rates per month
$15 1,800,000 $5,800 $50
$15 1,790,000 $6,200 $50
$15 1,780,000 $6,400 $60
$25 1,778,000 $6,500 $60
$25 1,750,000 $6,550 $60
$25 1,740,000 $6,580 $70
$25 1,725,000 $8,200 $75
$30 1,725,000 $8,600 $75
$30 1,720,000 $8,800 $75
$30 1,705,000 $9,200 $80
$30 1,710,000 $9,630 $80
$40 1,700,000 $10,570 $80
$40 1,695,000 $11,330 $85
$40 1,695,000 $11,600 $100
$40 1,690,000 $11,800 $105
$40 1,630,000 $11,830 $105
$65 1,640,000 $12,650 $105
$102 1,635,000 $13,000 $110
$75 1,630,000 $13,224 $125
$75 1,620,000 $13,766 $130
$75 1,615,000 $14,010 $150
$80 1,605,000 $14,468 $155
$86 1,590,000 $15,000 $165
$98 1,595,000 $15,200 $175
$87 1,590,000 $15,600 $175
$77 1,600,000 $16,000 $190
$63 1,610,000 $16,200 $200
$49.93
Regression Statistics
Multiple R 0.972364342996725
R Square 0.945492415531452
Adjusted R Sq 0.93558194562808
Standard Error 5406.37016803512
Observations 27
ANOVA
df SS MS F Significance F
Regression 4 11154120959.2 3E+09 95.4034 1.4386231E-13
Residual 22 643034444.664 3E+07
Total 26 11797155403.9
RESIDUAL OUTPUT