Ba Lab Manual
Ba Lab Manual
Ba Lab Manual
ISO 9001:2015 Certified Institution, Accredited by NBA (BME, CSE, ECE, EEE, IT & MECH),
Accredited by NAAC with ‘A’ Grade (3.49 / 4 scale)
#42, Avadi -Vel Tech Road, Avadi, Chennai- 600062, Tamil Nadu, India.
NAME :
REGISTERNO :
ROLLNO :
YEAR III
SEMESTER V
CERTIFICATE
Name…………………….………………………..................Year:……………Semester:…………...
Branch: B.TECH–ARTIFICIAL INTELLIGENCE AND DATA SCIENCE University Register
No………….. ............ College Roll No: Certified that this is the bonafide record of
Work done by the above student in the 191ITV13 – BUSINESS ANALYTICS LABORATORY
during the academic year 2023-2024.
Submitted for the End Semester Practical Examination held on ........................ at VELTECH MULTITECH
Dr.RANGARAJAN Dr.SAKUNTHALA ENGINEERING COLLEGE, No.42, AVADI–VELTECH
ROAD, AVADI, CHENNAI-600062.
Signature of Examiners
Date:………………
DEPARTMENT OF ARTIFICIAL INTELLIGENCE AND DATA SCIENCE
Train the graduates with the potential of strong knowledge in the respective field
PEO1 and to create innovative multidisciplinary solutions for challenges in the society
Groom the engineers to understand, analyse different nature of data and use
PEO2 Machine Learning techniques to develop software systems with varying
complexity for data intensive applications
Apply the core competency obtained in the field of Machine Learning for
PSO2 analysis, design and development of computing systems for multi-disciplinary
problems
Problem Analysis: Identify, formulate, review research literature and analyze complex
PO2 engineering problems reaching substantiated conclusions using first principles of mathematics, natural
sciences, and engineering sciences.
Design / Development of solutions: Design solutions for complex engineering problems and design
PO3 system components or processes that meet specified needs with appropriate consideration for public
health and safety, cultural, societal, and environmental considerations.
Conduct Investigations of Complex Problems: Use research-based knowledge and research methods
PO4 including design of experiments, analysis and interpretation of data, and synthesis of the information to
provide valid conclusions.
Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
PO5 engineering and IT tools including prediction and modeling to complex engineering activities with an
understanding of the limitations.
The Engineer and Society: Apply reasoning informed by the contextual knowledge to assess societal,
PO6 health, safety, legal and cultural issues and the consequent responsibilities relevant to the professional
engineering practice.
Environment and sustainability: Understand the impact of the professional engineering solutions in
PO7 societal and environmental contexts, and demonstrate the knowledge of, and need for
sustainable development.
Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
PO8 engineering practice.
Individual and team work: Function effectively as an individual, and as a member or leader in diverse
PO9 teams, and in multidisciplinary settings.
Project Management and Finance: Demonstrate knowledge and understanding of the engineering and
PO11 management principles and apply these to one’s own work, as a member and leader in a team, to manage
projects and in multidisciplinary environments.
Life-long learning: Recognize the need for, and have the preparation and ability to engage in
PO12
independent and life-long learning in the broadest context of technological change.
LIST OF EXPERIMENTS
COURSE OBJECTIVES
Exercise:
Use MS-Excel and Power-BI to perform the following experiments using a business data set,
and make presentations.
Students may be encouraged to bring their own real-time socially relevant data set.
I Cycle – MS Excel
1. Explore the features of Ms-Excel.
2. (i) Get the input from user and perform numerical operations (MAX, MIN, AVG,
SUM, SQRT, ROUND)
ii) Perform data import/export operations for different file formats.
3. Perform statistical operations - Mean, Median, Mode and Standard deviation,
Variance, Skewness, Kurtosis
4. Perform Z-test, T-test & ANOVA
5. Perform data pre-processing operations i) Handling Missing data ii) Normalization
6. Perform dimensionality reduction operation using PCA, KPCA & SVD
7. Perform bivariate and multivariate analysis on the dataset.
8. Apply and explore various plotting functions on the data set.
COURSEOUTCOMES
Course
Outcome CO Statements
CO1 Analyze the real world business problems and model with analytical solutions
CO2 Identify the business processes for extracting Business Intelligence
CO3 Use predictive analytics for business fore-casting
CO4 Apply analytics for supply chain and logistics management
CO5 Make use of analytics for marketing and sales
Mapping CO's with PO's & PSO’s
Course
PSO1
PSO2
PSO3
PO10
PO11
PO12
PO 1
PO 2
PO 3
PO 4
PO 5
PO 6
PO 7
PO 8
PO 9
Outcome
CO1 2 2 1 - - - - - 1 2 1 1 3 2 1
CO2 3 3 3 2 - - - - 1 2 - - 3 1 2
CO3 2 2 2 1 - - - - 3 1 1 3 3 1 2
CO4 2 2 1 1 - 2 2 2 3 3 2 1 1 3 1
CO5 2 2 2 1 - 2 2 2 3 3 1 3 3 1 1
CO 2 2 2 1 - 2 2 2 3 3 2 3 3 2 2
Table of Contents
FACULTY
S.NO DATE LIST OF EXPERIMENTS CO PAGE NO SIGN
I Cycle – MS Excel
2
EX NO: 1
Explore the Features of MS-EXCEL
DATE :
AIM:
PROCEDURE:
Features of MS-EXCEL:
3
The following are the features of MS Excel:
Excel offers a lot of graphical features for presenting data in graphs and pictures:
o Charts: Charts can be used to represent the data in richly detailed graphical format..
Excel may be used to create databases and carry out a variety of data processing operations.
.
o Tables: We can group the rows and columns using parent and child
records. This willmake it easier to conduct additional research rapidly.
o Grouping: With parent and child records, we can group the rows and columns.
o Sorting: In Excel, we can sort the data. We can sort the data in
Ascending or Descending order with one or more than one column.
o Filtering: The data can be filtered in Excel. In order to filter with
essential options, we can set a verity of the option. In Excel, there is an
option of Advanced Filtering, which allows us to perform more complex
filters.
o Data Validations: We can use the Data validation functionality to
restrict the types of data that can be entered into a cell. We can also
lOM oARcPSD|27848569
4
provide a drop-down menu where we can choose from a pre-defined list
of options.
o Ribbon Menu: Excel 2007 added the ribbon menu, giving it a more
modern look and feel.
o More Rows and Columns: This feature expands the number of records
and fields stored in each spreadsheet.
o Themes and Styles: With the help of this feature, we can easily switch
from one colour scheme to another.
o Open XML: Excel 2007 introduced the feature of Open XML file structure.
o Formulas, Charts, and PivotTables have been improved, and new
features have beenadded.
Slicers and Sparklines are two of Excel 2010's most essential new features:
Excel was known as MDI (Multiple Document Interface) until 2010, but it
is now known as SDA (Single Document Application). Excel 2013 boasts a
more polished and modern appearance along with many more performance
features.
5
Features of Excel 2016
Result:
The features of MS-EXCEL explored successfully and displayed desired output in neat
format.
lOM oARcPSD|27848569
AIM:
To implement Numerical Operations using MS-EXCEL.
PROCEDURE:
Step 3 : Calculate the Maximum of the given marks using max function.
Step 4 : Calculate the Minimum of the given marks using MIN function.
Step 5: Calculate the average of the given marks using average function.
Step 6 : Calculate the sum of the given marks using sum function.
Step 7 : Calculate the square root of the given mark using SQRT function.
Step 8 : Calculate the Round of the given mark using Roundup function.
Step 9 : Display the desired output of all numerical operation in neat format.
Step 10 : Save the excel file and Close the Ms Excel application.
7
Finding Minimum of the given marks
8
Finding sum of the given marks
9
Finding Round of the given marks
OUTPUT:
Result:
The numerical operations were implemented using MS-EXCEL successfully and the
desired output was displayed.
lOM oARcPSD|27848569
10
EX NO: 2b
Perform data import/export operations for different file
DATE :
formats
AIM:
To perform data import/export operations for different file formats using MS-EXCEL.
PROCEDURE:
Step 4 : Export the file into CSV file using file menu and export option.
Step 5: Next , import CSV file using data menu and get data option.
Step 6 : Display the desired output in neat format.
Step 7 : Save the excel file and Close the Ms Excel application.
Process:
Data Import/Export Operations for Different File Formats
Excel can import and export many different file types aside from the standard .xslx format. If
your data is shared between other programs, like a database, you may need to save data as a
different file type or bring in files of a different file type.
EXPORT DATA
When you have data that needs to be transferred to another system, export it from Excel in a
format that can be interpreted by other programs, such as a text or CSV file.
11
The file type you select will depend on what type of file is required by the program that
will consume the exported data.
A dialog box appears stating that some of the workbook features may be lost.
8. Click Yes.
12
Import Data
Excel can import data from external data sources including other files, databases, or web pages.
Some data sources may require special security access, and the connection process can
often be very complex. Enlist the help of your organization’s technical support staff for
assistance.
If you have data to import from Access, the web, or another source, select one of those
options in the Get External Data group instead.
If, while importing external data, a security notice appears saying that it is connecting
to an external source that may not be safe, click OK.
lOM oARcPSD|27848569
13
Because we've specified the data is separated by commas, the delimiter is already set. If
you need to change it, it can be done from this menu.
8. Click Load.
lOM oARcPSD|27848569
14
Result:
The data import/export operations for different file formats were preformed successfully
using MS-EXCEL.
lOM oARcPSD|27848569
15
AIM:
To Perform statistical operations using MS-EXCEL.
PROCEDURE:
Step 7 : When you click Ok, you will see the result in the selected output range.
Step 8: Save the excel file and Close the Ms Excel application.
lOM oARcPSD|27848569
16
17
18
19
OUTPUT:
Result:
The statistical operations were performed successfully using MS-EXCEL and the desired output was
displayed in neat format.
lOM oARcPSD|27848569
20
EX NO: 4A
Perform Z-test
DATE :
AIM:
To Perform Z-test operations using MS-EXCEL.
PROCEDURE:
21
(1)Now
select
this
data
range
22
OUTPUT:
Result:
The Z-test operation was performed successfully using MS-EXCEL and the desired
output was displayed in neat format.
lOM oARcPSD|27848569
23
EX NO: 4B
Perform T-test
DATE :
AIM:
To Perform T-test operations using MS-EXCEL.
PROCEDURE:
Step 3 : If you haven't already installed the Analysis ToolPak , Click the Microsoft
Office button, then click on the Excel Options , and then select Add-Ins ,
Click Go, check the Analysis ToolPak box, and click Ok
Step 4 : Select Data tab, then click on the Data Analysis option, then selects
Descriptive Statistics from the list and Click Ok. [Data tab >> Data
Analysis >> T-test Paired two sample for means]
Step 5: In the Input Range we select range of the data for variable 1 and variable
2 and Give alpha value as 0.05. then select Output Range where you want
the output to be stored. If you don’t specify the output range it will throw
output in the new worksheet.
Step 6 : Then select Output Range where you want the output to be stored. If you
don’t specify the output range it will throw output in the new worksheet.
Step 7 : When you click Ok, you will see the result in the selected output range.
Step 8: Save the excel file and Close the Ms Excel application.
lOM oARcPSD|27848569
24
(1)Now select
this data
range
25
OUTPUT:
Result:
The T-test operation was performed successfully using MS-EXCEL and the desired
output was displayed in neat format.
lOM oARcPSD|27848569
26
EX NO: 4C
Perform ANOVA operations
DATE :
AIM:
To Perform ANOVA operations using MS-EXCEL.
PROCEDURE:
27
(1)Now select
this data
range
28
OUTPUT:
Result:
The ANOVA operations was performed successfully using MS-EXCEL and the desired
output was displayed in neat format.
lOM oARcPSD|27848569
29
EX NO: 5A
Perform data pre-processing operations –
DATE : HandlingMissing data
AIM:
To handle the missing data in data pre-processing operations on the dataset using MS-EXCEL.
PROCEDURE:
Step 3 : If you haven't already installed the PrimaXL Addin, install it. Click the
PrimaXL tab , choose missing
Step 4 : In the Input Range we select marks of all subjects with missing values and
select the Choice as “filling of the missing data by taking average” or ”
filling of the missing data by random pick”.
Step 5: Then select Output Range where you want the output to be stored. If you don’t
specify the output range it will throw output in the new worksheet.
Step 6 : Then select Output Range where you want the output to be stored. If you
don’t specify the output range it will throw output in the new worksheet.
Step 7 : When you click Ok, you will see the result in the selected output range.
Step 8: Save the excel file and Close the Ms Excel application.
lOM oARcPSD|27848569
30
Choose
primalXL
Choose
missing
values
lOM oARcPSD|27848569
31
lOM oARcPSD|27848569
32
OUTPUT:
Result:
The missing data on dataset was handled successfully using MS-EXCEL and the desired output was
displayed in neat format.
lOM oARcPSD|27848569
33
EX NO: 5A
Perform data pre-processing
DATE : operations -Normalization
AIM:
To normalize in the given dataset using MS-EXCEL.
Normalization (Or Min-Max scaling) data in excel
It is the process of scaling data in such a way that all data points lie in a range of 0 to 1.
Thus, this technique, makes it possible to bring all data points to a common scale. The
mathematical formula for normalization is given as:
where X is the data point, Xmax and Xmin are the maximum and minimum value in the group of
records respectively. The process of normalization is generally used when the distribution of
data does not follow the Gaussian distribution.
PROCEDURE:
34
OUTPUT:
RESULT:
The given dataset was normalized using MS-EXCEL and the desired output was
displayed in neat format.
lOM oARcPSD|27848569
35
AIM:
To Perform dimensionality reduction operation using PCA, KPCA & SVD
PROCEDURE:
36
OUTPUT :
RESULT:
The given dataset was performed dimensionality reduction operation using PCA,
KPCA & SVD and the desired output was displayed in neat format.
lOM oARcPSD|27848569
37
EX NO: 7a
PERFORM BIVARIATE ANALYSIS ON THE DATASET
DATE :
AIM:
To Perform bivariate analysis on the dataset using MS-EXCEL.
PROCEDURE:
38
39
40
OUTPUT:
Result:
The bivariate analysis on dataset was performed successfully using MS-EXCEL and
the desired output was displayed in neat format.
lOM oARcPSD|27848569
41
EX NO: 7b
PERFORM MULTIVARIATE ANALYSIS ON THE DATASET
DATE :
AIM:
To Perform multivariate analysis on the dataset using MS-EXCEL.
PROCEDURE:
42
43
OUTPUT:
Result:
The multivariate analysis on the dataset was performed successfully using MS-EXCEL
and the desired output was displayed in neat format.
lOM oARcPSD|27848569
44
EX NO: 8
PLOTTING FUNCTIONS ON THE DATA SET
DATE :
AIM:
To apply and explore various plotting functions on the data set using MS-EXCEL.
PROCEDURE:
45
OUTPUT:
RESULT:
The plotting functions was applied and explored on the data set successfully using
MS-EXCEL and the desired output was displayed in neat format.
lOM oARcPSD|27848569
46
lOM oARcPSD|27848569
47
AIM:
PROCEDURE:
Step 4 : Create visuals, such as charts or graphs that provide visual representations of
the data.
Step 5: Create reports that are collections of visuals on one or more report pages.
Power BI Desktop is a free application you install on your local computer that lets you connect
to, transform, and visualize your data. With Power BI Desktop, you can connect to multiple
different sources of data, and combine them (often called modeling) into a data model. This
data model lets you build visuals, and collections of visuals you can share as reports, with other
people inside your organization. Most users who work on business intelligence projects use
Power BI Desktop to create reports, and then use the Power BI service to share their reports
with others.
lOM oARcPSD|27848569
48
The most common uses for Power BI Desktop are as follows:
Connect to data.
Transform and clean data to create a data model.
Create visuals, such as charts or graphs that provide visual representations of the
data.
Create reports that are collections of visuals on one or more report pages.
Share reports with others by using the Power BI service.
People who are responsible for such tasks are often considered data analysts (sometimes
referred to as analysts) or business intelligence professionals (often referred to as report
creators). Many people who don't consider themselves an analyst or a report creator use Power
BI Desktop to create compelling reports, or to pull data from various sources. They can build
data models, and then share the reports with their coworkers and organizations.
Important
There are three views available in Power BI Desktop, which you select on the left side of the
canvas. The views, shown in the order they appear, are as follows:
Report: You create reports and visuals, where most of your creation time is spent.
Data: You see the tables, measures, and other data used in the data model
associated with your report, and transform the data for best use in the report's
model.
Model: You see and manage the relationships among tables in your data model.
The following image shows the three views, as displayed along the left side of the canvas:
lOM oARcPSD|27848569
49
Connect to data
To get started with Power BI Desktop, the first step is to connect to data. There are many
different data sources you can connect to from Power BI Desktop.
To connect to data:
The Get Data window appears, showing the many categories to which Power BI
Desktop can connect.
2. When you select a data type, you're prompted for information, such as the URL and
credentials, necessary for Power BI Desktop to connect to the data source on your behalf.
lOM oARcPSD|27848569
50
3. After you connect to one or more data sources, you may want to transform the
data so it's useful for you.
In Power BI Desktop, you can clean and transform data using the built-in Power Query Editor.
With Power Query Editor, you make changes to your data, such as changing a data type,
removing columns, or combining data from multiple sources. It's like sculpting: you start with a
large block of clay (or data), then shave off pieces or add others as needed, until the shape of the
data is how you want it.
Each step you take in transforming data (such as renaming a table, transforming a data type, or
deleting a column) is recorded by Power Query Editor. Every time this query connects to the
data source, those steps are carried out so that the data is always shaped the way you specify.
The following image shows the Power Query Editor window for a query that was shaped, and
turned into a model.
lOM oARcPSD|27848569
51
Once your data is how you want it, you can create visuals.
Create visuals
After you have a data model, you can drag fields onto the report canvas to create visuals. A
visual is a graphic representation of the data in your model. There are many different types of
visuals to choose from in Power BI Desktop. The following visual shows a simple column
chart.
52
If you already have a visual selected on the report canvas, the selected visual changes to the type
you selected.
If no visual is selected on the canvas, a new visual is created based on your selection.
Create reports
More often, you'll want to create a collection of visuals that show various aspects of the data
you've used to create your model in Power BI Desktop. A collection of visuals, in one Power
BI Desktop file, is called a report. A report can have one or more pages, just like an Excel file
can have one or more worksheets.
With Power BI Desktop you can create complex and visually rich reports, using data from
multiple sources, all in one report that you can share with others in your organization.
In the following image, you see the first page of a Power BI Desktop report, named Overview,
as seen on the tab near the bottom of the image.
Share reports
After a report is ready to share with others, you can publish the report to the Power BI service,
and make it available to anyone in your organization who has a Power BI license.
lOM oARcPSD|27848569
53
To publish a Power BI Desktop report:
Power BI Desktop connects you to the Power BI service with your Power BI
account.
2. You're prompted to select where in the Power BI service you'd like to share the
report. For example, your workspace, a team workspace, or some other location
in the Power BI service.
RESULT:
The features of Power BI explored successfully and displayed desired output in neat
format.
lOM oARcPSD|27848569
54
AIM:
PROCEDURE:
Step 2 : Goto to home menu , select get data and then choose excel worksheet
Step 3 : Select your file to load into Power Bi application and press load button
Step 4 : Now the file is loaded and now click data view in the left panel
Step 5: Now the file is loaded in the form of table format
Step 6 : Save the file in desired location
55
56
Press load
button
Select
sheet1
lOM oARcPSD|27848569
57
Choose data
view
OUTPUT:
RESULT:
The Excel data sheet was prepared and loaded successfully into Power BI Desktop and
displayed desired output in neat format.
lOM oARcPSD|27848569
58
EX NO:11
DEVELOPING DATA MODEL
DATE :
AIM:
PROCEDURE:
Step 2 : Go to home menu , select get data and then choose excel worksheet
Step 3 : Select your file to load into Power Bi application and press load button
Step 4 : Now the file is loaded and now click model view in the left panel
Step 5: Now data modeling of the given tables are displayed in output screen
Step 6 : Save the file in desired location
OUTPUT:
RESULT:
The data model was developed and loaded successfully using Power BI Desktop and
displayed desired output in neat format.
lOM oARcPSD|27848569
59
EX NO:12
Perform DAX calculations
DATE :
AIM:
PROCEDURE:
Step 2 : Go to home menu , select get data and then choose excel worksheet
Step 3 : Select your file to load into Power Bi application and press load button
Step 4 : Now the file is loaded and now click report view in the left panel
Step 5: Go to data panel and right click on data file and choose new measure
Step 6 : Type the formula for new measure and click the new measure “ was added
Step 7 : Drag the corresponding various types of visualization in workspace.
Step 8 : Save the file in desired location
Step 9 : Close the Power BI Desktop application
lOM oARcPSD|27848569
60
EX NO:12
Perform DAX calculations
DATE :
1. Select on
this new
measure
lOM oARcPSD|27848569
61
2. Data
displayed in
visualization
1. Select on
this new
measure
62
lOM oARcPSD|27848569
63
OUTPUT:
RESULT:
The perform DAX calculations were performed successfully using Power BI Desktop and
displayed desired output in neat format.
lOM oARcPSD|27848569
64
EX NO:13
DESIGN A REPORT
DATE :
AIM:
PROCEDURE:
Step 2 : Go to home menu , select get data and then choose excel worksheet
Step 3 : Select your file to load into Power Bi application and press load button
Step 4 : Now the file is loaded and now click report view in the left panel
Step 5: Go to data panel and right click on data file and choose new measure
Step 6 : Type the formula for new measure and click the new measure “ was added
Step 7 : Select clustered column chat and copy the visualization in workspace.
Step 8 : Change to decomposition tree visualization in workspace.
Step 9 : Explore the data in various forms for select filed and
Save the file in desired location
Step 10 : Close the Power BI Desktop application
lOM oARcPSD|27848569
65
Choose this
visualization
Choose two
measures
visualization
lOM oARcPSD|27848569
66
67
OUTPUT:
RESULT:
The report was created successfully using Power BI Desktop and displayed desired output
in neat format.
lOM oARcPSD|27848569
68
EX NO:14
CREATION OF A DASHBOARD AND PERFORM
DATA ANALYSIS
DATE :
AIM:
PROCEDURE:
Step 2 : Go to home menu , select get data and then choose excel worksheet
Step 3 : Select your file to load into Power Bi application and press load button
Step 4 : Now the file is loaded and now click report view in the left panel
Step 5: Go to data panel and right click on data file and choose team filed and
slicer visualization
Step 6 : Now team wise slicer was displayed. Next copy the visualization and
changeto card visualization
Step 7 : Now copy the visualization and change to gauge visualization
Step 8 : Next copy the visualization and change to donut visualization and drag
gender field and change value filed as count of gender
Step 9 : Now change and display the visualization as per team wise
Step 10 : Save the file in desired location
Step 11 : Close the Power BI Desktop application
lOM oARcPSD|27848569
69
2.Team
visualization 1.Choose Team
lOM oARcPSD|27848569
70
Choose
the count
lOM oARcPSD|27848569
71
1 .Drag
attendance and
the count
lOM oARcPSD|27848569
72
lOM oARcPSD|27848569
73
lOM oARcPSD|27848569
74
lOM oARcPSD|27848569
75
1 .Drag gender
and the count
lOM oARcPSD|27848569
76
OUTPUT:
RESULT:
The dashboard was created and data analysis was performed successfully using Power BI
Desktop and displayed desired output in neat format.
lOM oARcPSD|27848569
77
EX NO:15
Presentation of a case study - Campus Recruitment Analysis
DATE :
AIM:
To Presentation of a case study for Campus Recruitment Analysis using Power BI
Desktop
The Challenge
Campus Placements/ Campus Recruitment drives are conducted in various educational
institutes for providing job opportunities to the students who are pursuing their particular
academic courses.
As much as it is important to the students, it is also important to the institute as it gives
a chance to contemplate about the process. This data includes students from various
colleges.
The Solution
What every management team wants to know:
78
OUTPUT:
lOM oARcPSD|27848569
79
RESULT:
The Presentation of a case study for Campus Recruitment Analysis was performed
successfully using Power BI Desktop and displayed desired output in neat format.