SlideShare a Scribd company logo
1 of 30
Download to read offline
KNOWLEDGE FOR THE BENEFIT OF HUMANITYKNOWLEDGE FOR THE BENEFIT OF HUMANITY
BIOSTATISTICS (HFS3283)
REGRESSION
Dr.Dr. MohdMohd RazifRazif ShahrilShahril
School of Nutrition & DieteticsSchool of Nutrition & Dietetics
Faculty of Health SciencesFaculty of Health Sciences
UniversitiUniversiti SultanSultan ZainalZainal AbidinAbidin
1
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Topic Learning Outcomes
At the end of this lecture, students should be able to;
• identify types of regression analysis and their use.
• explain assumptions to be met when using Simple Linear
Regression.
• perform Simple Linear Regression analysis using SPSS.
• explain how to interpret the SPSS outputs from Simple
Linear Regression analysis.
2
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Regression
• Regression analysis is the estimation of linear
relationship between a dependent variable and one or
more independent variables or covariates
• Regression is used to predict the value of the dependent
variable when value of independent variable(s) known
• Does not imply causality
• Regression analysis requires interval and ratio-level
data.
3
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Scatter Plot
• To see if your data fits
the models of regression,
it is wise to conduct a
scatter plot analysis.
• The reason?
– Regression analysis
assumes a linear
relationship. If you have
a curvilinear relationship
or no relationship,
regression analysis is of
little use.
4
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Regression line
• The best straight line
description of the plotted
points
• Regression line is used to
describe the association
between the variables.
5
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Beta (β) regression coefficient
• Predicts the variation of dependent variable by
changing one unit of explanatory (independent)
variable.
6Sleeping (hours)
Examscores
0 2 4 6 8
Y = a + βx
Regression coefficientRegression coefficient
(change in Y when X increases by 1)
InterceptIntercept
(value of Y when X=0)
a{
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Coefficient of determination, R2
• R2 represents how much
proportion of the variation
of dependent variable
explained by the
independent variable.
– R2 = 1, indicates that
the regression line
perfectly fits the data
– R2 = 0, indicates that
the line does not fit the
data at all.
7
R2
=0.75
Only 75%
of Y
changes
explained
by X.
YChanges
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Types of regression analysis
• Simple Linear Regression
– 1 numerical variable (dependent) vs. 1 numerical variable
(independent)
• Multiple Linear Regression
– 1 numerical variable (dependent) vs. more than 1 numerical
variable (independent)
• Multivariable Linear Regression
– 1 numerical variable (dependent) vs. more than 1 numerical or
categorical variables (independent)
• Multivariate Linear Regression
– More than 1 numerical or categorical variables (dependent) vs.
more than 1 numerical or categorical variables (independent)
• Logistics Regression
– 1 categorical variable (dependent) vs. more than 1 numerical or
categorical variables (independent)
8
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Research Q’s and Hypothesis
Example;
• Research Question
– Is sleeping hours a predicting factor of exam scores?
• Null Hypothesis (Ho: β = 0)
– There is no linear relationship between the sleeping
hours and exam scores
• Alternate Hypothesis (Ha: β ≠ 0)
– There is a significant linear relationship between the
sleeping hours and exam scores
9
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions
• The data is drawn from a random sample of
population.
• The data is independent to each other.
• The relationship between two variables must be
linear.
• There is normal distribution of y at any point of
x.
• There is equal variance of y at any point of x.
10
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions 3 - Linearity
11
11
22
33
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions 3 – Linearity (cont.)
12
44
55
66
77
Put the independent variablePut the independent variable
into “X Axis” box
Put the dependent variable
into “Y Axis” box
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions 3 – Linearity (cont.)
To add regression line;To add regression line;
Double click on the plots
88
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions 3 – Linearity (cont.)
99
The relationship between twoThe relationship between two
variables is linear
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions 4 – Normal distribution
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions 4 – Normal distribution (cont.)
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions 5 – Equal variance
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions 5 – Equal variance (cont.)
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Assumptions 5 – Equal variance (cont.)
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Simple Linear Regression in SPSS
11
22
33
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Simple Linear Regression in SPSS
44
55
Put the independent variablePut the independent variable
into “X Axis” box
Put the dependent variable
into “Y Axis” box
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Simple Linear Regression in SPSS
66
88
77
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Simple Linear Regression in SPSS
99
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
SPSS Output
11
• The table demonstrates the method used in this data analysis.
•
• The table demonstrates the method used in this data analysis.
• No variable selection was carried out.
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
SPSS Output
22
The ‘Model Summary’ table shows the
•
•
•
•
•
The ‘Model Summary’ table shows the
• Correlation coefficient (R)
• Coefficient of determination (R2)
• The correlation coefficient (r) is 0.463 and thus there is fair
positive linear relationship between the two variable.
• The coefficient of determination (r2) is 0.214.
• Thus 21.4% of variation of exam scores is explained by sleeping
hours.
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
SPSS Output
33
The ANOVA table explicates the p value of the relationship .The ANOVA table explicates the p value of the relationship .
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
SPSS Output
44
The coefficients table shows
•
•
•
The coefficients table shows
• the slope of the line (β),
• the intercept at y axis (constant),
• the p value of the relationship.
Y = a + β x
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
SPSS Output Interpretation
• The slope of the regression line (β) is 3.456 with y axis
intercept at 39.151.
• Increase 1 hours of sleeping hours will increase
3.456 exam scores.
• The regression equation:
Exam scores = 39.151 + 3.456 (sleeping hours)
• The p value is < 0.05, therefore reject null hypothesis.
• There is a significant linear relationship between
sleeping hours and exam scores (p<0.001).
• Sleeping hours is a significant predicting factor for
exam scores.
28
S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N
Results Presentation
29
β (95% CI) t statistics P value* R2
Sleeping hours 3.456 (3.166, 3.746) 23.354 < 0.001 0.214
Table: Relationship between sleeping hours and exam scores
*Simple Linear Regression
There is a significant linear
between sleeping hours
observed that an of
There is a significant linear
relationship between sleeping hours
and exam scores (p<0.001). It is
observed that an Increase 1 hours of
sleeping hours will increase 3.456
exam scores. Sleeping hours is a
significant predicting factor for
exam scores.
Thank YouThank You
30

More Related Content

What's hot

Exploratory Data Analysis
Exploratory Data AnalysisExploratory Data Analysis
Exploratory Data AnalysisUmair Shafique
 
Spearman Rank Correlation - Thiyagu
Spearman Rank Correlation - ThiyaguSpearman Rank Correlation - Thiyagu
Spearman Rank Correlation - ThiyaguThiyagu K
 
Cross sectional vs Longitudinal Study
Cross sectional vs Longitudinal StudyCross sectional vs Longitudinal Study
Cross sectional vs Longitudinal StudySahadev Tomar
 
Correlation in statistics
Correlation in statisticsCorrelation in statistics
Correlation in statisticsNadeem Uddin
 
6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact Test6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact TestRazif Shahril
 
Regression analysis
Regression analysisRegression analysis
Regression analysisRavi shankar
 
Karl pearson's coefficient of correlation (1)
Karl pearson's coefficient of correlation (1)Karl pearson's coefficient of correlation (1)
Karl pearson's coefficient of correlation (1)teenathankachen1993
 
What is a partial correlation?
What is a partial correlation?What is a partial correlation?
What is a partial correlation?Ken Plummer
 
Measurement scales
Measurement scalesMeasurement scales
Measurement scalesUsra Hasan
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regressionElkana Rorio
 
Introduction to Statistics - Basic concepts
Introduction to Statistics - Basic conceptsIntroduction to Statistics - Basic concepts
Introduction to Statistics - Basic conceptsDocIbrahimAbdelmonaem
 
Scatter plots
Scatter plotsScatter plots
Scatter plotsswartzje
 
Linear Regression Using SPSS
Linear Regression Using SPSSLinear Regression Using SPSS
Linear Regression Using SPSSDr Athar Khan
 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionKaushik Rajan
 

What's hot (20)

Exploratory Data Analysis
Exploratory Data AnalysisExploratory Data Analysis
Exploratory Data Analysis
 
Regression
RegressionRegression
Regression
 
Spearman Rank Correlation - Thiyagu
Spearman Rank Correlation - ThiyaguSpearman Rank Correlation - Thiyagu
Spearman Rank Correlation - Thiyagu
 
Cross sectional vs Longitudinal Study
Cross sectional vs Longitudinal StudyCross sectional vs Longitudinal Study
Cross sectional vs Longitudinal Study
 
Measure of Association
Measure of AssociationMeasure of Association
Measure of Association
 
Statistical analysis
Statistical  analysisStatistical  analysis
Statistical analysis
 
Correlation in statistics
Correlation in statisticsCorrelation in statistics
Correlation in statistics
 
6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact Test6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact Test
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Karl pearson's coefficient of correlation (1)
Karl pearson's coefficient of correlation (1)Karl pearson's coefficient of correlation (1)
Karl pearson's coefficient of correlation (1)
 
What is a partial correlation?
What is a partial correlation?What is a partial correlation?
What is a partial correlation?
 
Measurement scales
Measurement scalesMeasurement scales
Measurement scales
 
Correlation and partial correlation
Correlation and partial correlationCorrelation and partial correlation
Correlation and partial correlation
 
Correlation Analysis
Correlation AnalysisCorrelation Analysis
Correlation Analysis
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regression
 
Introduction to Statistics - Basic concepts
Introduction to Statistics - Basic conceptsIntroduction to Statistics - Basic concepts
Introduction to Statistics - Basic concepts
 
Scatter plots
Scatter plotsScatter plots
Scatter plots
 
Linear Regression Using SPSS
Linear Regression Using SPSSLinear Regression Using SPSS
Linear Regression Using SPSS
 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic Regression
 
Z scores
Z scoresZ scores
Z scores
 

Similar to 9. Regression

2. Inferential statistics
2. Inferential statistics2. Inferential statistics
2. Inferential statisticsRazif Shahril
 
C6-CHI-SQUARE-OF-INDEPENDENCE.pdf
C6-CHI-SQUARE-OF-INDEPENDENCE.pdfC6-CHI-SQUARE-OF-INDEPENDENCE.pdf
C6-CHI-SQUARE-OF-INDEPENDENCE.pdfEveGraceAlisbo
 
Introduction to Statistical Methods
Introduction to Statistical MethodsIntroduction to Statistical Methods
Introduction to Statistical MethodsMichael770443
 
5. Identifying variables and constructing hypothesis
5. Identifying variables and constructing hypothesis5. Identifying variables and constructing hypothesis
5. Identifying variables and constructing hypothesisRazif Shahril
 
Research methodology and iostatistics ppt
Research methodology and iostatistics pptResearch methodology and iostatistics ppt
Research methodology and iostatistics pptNikhat Mohammadi
 
Normal distribution
Normal distributionNormal distribution
Normal distributionCamilleJoy3
 
RESEARCH METHODOLOGY - 2nd year ppt
RESEARCH METHODOLOGY - 2nd year pptRESEARCH METHODOLOGY - 2nd year ppt
RESEARCH METHODOLOGY - 2nd year pptAayushi Chhabra
 
2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample size2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample sizesalummkata1
 
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)마이캠퍼스
 
ChandanChakrabarty_1.pdf
ChandanChakrabarty_1.pdfChandanChakrabarty_1.pdf
ChandanChakrabarty_1.pdfDikshathawait
 
Lec1.regression
Lec1.regressionLec1.regression
Lec1.regressionAftab Alam
 
Chapter 3 Ken Black 2.ppt
Chapter 3 Ken Black 2.pptChapter 3 Ken Black 2.ppt
Chapter 3 Ken Black 2.pptNurinaSWGotami
 

Similar to 9. Regression (20)

8. Correlation
8. Correlation8. Correlation
8. Correlation
 
2. Inferential statistics
2. Inferential statistics2. Inferential statistics
2. Inferential statistics
 
C6-CHI-SQUARE-OF-INDEPENDENCE.pdf
C6-CHI-SQUARE-OF-INDEPENDENCE.pdfC6-CHI-SQUARE-OF-INDEPENDENCE.pdf
C6-CHI-SQUARE-OF-INDEPENDENCE.pdf
 
Introduction to Statistical Methods
Introduction to Statistical MethodsIntroduction to Statistical Methods
Introduction to Statistical Methods
 
5. Identifying variables and constructing hypothesis
5. Identifying variables and constructing hypothesis5. Identifying variables and constructing hypothesis
5. Identifying variables and constructing hypothesis
 
Research methodology and iostatistics ppt
Research methodology and iostatistics pptResearch methodology and iostatistics ppt
Research methodology and iostatistics ppt
 
Shreyansh (17526001)
Shreyansh (17526001)Shreyansh (17526001)
Shreyansh (17526001)
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
Linear Regression
Linear RegressionLinear Regression
Linear Regression
 
RESEARCH METHODOLOGY - 2nd year ppt
RESEARCH METHODOLOGY - 2nd year pptRESEARCH METHODOLOGY - 2nd year ppt
RESEARCH METHODOLOGY - 2nd year ppt
 
Classification
ClassificationClassification
Classification
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample size2.0.statistical methods and determination of sample size
2.0.statistical methods and determination of sample size
 
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)
 
ChandanChakrabarty_1.pdf
ChandanChakrabarty_1.pdfChandanChakrabarty_1.pdf
ChandanChakrabarty_1.pdf
 
Chapter34
Chapter34Chapter34
Chapter34
 
Lec1.regression
Lec1.regressionLec1.regression
Lec1.regression
 
Chi square test
Chi square test Chi square test
Chi square test
 
Chapter 3 Ken Black 2.ppt
Chapter 3 Ken Black 2.pptChapter 3 Ken Black 2.ppt
Chapter 3 Ken Black 2.ppt
 

More from Razif Shahril

1. Introduction to biostatistics
1. Introduction to biostatistics1. Introduction to biostatistics
1. Introduction to biostatisticsRazif Shahril
 
11. Processing and displaying data
11. Processing and displaying data11. Processing and displaying data
11. Processing and displaying dataRazif Shahril
 
9. Selecting a sample
9. Selecting a sample9. Selecting a sample
9. Selecting a sampleRazif Shahril
 
8. validity and reliability of research instruments
8. validity and reliability of research instruments8. validity and reliability of research instruments
8. validity and reliability of research instrumentsRazif Shahril
 
8. Preparing the report
8. Preparing the report8. Preparing the report
8. Preparing the reportRazif Shahril
 
7. Selecting a data collection method
7. Selecting a data collection method7. Selecting a data collection method
7. Selecting a data collection methodRazif Shahril
 
6. Selecting a study design
6. Selecting a study design6. Selecting a study design
6. Selecting a study designRazif Shahril
 
4. Formulating research problems
4. Formulating research problems4. Formulating research problems
4. Formulating research problemsRazif Shahril
 
3. Reviewing the literature
3. Reviewing the literature3. Reviewing the literature
3. Reviewing the literatureRazif Shahril
 
1. Prelude + Introduction to Research Methodology
1. Prelude +  Introduction to Research Methodology1. Prelude +  Introduction to Research Methodology
1. Prelude + Introduction to Research MethodologyRazif Shahril
 
6. Randomised controlled trial
6. Randomised controlled trial6. Randomised controlled trial
6. Randomised controlled trialRazif Shahril
 
2. Case study and case series
2. Case study and case series2. Case study and case series
2. Case study and case seriesRazif Shahril
 
1. Introduction to epidemiological study designs
1. Introduction to epidemiological study designs1. Introduction to epidemiological study designs
1. Introduction to epidemiological study designsRazif Shahril
 
5. Nutrition in emergencies
5. Nutrition in emergencies5. Nutrition in emergencies
5. Nutrition in emergenciesRazif Shahril
 

More from Razif Shahril (20)

1. Introduction to biostatistics
1. Introduction to biostatistics1. Introduction to biostatistics
1. Introduction to biostatistics
 
10. Ethical issues
10. Ethical issues10. Ethical issues
10. Ethical issues
 
11. Processing and displaying data
11. Processing and displaying data11. Processing and displaying data
11. Processing and displaying data
 
9. Selecting a sample
9. Selecting a sample9. Selecting a sample
9. Selecting a sample
 
8. validity and reliability of research instruments
8. validity and reliability of research instruments8. validity and reliability of research instruments
8. validity and reliability of research instruments
 
8. Preparing the report
8. Preparing the report8. Preparing the report
8. Preparing the report
 
7. Selecting a data collection method
7. Selecting a data collection method7. Selecting a data collection method
7. Selecting a data collection method
 
6. Selecting a study design
6. Selecting a study design6. Selecting a study design
6. Selecting a study design
 
4. Formulating research problems
4. Formulating research problems4. Formulating research problems
4. Formulating research problems
 
3. Reviewing the literature
3. Reviewing the literature3. Reviewing the literature
3. Reviewing the literature
 
1. Prelude + Introduction to Research Methodology
1. Prelude +  Introduction to Research Methodology1. Prelude +  Introduction to Research Methodology
1. Prelude + Introduction to Research Methodology
 
5. Case control
5. Case control5. Case control
5. Case control
 
6. Randomised controlled trial
6. Randomised controlled trial6. Randomised controlled trial
6. Randomised controlled trial
 
4. Cohort
4. Cohort4. Cohort
4. Cohort
 
3. Cross sectional
3. Cross sectional3. Cross sectional
3. Cross sectional
 
2. Case study and case series
2. Case study and case series2. Case study and case series
2. Case study and case series
 
1. Introduction to epidemiological study designs
1. Introduction to epidemiological study designs1. Introduction to epidemiological study designs
1. Introduction to epidemiological study designs
 
Scientific writing
Scientific writingScientific writing
Scientific writing
 
6. Glycemic index
6. Glycemic index6. Glycemic index
6. Glycemic index
 
5. Nutrition in emergencies
5. Nutrition in emergencies5. Nutrition in emergencies
5. Nutrition in emergencies
 

Recently uploaded

Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% SafeBangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safenarwatsonia7
 
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls AvailableVip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls AvailableNehru place Escorts
 
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...Miss joya
 
Call Girls Hebbal Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hebbal Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hebbal Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hebbal Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment BookingCall Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment Bookingnarwatsonia7
 
College Call Girls Pune Mira 9907093804 Short 1500 Night 6000 Best call girls...
College Call Girls Pune Mira 9907093804 Short 1500 Night 6000 Best call girls...College Call Girls Pune Mira 9907093804 Short 1500 Night 6000 Best call girls...
College Call Girls Pune Mira 9907093804 Short 1500 Night 6000 Best call girls...Miss joya
 
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...narwatsonia7
 
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call NowKolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call NowNehru place Escorts
 
Russian Call Girl Brookfield - 7001305949 Escorts Service 50% Off with Cash O...
Russian Call Girl Brookfield - 7001305949 Escorts Service 50% Off with Cash O...Russian Call Girl Brookfield - 7001305949 Escorts Service 50% Off with Cash O...
Russian Call Girl Brookfield - 7001305949 Escorts Service 50% Off with Cash O...narwatsonia7
 
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Ahmedabad Call Girls CG Road 🔝9907093804 Short 1500 💋 Night 6000
Ahmedabad Call Girls CG Road 🔝9907093804  Short 1500  💋 Night 6000Ahmedabad Call Girls CG Road 🔝9907093804  Short 1500  💋 Night 6000
Ahmedabad Call Girls CG Road 🔝9907093804 Short 1500 💋 Night 6000aliya bhat
 
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service JaipurHigh Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipurparulsinha
 
Call Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service SuratCall Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service Suratnarwatsonia7
 
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...narwatsonia7
 
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...narwatsonia7
 

Recently uploaded (20)

Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% SafeBangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
Bangalore Call Girls Majestic 📞 9907093804 High Profile Service 100% Safe
 
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls AvailableVip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
Vip Call Girls Anna Salai Chennai 👉 8250192130 ❣️💯 Top Class Girls Available
 
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
 
sauth delhi call girls in Bhajanpura 🔝 9953056974 🔝 escort Service
sauth delhi call girls in Bhajanpura 🔝 9953056974 🔝 escort Servicesauth delhi call girls in Bhajanpura 🔝 9953056974 🔝 escort Service
sauth delhi call girls in Bhajanpura 🔝 9953056974 🔝 escort Service
 
Call Girls Hebbal Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hebbal Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hebbal Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hebbal Just Call 7001305949 Top Class Call Girl Service Available
 
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
 
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
 
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment BookingCall Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
Call Girl Koramangala | 7001305949 At Low Cost Cash Payment Booking
 
College Call Girls Pune Mira 9907093804 Short 1500 Night 6000 Best call girls...
College Call Girls Pune Mira 9907093804 Short 1500 Night 6000 Best call girls...College Call Girls Pune Mira 9907093804 Short 1500 Night 6000 Best call girls...
College Call Girls Pune Mira 9907093804 Short 1500 Night 6000 Best call girls...
 
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
 
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
 
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call NowKolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
Kolkata Call Girls Services 9907093804 @24x7 High Class Babes Here Call Now
 
Russian Call Girl Brookfield - 7001305949 Escorts Service 50% Off with Cash O...
Russian Call Girl Brookfield - 7001305949 Escorts Service 50% Off with Cash O...Russian Call Girl Brookfield - 7001305949 Escorts Service 50% Off with Cash O...
Russian Call Girl Brookfield - 7001305949 Escorts Service 50% Off with Cash O...
 
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hosur Just Call 7001305949 Top Class Call Girl Service Available
 
Ahmedabad Call Girls CG Road 🔝9907093804 Short 1500 💋 Night 6000
Ahmedabad Call Girls CG Road 🔝9907093804  Short 1500  💋 Night 6000Ahmedabad Call Girls CG Road 🔝9907093804  Short 1500  💋 Night 6000
Ahmedabad Call Girls CG Road 🔝9907093804 Short 1500 💋 Night 6000
 
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service JaipurHigh Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
High Profile Call Girls Jaipur Vani 8445551418 Independent Escort Service Jaipur
 
Call Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service SuratCall Girl Surat Madhuri 7001305949 Independent Escort Service Surat
Call Girl Surat Madhuri 7001305949 Independent Escort Service Surat
 
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
Call Girls Frazer Town Just Call 7001305949 Top Class Call Girl Service Avail...
 
Escort Service Call Girls In Sarita Vihar,, 99530°56974 Delhi NCR
Escort Service Call Girls In Sarita Vihar,, 99530°56974 Delhi NCREscort Service Call Girls In Sarita Vihar,, 99530°56974 Delhi NCR
Escort Service Call Girls In Sarita Vihar,, 99530°56974 Delhi NCR
 
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Kanakapura Road Just Call 7001305949 Top Class Call Girl Service A...
 

9. Regression

  • 1. KNOWLEDGE FOR THE BENEFIT OF HUMANITYKNOWLEDGE FOR THE BENEFIT OF HUMANITY BIOSTATISTICS (HFS3283) REGRESSION Dr.Dr. MohdMohd RazifRazif ShahrilShahril School of Nutrition & DieteticsSchool of Nutrition & Dietetics Faculty of Health SciencesFaculty of Health Sciences UniversitiUniversiti SultanSultan ZainalZainal AbidinAbidin 1
  • 2. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Topic Learning Outcomes At the end of this lecture, students should be able to; • identify types of regression analysis and their use. • explain assumptions to be met when using Simple Linear Regression. • perform Simple Linear Regression analysis using SPSS. • explain how to interpret the SPSS outputs from Simple Linear Regression analysis. 2
  • 3. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Regression • Regression analysis is the estimation of linear relationship between a dependent variable and one or more independent variables or covariates • Regression is used to predict the value of the dependent variable when value of independent variable(s) known • Does not imply causality • Regression analysis requires interval and ratio-level data. 3
  • 4. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Scatter Plot • To see if your data fits the models of regression, it is wise to conduct a scatter plot analysis. • The reason? – Regression analysis assumes a linear relationship. If you have a curvilinear relationship or no relationship, regression analysis is of little use. 4
  • 5. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Regression line • The best straight line description of the plotted points • Regression line is used to describe the association between the variables. 5
  • 6. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Beta (β) regression coefficient • Predicts the variation of dependent variable by changing one unit of explanatory (independent) variable. 6Sleeping (hours) Examscores 0 2 4 6 8 Y = a + βx Regression coefficientRegression coefficient (change in Y when X increases by 1) InterceptIntercept (value of Y when X=0) a{
  • 7. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Coefficient of determination, R2 • R2 represents how much proportion of the variation of dependent variable explained by the independent variable. – R2 = 1, indicates that the regression line perfectly fits the data – R2 = 0, indicates that the line does not fit the data at all. 7 R2 =0.75 Only 75% of Y changes explained by X. YChanges
  • 8. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Types of regression analysis • Simple Linear Regression – 1 numerical variable (dependent) vs. 1 numerical variable (independent) • Multiple Linear Regression – 1 numerical variable (dependent) vs. more than 1 numerical variable (independent) • Multivariable Linear Regression – 1 numerical variable (dependent) vs. more than 1 numerical or categorical variables (independent) • Multivariate Linear Regression – More than 1 numerical or categorical variables (dependent) vs. more than 1 numerical or categorical variables (independent) • Logistics Regression – 1 categorical variable (dependent) vs. more than 1 numerical or categorical variables (independent) 8
  • 9. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Research Q’s and Hypothesis Example; • Research Question – Is sleeping hours a predicting factor of exam scores? • Null Hypothesis (Ho: β = 0) – There is no linear relationship between the sleeping hours and exam scores • Alternate Hypothesis (Ha: β ≠ 0) – There is a significant linear relationship between the sleeping hours and exam scores 9
  • 10. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions • The data is drawn from a random sample of population. • The data is independent to each other. • The relationship between two variables must be linear. • There is normal distribution of y at any point of x. • There is equal variance of y at any point of x. 10
  • 11. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions 3 - Linearity 11 11 22 33
  • 12. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions 3 – Linearity (cont.) 12 44 55 66 77 Put the independent variablePut the independent variable into “X Axis” box Put the dependent variable into “Y Axis” box
  • 13. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions 3 – Linearity (cont.) To add regression line;To add regression line; Double click on the plots 88
  • 14. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions 3 – Linearity (cont.) 99 The relationship between twoThe relationship between two variables is linear
  • 15. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions 4 – Normal distribution
  • 16. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions 4 – Normal distribution (cont.)
  • 17. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions 5 – Equal variance
  • 18. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions 5 – Equal variance (cont.)
  • 19. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Assumptions 5 – Equal variance (cont.)
  • 20. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Simple Linear Regression in SPSS 11 22 33
  • 21. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Simple Linear Regression in SPSS 44 55 Put the independent variablePut the independent variable into “X Axis” box Put the dependent variable into “Y Axis” box
  • 22. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Simple Linear Regression in SPSS 66 88 77
  • 23. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Simple Linear Regression in SPSS 99
  • 24. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N SPSS Output 11 • The table demonstrates the method used in this data analysis. • • The table demonstrates the method used in this data analysis. • No variable selection was carried out.
  • 25. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N SPSS Output 22 The ‘Model Summary’ table shows the • • • • • The ‘Model Summary’ table shows the • Correlation coefficient (R) • Coefficient of determination (R2) • The correlation coefficient (r) is 0.463 and thus there is fair positive linear relationship between the two variable. • The coefficient of determination (r2) is 0.214. • Thus 21.4% of variation of exam scores is explained by sleeping hours.
  • 26. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N SPSS Output 33 The ANOVA table explicates the p value of the relationship .The ANOVA table explicates the p value of the relationship .
  • 27. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N SPSS Output 44 The coefficients table shows • • • The coefficients table shows • the slope of the line (β), • the intercept at y axis (constant), • the p value of the relationship. Y = a + β x
  • 28. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N SPSS Output Interpretation • The slope of the regression line (β) is 3.456 with y axis intercept at 39.151. • Increase 1 hours of sleeping hours will increase 3.456 exam scores. • The regression equation: Exam scores = 39.151 + 3.456 (sleeping hours) • The p value is < 0.05, therefore reject null hypothesis. • There is a significant linear relationship between sleeping hours and exam scores (p<0.001). • Sleeping hours is a significant predicting factor for exam scores. 28
  • 29. S C H O O L O F N U T R I T I O N A N D D I E T E T I C S • U N I V E R S I T I S U L T A N Z A I N A L A B I D I N Results Presentation 29 β (95% CI) t statistics P value* R2 Sleeping hours 3.456 (3.166, 3.746) 23.354 < 0.001 0.214 Table: Relationship between sleeping hours and exam scores *Simple Linear Regression There is a significant linear between sleeping hours observed that an of There is a significant linear relationship between sleeping hours and exam scores (p<0.001). It is observed that an Increase 1 hours of sleeping hours will increase 3.456 exam scores. Sleeping hours is a significant predicting factor for exam scores.