SlideShare une entreprise Scribd logo
1  sur  13
Télécharger pour lire hors ligne
Correlation and regression
Correlation
• We are going to examine the linear correlation between two
variables, that is we are looking at how strong a linear relationship
there is between them.
• If there is suitably strong enough relationship between the two
variables ( and there is cause and effect) we can calculate a
“regression line” which is given by:
E[Y/X] =y=α+βx
E(S2)
P(X=x)=p(X=Head)=1/2
• The sample correlation coefficient r is given by:
• r= Sxy/(SxxSyy)1/2
• r is such that -1≤r ≤1
• r is a measure of linear association and does not itself indicate “cause
and effect”
• ρ=corr(X,Y)=cov(X,Y)/(var(X)var(Y))1/2
• The sample correlation coefficient, r, is an estimator of the population
correlation coefficient, ρ.
• r= Sxy/(SxxSyy)1/2
• Sxx=∑(xi- x̄)2= ∑xi
2-n x̄2
• Syy= ∑(Yi- ȳ)2= ∑Yi
2-n ȳ 2
• Sxy= ∑ (xi- x̄) (Yi- ȳ)= ∑xiyi-n x̄ ȳ
• A new computerized ultrasound scanning technique has enabled
doctors to monitor the weight of unborn babies. The table below
shows the estimated weights for one particular foetus at fortnightly
intervals during the pregnancy.
Gestation period
(weeks) x
30 32 34 36 38 40
Estimated foetal
weight (kg) y
1.6 1.7 2.5 2.8 3.2 3.5
• Calculate Sxx,Syy,Sxy for the foetal weights example
• r= Sxy/(SxxSyy)1/2
Coefficient of Determination
• The proportion of the total variability of the responses “explained” by
a model is called the coefficient of determination, denoted, R2.
• The proportion is :
R2 =SSREG/SSTOT= Sxy
2/SxxSyy
R2 can take values between 0% and 100% inclusive.
Goodness of fit
• Partitioning the variability of the responses
• To help understand the “goodness of fit” of the model to the data,
the total variation in the responses, Syy= ∑(Yi- ȳ)2 should be studied.
Some of the variation in the responses can be attributed to the
relationships with x (eg y may be high when x is high, low when x is
low) and some is random variation (unmodellable).
Just how much is attributable – or explained by the model – is a
measure of the goodness of fit of the model.
• We start from an identity involving yi (the observed y value), ȳ (the
overall average of y values) and ŷi(the predicted value of y)
• Yi- ȳ=(Yi-ŷi)+(ŷi- ȳ)
• Squaring and summing both sides of :
• ∑(Yi- ȳ)2= ∑(Yi-ŷi)2+ ∑(ŷi- ȳ)2
• The cross-product term vanishing
• The sum of the left is the “total sum of squares” of the responses, denoted
here SSTOT.
• The second sum of the right is the sum of the squares of the deviations of
the fitted responses from the overall mean. It summarises the variability
accounted for, or “explained by the model”. It is called the regression sum
of squares, denoted here by SSREG
• The first sum on the right is the sum of the squares of the estimated errors
(response-fitted response, generally referred to as residual from the fit). It
summarises the remaining variability, that between the responses and
their fitted values and so unexplained by the model. It is called the residual
sum of squares, denoted by SSRES.
• So:
• SSTOT=SSRES+SSREG
• In this case, (simple linear regression model), note that the value of
the coefficient of determination is the square of the correlation
coefficient for the data.
• r= Sxy/(SxxSyy)1/2
• R2 =SSREG/SSTOT= Sxy
2/SxxSyy=r2
• A sample of ten claims and corresponding payments on settlement
for household policies is taken from the business of an insurance
company.
The amounts, in units of $100, are as follows:
Claims
x
2.10 2.40 2.50 3.20 3.6 3.8 4.1 4.2 4.5 5
Payme
nt y
2.18 2.06 2.54 2.61 3.67 3.25 4.02 3.71 4.38 4.45

Contenu connexe

Similaire à Correlation and regression.pptx

Similaire à Correlation and regression.pptx (20)

Statistics
Statistics Statistics
Statistics
 
MSC III_Research Methodology and Statistics_Inferrential ststistics.pdf
MSC III_Research Methodology and Statistics_Inferrential ststistics.pdfMSC III_Research Methodology and Statistics_Inferrential ststistics.pdf
MSC III_Research Methodology and Statistics_Inferrential ststistics.pdf
 
S2 pb
S2 pbS2 pb
S2 pb
 
Scatterplots - LSRLs - RESIDs
Scatterplots - LSRLs - RESIDsScatterplots - LSRLs - RESIDs
Scatterplots - LSRLs - RESIDs
 
Exploring bivariate data
Exploring bivariate dataExploring bivariate data
Exploring bivariate data
 
Correlation and Regression
Correlation and Regression Correlation and Regression
Correlation and Regression
 
Research Methodology-Chapter 14
Research Methodology-Chapter 14Research Methodology-Chapter 14
Research Methodology-Chapter 14
 
Biostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.pptBiostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.ppt
 
Simple Regression.pptx
Simple Regression.pptxSimple Regression.pptx
Simple Regression.pptx
 
Simple linear regressionn and Correlation
Simple linear regressionn and CorrelationSimple linear regressionn and Correlation
Simple linear regressionn and Correlation
 
regression.pptx
regression.pptxregression.pptx
regression.pptx
 
Linear regression.ppt
Linear regression.pptLinear regression.ppt
Linear regression.ppt
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Sumit presentation
Sumit presentationSumit presentation
Sumit presentation
 
UNIT 4.pptx
UNIT 4.pptxUNIT 4.pptx
UNIT 4.pptx
 
Regression
RegressionRegression
Regression
 
CORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptxCORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptx
 
Correlation
CorrelationCorrelation
Correlation
 
Linear Correlation
Linear Correlation Linear Correlation
Linear Correlation
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 

Plus de Object Automation

RTL DESIGN IN ML WORLD_OBJECT AUTOMATION Inc
RTL DESIGN IN ML WORLD_OBJECT AUTOMATION IncRTL DESIGN IN ML WORLD_OBJECT AUTOMATION Inc
RTL DESIGN IN ML WORLD_OBJECT AUTOMATION IncObject Automation
 
CHIPS Alliance_Object Automation Inc_workshop
CHIPS Alliance_Object Automation Inc_workshopCHIPS Alliance_Object Automation Inc_workshop
CHIPS Alliance_Object Automation Inc_workshopObject Automation
 
RTL Design Methodologies_Object Automation Inc
RTL Design Methodologies_Object Automation IncRTL Design Methodologies_Object Automation Inc
RTL Design Methodologies_Object Automation IncObject Automation
 
High-Level Synthesis for the Design of AI Chips
High-Level Synthesis for the Design of AI ChipsHigh-Level Synthesis for the Design of AI Chips
High-Level Synthesis for the Design of AI ChipsObject Automation
 
AI-Inspired IOT Chiplets and 3D Heterogeneous Integration
AI-Inspired IOT Chiplets and 3D Heterogeneous IntegrationAI-Inspired IOT Chiplets and 3D Heterogeneous Integration
AI-Inspired IOT Chiplets and 3D Heterogeneous IntegrationObject Automation
 
GenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation IncGenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation IncObject Automation
 
CDAC presentation as part of Global AI Festival and Future
CDAC presentation as part of Global AI Festival and FutureCDAC presentation as part of Global AI Festival and Future
CDAC presentation as part of Global AI Festival and FutureObject Automation
 
Global AI Festivla and Future one day event
Global AI Festivla and Future one day eventGlobal AI Festivla and Future one day event
Global AI Festivla and Future one day eventObject Automation
 
Generative AI In Logistics_Object Automation
Generative AI In Logistics_Object AutomationGenerative AI In Logistics_Object Automation
Generative AI In Logistics_Object AutomationObject Automation
 
Gen AI_Object Automation_TechnologyWorkshop
Gen AI_Object Automation_TechnologyWorkshopGen AI_Object Automation_TechnologyWorkshop
Gen AI_Object Automation_TechnologyWorkshopObject Automation
 
Deploying Pretrained Model In Edge IoT Devices.pdf
Deploying Pretrained Model In Edge IoT Devices.pdfDeploying Pretrained Model In Edge IoT Devices.pdf
Deploying Pretrained Model In Edge IoT Devices.pdfObject Automation
 
AI-INSPIRED IOT CHIPLETS AND 3D HETEROGENEOUS INTEGRATION.pdf
AI-INSPIRED IOT CHIPLETS AND 3D HETEROGENEOUS INTEGRATION.pdfAI-INSPIRED IOT CHIPLETS AND 3D HETEROGENEOUS INTEGRATION.pdf
AI-INSPIRED IOT CHIPLETS AND 3D HETEROGENEOUS INTEGRATION.pdfObject Automation
 
5G Edge Computing_Object Automation workshop
5G Edge Computing_Object Automation workshop5G Edge Computing_Object Automation workshop
5G Edge Computing_Object Automation workshopObject Automation
 
Course_Object Automation.pdf
Course_Object Automation.pdfCourse_Object Automation.pdf
Course_Object Automation.pdfObject Automation
 

Plus de Object Automation (20)

RTL DESIGN IN ML WORLD_OBJECT AUTOMATION Inc
RTL DESIGN IN ML WORLD_OBJECT AUTOMATION IncRTL DESIGN IN ML WORLD_OBJECT AUTOMATION Inc
RTL DESIGN IN ML WORLD_OBJECT AUTOMATION Inc
 
CHIPS Alliance_Object Automation Inc_workshop
CHIPS Alliance_Object Automation Inc_workshopCHIPS Alliance_Object Automation Inc_workshop
CHIPS Alliance_Object Automation Inc_workshop
 
RTL Design Methodologies_Object Automation Inc
RTL Design Methodologies_Object Automation IncRTL Design Methodologies_Object Automation Inc
RTL Design Methodologies_Object Automation Inc
 
High-Level Synthesis for the Design of AI Chips
High-Level Synthesis for the Design of AI ChipsHigh-Level Synthesis for the Design of AI Chips
High-Level Synthesis for the Design of AI Chips
 
AI-Inspired IOT Chiplets and 3D Heterogeneous Integration
AI-Inspired IOT Chiplets and 3D Heterogeneous IntegrationAI-Inspired IOT Chiplets and 3D Heterogeneous Integration
AI-Inspired IOT Chiplets and 3D Heterogeneous Integration
 
GenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation IncGenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation Inc
 
CDAC presentation as part of Global AI Festival and Future
CDAC presentation as part of Global AI Festival and FutureCDAC presentation as part of Global AI Festival and Future
CDAC presentation as part of Global AI Festival and Future
 
Global AI Festivla and Future one day event
Global AI Festivla and Future one day eventGlobal AI Festivla and Future one day event
Global AI Festivla and Future one day event
 
Generative AI In Logistics_Object Automation
Generative AI In Logistics_Object AutomationGenerative AI In Logistics_Object Automation
Generative AI In Logistics_Object Automation
 
Gen AI_Object Automation_TechnologyWorkshop
Gen AI_Object Automation_TechnologyWorkshopGen AI_Object Automation_TechnologyWorkshop
Gen AI_Object Automation_TechnologyWorkshop
 
Deploying Pretrained Model In Edge IoT Devices.pdf
Deploying Pretrained Model In Edge IoT Devices.pdfDeploying Pretrained Model In Edge IoT Devices.pdf
Deploying Pretrained Model In Edge IoT Devices.pdf
 
AI-INSPIRED IOT CHIPLETS AND 3D HETEROGENEOUS INTEGRATION.pdf
AI-INSPIRED IOT CHIPLETS AND 3D HETEROGENEOUS INTEGRATION.pdfAI-INSPIRED IOT CHIPLETS AND 3D HETEROGENEOUS INTEGRATION.pdf
AI-INSPIRED IOT CHIPLETS AND 3D HETEROGENEOUS INTEGRATION.pdf
 
5G Edge Computing_Object Automation workshop
5G Edge Computing_Object Automation workshop5G Edge Computing_Object Automation workshop
5G Edge Computing_Object Automation workshop
 
COE AI Lab Universities
COE AI Lab UniversitiesCOE AI Lab Universities
COE AI Lab Universities
 
Bootcamp_AIApps.pdf
Bootcamp_AIApps.pdfBootcamp_AIApps.pdf
Bootcamp_AIApps.pdf
 
Bootcamp_AIApps.pdf
Bootcamp_AIApps.pdfBootcamp_AIApps.pdf
Bootcamp_AIApps.pdf
 
Bootcamp_AIAppsUCSD.pptx
Bootcamp_AIAppsUCSD.pptxBootcamp_AIAppsUCSD.pptx
Bootcamp_AIAppsUCSD.pptx
 
Course_Object Automation.pdf
Course_Object Automation.pdfCourse_Object Automation.pdf
Course_Object Automation.pdf
 
Enterprise AI_New.pdf
Enterprise AI_New.pdfEnterprise AI_New.pdf
Enterprise AI_New.pdf
 
Super AI tools
Super AI toolsSuper AI tools
Super AI tools
 

Dernier

ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdfARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdfTobias Schneck
 
Your Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software TeamsYour Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software TeamsJaydeep Chhasatia
 
Introduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptxIntroduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptxIntelliSource Technologies
 
AI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyAI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyRaymond Okyere-Forson
 
How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?AmeliaSmith90
 
Fields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptxFields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptxJoão Esperancinha
 
Growing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesGrowing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesSoftwareMill
 
Cybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and BadCybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and BadIvo Andreev
 
Watermarking in Source Code: Applications and Security Challenges
Watermarking in Source Code: Applications and Security ChallengesWatermarking in Source Code: Applications and Security Challenges
Watermarking in Source Code: Applications and Security ChallengesShyamsundar Das
 
Streamlining Your Application Builds with Cloud Native Buildpacks
Streamlining Your Application Builds  with Cloud Native BuildpacksStreamlining Your Application Builds  with Cloud Native Buildpacks
Streamlining Your Application Builds with Cloud Native BuildpacksVish Abrams
 
eAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionseAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionsNirav Modi
 
ERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptxERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptxAutus Cyber Tech
 
Generative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-CouncilGenerative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-CouncilVICTOR MAESTRE RAMIREZ
 
Why Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdfWhy Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdfBrain Inventory
 
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...OnePlan Solutions
 
Enterprise Document Management System - Qualityze Inc
Enterprise Document Management System - Qualityze IncEnterprise Document Management System - Qualityze Inc
Enterprise Document Management System - Qualityze Incrobinwilliams8624
 
IA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeIA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeNeo4j
 
Kawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies
 
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine HarmonyLeveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmonyelliciumsolutionspun
 

Dernier (20)

ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdfARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
ARM Talk @ Rejekts - Will ARM be the new Mainstream in our Data Centers_.pdf
 
Your Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software TeamsYour Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
 
Introduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptxIntroduction-to-Software-Development-Outsourcing.pptx
Introduction-to-Software-Development-Outsourcing.pptx
 
AI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyAI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human Beauty
 
Salesforce AI Associate Certification.pptx
Salesforce AI Associate Certification.pptxSalesforce AI Associate Certification.pptx
Salesforce AI Associate Certification.pptx
 
How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?
 
Fields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptxFields in Java and Kotlin and what to expect.pptx
Fields in Java and Kotlin and what to expect.pptx
 
Growing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesGrowing Oxen: channel operators and retries
Growing Oxen: channel operators and retries
 
Cybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and BadCybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and Bad
 
Watermarking in Source Code: Applications and Security Challenges
Watermarking in Source Code: Applications and Security ChallengesWatermarking in Source Code: Applications and Security Challenges
Watermarking in Source Code: Applications and Security Challenges
 
Streamlining Your Application Builds with Cloud Native Buildpacks
Streamlining Your Application Builds  with Cloud Native BuildpacksStreamlining Your Application Builds  with Cloud Native Buildpacks
Streamlining Your Application Builds with Cloud Native Buildpacks
 
eAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionseAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspections
 
ERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptxERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptx
 
Generative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-CouncilGenerative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-Council
 
Why Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdfWhy Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdf
 
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
Transforming PMO Success with AI - Discover OnePlan Strategic Portfolio Work ...
 
Enterprise Document Management System - Qualityze Inc
Enterprise Document Management System - Qualityze IncEnterprise Document Management System - Qualityze Inc
Enterprise Document Management System - Qualityze Inc
 
IA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeIA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG time
 
Kawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in Trivandrum
 
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine HarmonyLeveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
Leveraging DxSherpa's Generative AI Services to Unlock Human-Machine Harmony
 

Correlation and regression.pptx

  • 3. • We are going to examine the linear correlation between two variables, that is we are looking at how strong a linear relationship there is between them. • If there is suitably strong enough relationship between the two variables ( and there is cause and effect) we can calculate a “regression line” which is given by: E[Y/X] =y=α+βx E(S2) P(X=x)=p(X=Head)=1/2
  • 4. • The sample correlation coefficient r is given by: • r= Sxy/(SxxSyy)1/2 • r is such that -1≤r ≤1 • r is a measure of linear association and does not itself indicate “cause and effect”
  • 5. • ρ=corr(X,Y)=cov(X,Y)/(var(X)var(Y))1/2 • The sample correlation coefficient, r, is an estimator of the population correlation coefficient, ρ. • r= Sxy/(SxxSyy)1/2 • Sxx=∑(xi- x̄)2= ∑xi 2-n x̄2 • Syy= ∑(Yi- ȳ)2= ∑Yi 2-n ȳ 2 • Sxy= ∑ (xi- x̄) (Yi- ȳ)= ∑xiyi-n x̄ ȳ
  • 6. • A new computerized ultrasound scanning technique has enabled doctors to monitor the weight of unborn babies. The table below shows the estimated weights for one particular foetus at fortnightly intervals during the pregnancy. Gestation period (weeks) x 30 32 34 36 38 40 Estimated foetal weight (kg) y 1.6 1.7 2.5 2.8 3.2 3.5
  • 7. • Calculate Sxx,Syy,Sxy for the foetal weights example • r= Sxy/(SxxSyy)1/2
  • 8. Coefficient of Determination • The proportion of the total variability of the responses “explained” by a model is called the coefficient of determination, denoted, R2. • The proportion is : R2 =SSREG/SSTOT= Sxy 2/SxxSyy R2 can take values between 0% and 100% inclusive.
  • 9. Goodness of fit • Partitioning the variability of the responses • To help understand the “goodness of fit” of the model to the data, the total variation in the responses, Syy= ∑(Yi- ȳ)2 should be studied. Some of the variation in the responses can be attributed to the relationships with x (eg y may be high when x is high, low when x is low) and some is random variation (unmodellable). Just how much is attributable – or explained by the model – is a measure of the goodness of fit of the model.
  • 10. • We start from an identity involving yi (the observed y value), ȳ (the overall average of y values) and ŷi(the predicted value of y) • Yi- ȳ=(Yi-ŷi)+(ŷi- ȳ) • Squaring and summing both sides of : • ∑(Yi- ȳ)2= ∑(Yi-ŷi)2+ ∑(ŷi- ȳ)2 • The cross-product term vanishing
  • 11. • The sum of the left is the “total sum of squares” of the responses, denoted here SSTOT. • The second sum of the right is the sum of the squares of the deviations of the fitted responses from the overall mean. It summarises the variability accounted for, or “explained by the model”. It is called the regression sum of squares, denoted here by SSREG • The first sum on the right is the sum of the squares of the estimated errors (response-fitted response, generally referred to as residual from the fit). It summarises the remaining variability, that between the responses and their fitted values and so unexplained by the model. It is called the residual sum of squares, denoted by SSRES.
  • 12. • So: • SSTOT=SSRES+SSREG • In this case, (simple linear regression model), note that the value of the coefficient of determination is the square of the correlation coefficient for the data. • r= Sxy/(SxxSyy)1/2 • R2 =SSREG/SSTOT= Sxy 2/SxxSyy=r2
  • 13. • A sample of ten claims and corresponding payments on settlement for household policies is taken from the business of an insurance company. The amounts, in units of $100, are as follows: Claims x 2.10 2.40 2.50 3.20 3.6 3.8 4.1 4.2 4.5 5 Payme nt y 2.18 2.06 2.54 2.61 3.67 3.25 4.02 3.71 4.38 4.45