Lab Record
Lab Record
DATE:
AIM
To understand and perform descriptive statistics using MS-Excel
PROCEDURE:-
1. SUM
Formula: =SUM(A1:A5)
The SUM formula does exactly what you would expect. It allows you to add 2 or more
numbers together. You can use cell references as well in this formula.
2. AVERAGE
The Excel AVERAGE function does exactly what its name suggests, i.e., finds an average,
or arithmetic mean, of numbers. Its syntax is like SUM's:
=AVERAGE (A1:A5)
3. COUNT
Formula: =COUNT(A1:A5)
The count formula counts the number of cells in a range that have numbers in them.This
formula only works with numbers though , It only counts the cells where there are numbers.
4. COUNTA
Formula: =COUNTA(A1:A5)
Counts the number of non-empty cells in a range. It will count cells that have numbers
and/or any other characters in them. The COUNTA Formula works with all data types. It
counts the number of non-empty cells no matter the data type.
5. SUMIF, COUNTIF, AVERAGEIF
These formulas all do their respective functions (SUM, COUNT, AVERAGE) IF the criteria
are met. There are also the formulas: SUMIFS, COUNTIFS, AVERAGEIFS where they will
do their respective functions based on multiple criteria you give the formula.
STANDARD DEVIATION
To calculate the average number of cells that contain numbers, use the STDEV function.
STDEV.P is for population standard deviation and STDEV.S for sample standard deviation.
RESULT
AIM
To analyze frequency distribution using MS-Excel
PROCEDURE
1. First, enter the bin numbers (upper levels) in the range C4:C8.
2. Select the range D4:D9 (extra cell), enter the FREQUENCY function (without the curly
braces) and finish by pressing CTRL + SHIFT + ENTER.
3. Hide the column with the bin numbers (upper levels) and insert a column with proper bin
labels.
4. You can also use the Analysis Toolpak to create a histogram.
5. Change the bin numbers. Select the range D4:D9 (no extra cell), enter the FREQUENCY
function shown below (without the curly braces) and finish by pressing CTRL + SHIFT +
ENTER.
RESULT
Analyzing of frequency distribution is done successfully.
AIM
To understand and perform basic string functions using MS-Excel
PROCEDURE:
Procedure:
Step 2: Enter the following formula =CONCATENATE(B4," ",C4) in the Cell D6 and Press
Enter
FIND
Scenario: Find the text “the” in Within the Column using FIND Function
There are 2 strings with the text “the” in the Within Column. One with lower case and
another with T letter as capital
Procedure:
Step 1: Enter the following formula in the Cell D7 and Press Enter=FIND(B7,C7)
Note: Start number parameter is optional and defaults to 1. The value 12 is returned which is
the position of the string “the” in the text C7
REPLACE
Scenario: Replace the text “the” with the “My” text using REPLACE Function
Note: - There are 2 strings with the text “the” in the Within Column. One with lower case and
another with T letter as capital
Procedure:
Step 1: Enter the following formula in the Cell D7 and Press Enter
=REPLACE(C5,1,3,B5)
The above formula will replace the first “The” with “My” text because starting number as we
mentioned in the formula
SUBSTITUTE
Formatting the address (Substituting the comma with new line character) using
SUBSTITUTE Function
=SUBSTITUTE(B7,",", CHAR(10))
The Commas are removed and substituted with new line character using Char(10) Function
EXACT
Check whether Text1 and Text2 are equal. If equal, return TRUE. If not equal, return FALSE
Procedure:
VLOOKUP:
If you want to find the April Sales for the particular product, we can use vlookup function
3. Make sure that your dataset range and formula range must be same
Procedure:
Step 1: Type the Column Name “Product Name” in Cell L5 and Column Name “April” in
Cell M5
Step 2: Enter the following formula in the Cell M6 and Press Enter
=VLOOKUP(L6,$C$3:$I$9,5,FALSE)
Step 3: If you enter Product1 in Cell L6, Excel will calculate the corresponding April Sales
for that product
Step 4: If you change the product name in cell L6 (Eg: Product3 or Product5), the
corresponding April Sales values ($14.00 or $402.00) is searched using vlookup formula
HLOOKUP
If you want to find the April Sales for the particular product, we can use hlookup function
3. Make sure that your dataset range and formula range must be same
Procedure:
Step 1: Type the Column Name “Product Name” in Cell L5 and Column Name “April” in
Cell L6
Step 2: Enter the following formula in the Cell M6 and Press Enter
=HLOOKUP(M5,$C$5:$I$11,5,FALSE)
Step 3: If you enter Product1 in Cell M5, Excel will calculate the corresponding April Sales
for that product
Step 4: If you change the product name in cell M5 (Eg: Product3 or Product5), the
corresponding April Sales values ($14.00 or $402.00) is searched using hlookup formula.
RESULT
Procedure
1. The sample variance is calculated in Excel using the worksheet function VAR. The
population variance is calculated in Excel using the function VARP.
2. In Excel 2010/2013 the alternative forms of these functions are VAR.S and VAR.P.
3. To calculate variance for sample, the formula is =VAR.S (A3:A8)
4. To calculate variance for population, the formula is=VAR.P (A3:A8)
Result
Measures of variability is done successfully.
EX NO:5 MEASURES OF ASSOCIATION BETWEEN TWO VARIABLES
DATE:
Aim
To compute measures of association between two variables using Ms-Excel.
Procedure
1. Measures of association between two variables can be calculated through Scatter Plot,
Covariance and Correlation
2.To Insert Scatter plot for the given data go to insert menu and click scatter chart after
selecting the data.
3.To compute Covariance, COVARIANCE.S function will be used along with arrays. For the
given data the formula will be =COVARIANCE.S(A4:A17,B4:B17)as the data is presented
in Column A and B from 4th row to 17th row.
4. To compute Correlation , CORREL function will be used. For the given data the formula
will be= CORREL((A4:A17,B4:B17)
Result
Thus measures of association between two variables is computed successfully.