Top Banner
Sales forecasting using SAS G.K.Haritha VIT Business School Chennai Facilitator: Prof. James Daniel Paul VIT Business School Chennai
13

Sales forecasting using sas

Jul 15, 2015

Download

Education

Haritha Easan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sales forecasting using sas

Sales forecasting using SAS

G.K.Haritha

VIT Business School

Chennai

Facilitator: Prof. James Daniel Paul

VIT Business School

Chennai

Page 2: Sales forecasting using sas

Introduction

The project is taken as a part of my course

where the data were collected from the

manufacturing company which are further

utilized for projecting a sales forecast using sas

program

Page 3: Sales forecasting using sas

Sales forecasting

• Sales Forecasting is the process of estimatingwhat your business’s sales are going to be in thefuture.

• It is an integral part of business management.Without a solid idea of what the future sales aregoing to be, It is not possible to manage theinventory or cash flow or plan for growth. Thepurpose of sales forecasting is to provideinformation that can be used to make intelligentbusiness decisions.

Page 4: Sales forecasting using sas

Objectives

To perform a sales forecasting using sas which can be utilized for,

• Controlling the Inventory level

• Material procurement

• Production capacity Planning

• Life time of the product

• New products launch

• Profit prediction

Page 5: Sales forecasting using sas

Coding for model 1data sasfile.TWO;

input MONTHHA YEARHA FUELHA TRNHA MODELHA DliteHA1 FCHA1 EraHA2 FCHA2 MagnaOHA3 FCHA3 SportzHA4 FCHA4 ;

TOTAL = MONTHHA + YEARHA + FUELHA + TRNHA + MODELHA ;

if TOTAL=100001 then index="A";if TOTAL=100002 then index="B"; if TOTAL=100003 then index="C";

if TOTAL=100004 then index="D";if TOTAL=100005 then index="E"; if TOTAL=100006 then index="F";

if TOTAL=100007 then index="G";if TOTAL=100008 then index="H"; if TOTAL=100009 then index="I";

if TOTAL=100010 then index="J";if TOTAL=100101 then index="K"; if TOTAL=100102 then index="L";

if TOTAL=100103 then index="M";if TOTAL=100104 then index="N"; if TOTAL=100105 then index="O";

if TOTAL=100106 then index="P";if TOTAL=100107 then index="Q"; if TOTAL=100108 then index="R";

if TOTAL=100109 then index="S";if TOTAL=100110 then index="T";

datalines;

1 0 0 0 100000 100001 1810 1571 2931 2704 1744 1701 339 311

2 0 0 0 100000 100002 1897 1516 2862 2658 1731 1689 348 298

3 0 0 0 100000 100003 1721 1460 2977 2612 1853 1676 376 286

4 0 0 0 100000 100004 1385 1405 2467 2566 1863 1663 301 274

5 0 0 0 100000 100005 1294 1350 2643 2520 1737 1651 236 261

6 0 0 0 100000 100006 1029 1295 2380 2474 1658 1638 239 249

7 0 0 0 100000 100007 1193 1240 2170 2428 1516 1625 206 236

8 0 0 0 100000 100008 723 1185 2557 2382 1695 1612 201 224

9 0 0 0 100000 100009 862 1129 1905 2336 1444 1600 189 211

10 0 0 0 100000 100010 774 1074 2159 2290 1574 1587 160 199

1 0 100 0 100000 100101 138 120 161 190 163 151 0 0

2 0 100 0 100000 100102 122 116 203 184 127 147 0 0

3 0 100 0 100000 100103 140 113 214 178 172 143 0 0

4 0 100 0 100000 100104 126 109 186 172 164 139 0 0

5 0 100 0 100000 100105 109 106 135 166 127 135 0 0

6 0 100 0 100000 100106 100 102 142 160 109 131 0 0

7 0 100 0 100000 100107 75 99 132 154 94 127 0 0

8 0 100 0 100000 100108 98 95 146 148 112 123 0 0

9 0 100 0 100000 100109 76 92 126 142 108 119 0 0

10 0 100 0 100000 100110 69 88 156 136 125 115 0 0

;

run;

Page 6: Sales forecasting using sas

Coding for model 2data sasfile.newfile;

input MONTH YEAR FUEL TXN MODEL MD1VTVTS MD1FC MD2VTVTSX MD2FC MD3CRDI MD3FC MD4CRDIS MD4FC MD5CRDISX MD5FC ;

TOTAL = MONTH + YEAR + FUEL+ TXN + MODEL ;

if TOTAL=200001 then index="A";if TOTAL=200002 then index="B"; if TOTAL=200003 then index="C";

if TOTAL=200004 then index="D";if TOTAL=200005 then index="E"; if TOTAL=200006 then index="F";

if TOTAL=200007 then index="G";if TOTAL=200008 then index="H"; if TOTAL=200009 then index="I";

if TOTAL=200010 then index="J";if TOTAL=200201 then index="K"; if TOTAL=200202 then index="L";

if TOTAL=200203 then index="M";if TOTAL=200204 then index="N"; if TOTAL=200205 then index="O";

if TOTAL=200206 then index="P";if TOTAL=200207 then index="Q"; if TOTAL=200208 then index="R";

if TOTAL=200209 then index="S";if TOTAL=200210 then index="T";

datalines;

1 0 0 0 200000 200001 30 26 57 45 20 16 53 46 107 95

2 0 0 0 200000 200002 16 25 31 43 8 15 46 44 98 89

3 0 0 0 200000 200003 25 25 47 41 15 14 44 43 112 83

4 0 0 0 200000 200004 22 24 39 39 17 12 44 41 87 78

5 0 0 0 200000 200005 23 24 36 36 9 11 36 39 70 72

6 0 0 0 200000 200006 24 23 24 34 8 10 32 38 59 67

7 0 0 0 200000 200007 27 23 31 32 9 9 38 36 49 61

8 0 0 0 200000 200008 27 22 33 30 5 7 32 34 48 55

9 0 0 0 200000 200009 18 22 25 28 4 6 27 32 36 50

10 0 0 0 200000 200010 25 21 28 26 5 5 29 31 42 44

1 0 100 100 200000 200201 0 0 33 33 0 0 0 0 53 57

2 0 100 100 200000 200202 0 0 32 33 0 0 0 0 69 54

3 0 100 100 200000 200203 0 0 39 32 0 0 0 0 60 52

4 0 100 100 200000 200204 0 0 28 31 0 0 0 0 73 49

5 0 100 100 200000 200205 0 0 38 31 0 0 0 0 41 46

6 0 100 100 200000 200206 0 0 30 30 0 0 0 0 32 43

7 0 100 100 200000 200207 0 0 33 29 0 0 0 0 39 40

8 0 100 100 200000 200208 0 0 29 28 0 0 0 0 32 37

9 0 100 100 200000 200209 0 0 31 28 0 0 0 0 30 34

10 0 100 100 200000 200210 0 0 26 27 0 0 0 0 17 31

;

run;

Page 7: Sales forecasting using sas

Coding for merging two files

PROC SQL;

create table sasfile.final as

select L.* , R.*

from sasfile.Newfile as L

LEFT JOIN sasfile.Two as R

on L.index=R.index;

quit;

Page 8: Sales forecasting using sas

Coding for Correlation & Regression

Correlation

proc corr data= sasfile.final;

var EraHA2;

run;

quit;

Regression

proc reg data= sasfile.final;

model EraHA2=MD5CRDISX ;

run;

quit;

Page 9: Sales forecasting using sas

Outputs

Page 10: Sales forecasting using sas

Merging by index

Page 11: Sales forecasting using sas

Correlation

Page 12: Sales forecasting using sas

Regression

Page 13: Sales forecasting using sas

Thank you