0% found this document useful (0 votes)
8 views

Practical 4,5 Word

The document outlines two practical experiments focused on fitting regression lines to given data sets using Excel. The first experiment involves fitting a straight line to a set of X and Y values, while the second experiment calculates two lines of regression and estimates X for a given Y value. Both experiments utilize Excel's Data Analysis tools for regression analysis and plotting best fit lines.

Uploaded by

2133108
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Practical 4,5 Word

The document outlines two practical experiments focused on fitting regression lines to given data sets using Excel. The first experiment involves fitting a straight line to a set of X and Y values, while the second experiment calculates two lines of regression and estimates X for a given Y value. Both experiments utilize Excel's Data Analysis tools for regression analysis and plotting best fit lines.

Uploaded by

2133108
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

PRACTICAL-4

AIM:

To fit a straight line to the given data

EXPERIMENT:

If X and Y are two variables

X 1 3 5 7 9 11 13 15 17
Y 10 15 20 27 31 35 30 35 40

Fit a line y=ax+b to the given data.

EXCEL COMMANDS/FUNCTIONS:

For plotting the best fit,

 Select the Data Analysis tab in Insert .


 Select Regression.
 For the regression of Y on X, select data range of Y in Input Y range and data
range of X in Input X range
 Select Labels and Line fit plots.
 Select a cell for obtaining the output values.
 Select OK to obtain the summary output.
 Plot a line graph for the given data.

THEORY:

Regression is a method to determine the statistical relationship between a


dependent variable and one or more independent variables.

The change in dependent variable is associated with the change in the


independent variables.

Using data analysis tool, regression and best fit plot can be obtained.
RESULT:
Best fit plot of the given data is obtained using data analysis tool and its summary
output is obtained.
PRACTICAL-5
AIM: To obtain the equation of two lines of regression for following data and also
obtain the estimate the X for a given value of Y.

EXPERIMENT: If X and Y are two variables

X 65 66 67 67 68 69 70 72
Y 67 68 65 68 72 72 69 71

Obtain the equation of two lines of regression for following data and also obtain
the estimate the X for Y=70.

EXCEL COMMANDS/FUNCTIONS:

i)INDEX (array,row number,column number):

The INDEX function returns a value or the reference to a value from within a
table or range.

ii) MATCH (lookupvalue, lookup array, match type):

The MATCH function searches for a specified item in a range of cells, and then
returns the relative position of that item in the range

iii) MAX(number1, number2,……):

The MAX function returns the largest numeric value in the data provided.

iv) AVERAGE(number1, number2,…):

Mean of the given data range

v) STDEV.P(number1, number2,…):

Standard Deviation of the given data range

vi) COVARIANCE.P(array 1,array):

Covariance of between the data.


For plotting the best fit,

 Select the Data Analysis tab in Insert .


 Select Regression.
 For the regression of Y on X, select data range of Y in Input Y range and data
range of X in Input X range
 Select Labels and Line fit plots.
 Select a cell for obtaining the output values.
 Select OK to obtain the summary output.
 Plot a line graph for the given data.

THEORY:

Regression is a method to determine the statistical relationship between a


dependent variable and one or more independent variables.

The change in dependent variable is associated with the change in the


independent variables.

REGRESSION OF Y ON X:
σy
Yi- Y= r σ (Xi- X)
x

REGRESSION OF X ON Y:

σX
(Xi- X)= r σ (Yi- Y)
Y

RESULT:

 REGRESSION OF Y ON X:
0.6667 Xi= 23.6644

 REGRESSION OF X ON Y:
Xi- 0.545455 Yi= 30.363605

 When Y=70, we obtain


Xi= 68.54546

You might also like