SlideShare a Scribd company logo
1 of 13
Sales forecasting using SAS
G.K.Haritha
VIT Business School
Chennai
Facilitator: Prof. James Daniel Paul
VIT Business School
Chennai
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
Sales forecasting
• Sales Forecasting is the process of estimating
what your business’s sales are going to be in the
future.
• It is an integral part of business management.
Without a solid idea of what the future sales are
going to be, It is not possible to manage the
inventory or cash flow or plan for growth. The
purpose of sales forecasting is to provide
information that can be used to make intelligent
business decisions.
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
Coding for model 1
data 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;
Coding for model 2
data 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;
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;
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;
Outputs
Merging by index
Correlation
Regression
Thank you

More Related Content

Viewers also liked

Solutions for the problem
Solutions for the problemSolutions for the problem
Solutions for the problemjuliofreit
 
Boogie bears journey1
Boogie bears journey1Boogie bears journey1
Boogie bears journey1Lori Ann
 
Georgal Tips para mejorar tu inglés #1
Georgal Tips para mejorar tu inglés #1Georgal Tips para mejorar tu inglés #1
Georgal Tips para mejorar tu inglés #1Georgal Idiomas
 
Our sales professionals3
Our sales professionals3Our sales professionals3
Our sales professionals3markads1
 
Occupational health and safety in Delta State, Nigeria
Occupational health and safety in Delta State, NigeriaOccupational health and safety in Delta State, Nigeria
Occupational health and safety in Delta State, NigeriaOgheneovo Ogbewe
 

Viewers also liked (10)

Ventura empathy map
Ventura empathy mapVentura empathy map
Ventura empathy map
 
Solutions for the problem
Solutions for the problemSolutions for the problem
Solutions for the problem
 
Boogie bears journey1
Boogie bears journey1Boogie bears journey1
Boogie bears journey1
 
Empathize and defin
Empathize and definEmpathize and defin
Empathize and defin
 
Georgal Tips para mejorar tu inglés #1
Georgal Tips para mejorar tu inglés #1Georgal Tips para mejorar tu inglés #1
Georgal Tips para mejorar tu inglés #1
 
Test
TestTest
Test
 
Ideate
IdeateIdeate
Ideate
 
Emphaty map
Emphaty mapEmphaty map
Emphaty map
 
Our sales professionals3
Our sales professionals3Our sales professionals3
Our sales professionals3
 
Occupational health and safety in Delta State, Nigeria
Occupational health and safety in Delta State, NigeriaOccupational health and safety in Delta State, Nigeria
Occupational health and safety in Delta State, Nigeria
 

Similar to Sales Forecasting Using SAS

Aminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyekAminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyekAminullah Assagaf
 
Aminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyekAminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyekAminullah Assagaf
 
Aminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyekAminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyekAminullah Assagaf
 
Web trafic time series forecasting
Web trafic time series forecastingWeb trafic time series forecasting
Web trafic time series forecastingKorivi Sravan Kumar
 
Aminullah assagaf mp10 manajemen proyek
Aminullah assagaf mp10 manajemen proyekAminullah assagaf mp10 manajemen proyek
Aminullah assagaf mp10 manajemen proyekAminullah Assagaf
 
Examining Malware with Python
Examining Malware with PythonExamining Malware with Python
Examining Malware with Pythonmrphilroth
 
第7回 大規模データを用いたデータフレーム操作実習(1)
第7回 大規模データを用いたデータフレーム操作実習(1)第7回 大規模データを用いたデータフレーム操作実習(1)
第7回 大規模データを用いたデータフレーム操作実習(1)Wataru Shito
 
第5回 様々なファイル形式の読み込みとデータの書き出し(解答付き)
第5回 様々なファイル形式の読み込みとデータの書き出し(解答付き)第5回 様々なファイル形式の読み込みとデータの書き出し(解答付き)
第5回 様々なファイル形式の読み込みとデータの書き出し(解答付き)Wataru Shito
 
Transformation 101 - Business Model Workshop
Transformation 101 - Business Model WorkshopTransformation 101 - Business Model Workshop
Transformation 101 - Business Model WorkshopDaniel Li
 
第5回 様々なファイル形式の読み込みとデータの書き出し
第5回 様々なファイル形式の読み込みとデータの書き出し第5回 様々なファイル形式の読み込みとデータの書き出し
第5回 様々なファイル形式の読み込みとデータの書き出しWataru Shito
 
Scheduling by Primavera - Training
Scheduling by Primavera - TrainingScheduling by Primavera - Training
Scheduling by Primavera - TrainingMohammed Feroze
 
Vietnam retail store modern trade trend 2023
Vietnam retail store modern trade trend 2023Vietnam retail store modern trade trend 2023
Vietnam retail store modern trade trend 2023Duy, Vo Hoang
 
SUPPLY CHAIN AND SOURCING_PROCUREMENT RAISING rev 2
SUPPLY CHAIN AND SOURCING_PROCUREMENT RAISING rev 2SUPPLY CHAIN AND SOURCING_PROCUREMENT RAISING rev 2
SUPPLY CHAIN AND SOURCING_PROCUREMENT RAISING rev 2Reinaldo Leopoldo
 

Similar to Sales Forecasting Using SAS (20)

Aminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyekAminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyek
 
Aminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyekAminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyek
 
Aminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyekAminullah assagaf mp2 manajemen proyek
Aminullah assagaf mp2 manajemen proyek
 
Web trafic time series forecasting
Web trafic time series forecastingWeb trafic time series forecasting
Web trafic time series forecasting
 
Aminullah assagaf mp10 manajemen proyek
Aminullah assagaf mp10 manajemen proyekAminullah assagaf mp10 manajemen proyek
Aminullah assagaf mp10 manajemen proyek
 
Sesión 02
Sesión 02Sesión 02
Sesión 02
 
Aminullah assagaf mk19 ch 5
Aminullah assagaf mk19 ch 5Aminullah assagaf mk19 ch 5
Aminullah assagaf mk19 ch 5
 
Forecasting Attendance at SWU Football Games
Forecasting Attendance at SWU Football GamesForecasting Attendance at SWU Football Games
Forecasting Attendance at SWU Football Games
 
Forecasting Assignment Help
Forecasting Assignment HelpForecasting Assignment Help
Forecasting Assignment Help
 
Examining Malware with Python
Examining Malware with PythonExamining Malware with Python
Examining Malware with Python
 
Data cleansing project
Data cleansing project Data cleansing project
Data cleansing project
 
第7回 大規模データを用いたデータフレーム操作実習(1)
第7回 大規模データを用いたデータフレーム操作実習(1)第7回 大規模データを用いたデータフレーム操作実習(1)
第7回 大規模データを用いたデータフレーム操作実習(1)
 
第5回 様々なファイル形式の読み込みとデータの書き出し(解答付き)
第5回 様々なファイル形式の読み込みとデータの書き出し(解答付き)第5回 様々なファイル形式の読み込みとデータの書き出し(解答付き)
第5回 様々なファイル形式の読み込みとデータの書き出し(解答付き)
 
Transformation 101 - Business Model Workshop
Transformation 101 - Business Model WorkshopTransformation 101 - Business Model Workshop
Transformation 101 - Business Model Workshop
 
第5回 様々なファイル形式の読み込みとデータの書き出し
第5回 様々なファイル形式の読み込みとデータの書き出し第5回 様々なファイル形式の読み込みとデータの書き出し
第5回 様々なファイル形式の読み込みとデータの書き出し
 
Scheduling by Primavera - Training
Scheduling by Primavera - TrainingScheduling by Primavera - Training
Scheduling by Primavera - Training
 
anexos.pdf
anexos.pdfanexos.pdf
anexos.pdf
 
Vietnam retail store modern trade trend 2023
Vietnam retail store modern trade trend 2023Vietnam retail store modern trade trend 2023
Vietnam retail store modern trade trend 2023
 
SUPPLY CHAIN AND SOURCING_PROCUREMENT RAISING rev 2
SUPPLY CHAIN AND SOURCING_PROCUREMENT RAISING rev 2SUPPLY CHAIN AND SOURCING_PROCUREMENT RAISING rev 2
SUPPLY CHAIN AND SOURCING_PROCUREMENT RAISING rev 2
 
July+corporate+update
July+corporate+updateJuly+corporate+update
July+corporate+update
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 

Sales Forecasting Using SAS

  • 1. Sales forecasting using SAS G.K.Haritha VIT Business School Chennai Facilitator: Prof. James Daniel Paul VIT Business School Chennai
  • 2. 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
  • 3. Sales forecasting • Sales Forecasting is the process of estimating what your business’s sales are going to be in the future. • It is an integral part of business management. Without a solid idea of what the future sales are going to be, It is not possible to manage the inventory or cash flow or plan for growth. The purpose of sales forecasting is to provide information that can be used to make intelligent business decisions.
  • 4. 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
  • 5. Coding for model 1 data 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;
  • 6. Coding for model 2 data 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;
  • 7. 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;
  • 8. 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;