Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

ALGORITHM DETAILS

Regression Analysis Algorithm:

1. Regression predicts a numerical value.


2. Regression performs operations on a dataset where the target values have been defined
already. And the result can be extended by adding new information.
3. The relations which regression establishes between predictor and target values can make
a pattern. This pattern can be used on other datasets which their target values are not
known.
4. It prepares the input data by using that sensor data. In this model the input data is grouped
into two sets as training data set and testing data set.
5. The training data set is used to train a model and to estimate the unknown coefficients of
the auto regression equation. These coefficients are estimated.
6. The estimated coefficients are used to predict which dieses.

Pseudo Code of Linear Regression-

1. Got a bunch of points in R2, f(x i , yi )g.


2. Want to fit a line y = ax + b that describes the trend.
3. It define a cost function that computes the total squared
error of our predictions w.r.t. observed values yi
J(a, b) = P(axi + b - yi )2 that it want to minimize.
4. See it as a function of a and b: compute both derivatives,
force them equal to zero, and solve for a and b.
5. The coefficients you get give you the minimum squared
error.
6. Can do this for specific points, or in general and find the
formulas.
7. More general version in Rn .
Result

In this below table as we seen different body parameter which is temperature, Pulse
oximetry and BP we take 5 reading here the 1st reading is on normal condition and second
reading is taken after some hard work in this way next two reading take on normal condition and
last reading is taken at the time of sleep

In this way we can predict the dieses of human by linier recreation an this algorithm we
consider this all parameters.

Temperature Pulse oximetry BP


37 72 110
42 91 120
38 75 112
40 80 115
32 70 105

Health care
temp po BP

120 115
110 112
105
91
75 80
72 70

37 42 38 40
32

1 2 3 4 5
1 2 3 4 5

You might also like