SlideShare ist ein Scribd-Unternehmen logo
1 von 27
Downloaden Sie, um offline zu lesen
Tutorial 2

Inferential Statistics, Statistical Modelling
            & Survey Methods
                 (BS2506)

              Pairach Piboonrungroj
                    (Champ)
           pairach@piboonrungroj.com
1.(a) Petrol price

  Average      1.00      0.99       0.92       1.11      1.40       1.47
   Price
   Year    2000          2001      2002       2003       2004       2005
  Year (x)  -5            -3        -1         1          3          5

   Code the year variable into integers that sum to zero and
        estimate the average price for the year 2006


Note: when the values of the independent variables sum to zero,
the formulas to estimate the intercept the intercept and slope coefficients
become much simpler, as given below
1 (a)
               ˆ        6.89
               β0 = y =      = 1.148
                          6

               ˆ ∑
                      xy        3.77
               β1 =         =        = 0.054
                   ∑x   2
                                 70


           ˆ
           y = 1.148 + 0.054x

Predict a 2006 price using x = 7

         ˆ
         y 2006 = 1.148 + 0.054(7) = 1.526
2(a)
   Y     X0   X1     X2
  10.5   1    1      0
 -11.3   1    1      0
-15.42   1    0      1
 11.63   1    0      1
 -9.19   1    1      0
  5.32   1    1      0
  7.50   1    0      1
2(a)
   Y     X0   X1     X2   X1+ X2
  10.5   1    1      0      1
 -11.3   1    1      0      1
-15.42   1    0      1      1
 11.63   1    0      1      1
 -9.19   1    1      0      1
  5.32   1    1      0      1
  7.50   1    0      1      1
2(a)


            x0 = x1 + x2

So there is EXACT MULTICOLINEARITY.
It is not possible to include all three
repressors
and estimate the parameters.
3 (a)
   Variable                B                  SE B
  (Constant)             55.0                 47.47
     X1                  0.925                0.217
     X2                 -5.205                1.229
     X3                  17.446               12.78

       ˆ
      y = β 0 + β1 x1 + β 2 x2 + β3 x3
 ˆ
 y = 55 + 0.925x1 − 5.205x2 +17.446x3
A house size increase by 1 square meter
(holding other variables constant), price are expected
to increase by £925.
3.b.

        At      α = 0.05
                 tα          = t0.025,15−4 =11 = 2.201
                      2,df
                                                                     βi
        Testing for the significance of the house size     t βi =
                                                                    SE β i
                                  β house _ size       0.925
    €        thouse _ size =                         =       = 4.263
                                 SE β house _ size     0.217

                              Thus, house size is significant

€
3(c)
Testing for the significance of the house age

                                      βi
                   t βi =
                                   SE β i
                       β house _ age        −5.205
  thouse _ agei =                         =        = −4.235
                       SE β house _ age     1.229
           tα          = t0.025,15−4 =11 = 2.201
                2,df

      Thus, house age is significant
3(d)

    Testing for the significance of the number of room

                                                     βi
                                  t βi =
                                                  SE β i
                               β number _ of _ room         17.446
       tnumber _ of _ room =                              =        =1.365
                               SE β number _ of _ rooom      12.78
                 tα          = t0.025,15−4 =11 = 2.201
                      2,df
                 Thus, number of rooms is NOT significant
€
3(e)
   Estimate the price of a 20 years old house
   which has 4 bedrooms with 200 square meters.
   x1 = 200, x2 = 20, x3 = 4

 ˆ
 y = 55 + 0.925x1 − 5.205x2 +17.446x3
ˆ
y = 55 + 0.925(200) − 5.205(20) +17.446(4)
  ˆ
  y = 205.684thousand _ pounds

    ˆ
    y = 205, 684 pounds
3(f)
                  Testing for the significance of the
                           number of room

                     ˆ
                     y = 35.818 + 41.826x3
          βi                                    β number _ of _ room           41.826
t βi =                  tnumber _ of _ room =                              =          = 2.285
         SE β i                                 SE β number _ of _ rooom        18.3

    At            α = 0.05 tα         ,df
                                            = t0.025,15−2=13 = 2.1604
                                  2
         €
  Thus, number of rooms is significant
  (when we exclude house size that has a high correlation with).
4 (a)
                                                       F
                              Mean squares
             Sum of    DF                       (MS Regression /
                            (Sum squares /DF)
             Squares                              MS Residual)

Regression   253,388   3

Residual     59,234    11


Total
4 (a)
                                                       F
                              Mean squares
             Sum of    DF                       (MS Regression /
                            (Sum squares /DF)
             Squares                              MS Residual)

Regression   253,388   3        84,462.67            15.69

Residual      59,234   11       5,384.91

Total        312,622


At   α = 0.01
        F3,11, 0.01 = 6.217 < 15.69
             The model is significant
4(b)

Multiple coefficient of determination (R2)

  Sum Squares Total Sum Square Error
=                  −
  Sum Squares Total Sum Squares Total


= 1 – (59,234 / 312,622)
= 1 – 0.189
= 0.811
4(c)

Adjusted multiple coefficient of determination
(Adjusted R2) – adjusted by DF

= 1 – (Mean Square Error / Mean Squares Total)
= 1 – (5384.91 /22,330.14)
= 1 – 0.241
= 0.759
5(a)
no   Leverage (y)   Country
1        0.67         M
2        0.62         M
3        0.78         M
4        0.54         M
5        0.65         M
6        0.29          I
7        0.32          I
8        0.29          I
9        0.35          I
10       0.37          I
5(a)
no   Leverage (y)   Country   Country (x)
1        0.67         M           1
2        0.62         M           1
3        0.78         M           1
4        0.54         M           1
5        0.65         M           1
6        0.29          I          0
7        0.32          I          0
8        0.29          I          0
9        0.35          I          0
10       0.37          I          0
5(a)
no   Leverage (y)   Country   Country (x)   xy     x^2    y^2
1        0.67         M           1         0.67    1    0.4489
2        0.62         M           1         0.62    1    0.3844
3        0.78         M           1         0.78    1    0.6084
4        0.54         M           1         0.54    1    0.2916
5        0.65         M           1         0.65    1    0.4225
6        0.29          I          0          0      0    0.0841
7        0.32          I          0          0      0    0.1024
8        0.29          I          0          0      0    0.0841
9        0.35          I          0          0      0    0.1225
10       0.37          I          0          0      0    0.1369
5(a)
  no      Leverage (y)   Country   Country (x)    xy     x^2      y^2
   1          0.67         M           1         0.67     1      0.4489
   2          0.62         M           1         0.62     1      0.3844
   3          0.78         M           1         0.78     1      0.6084
   4          0.54         M           1         0.54     1      0.2916
   5          0.65         M           1         0.65     1      0.4225
   6          0.29          I          0          0       0      0.0841
   7          0.32          I          0          0       0      0.1024
   8          0.29          I          0          0       0      0.0841
   9          0.35          I          0          0       0      0.1225
   10         0.37          I          0          0       0      0.1369

Sum           4.88                     5         3.26     5      2.686

Average      0.488                   0.500       0.326   0.500   0.269
5(a)
              x = 0.5, y = 0.488
ˆ
β1 =
       ∑ xy − nxy    ˆ = 3.26 − 10(0.5)(0.488) = 0.328
                     β1
          2      2                        2
       ∑ x − nx               5 − 10(0.5)

ˆ         ˆ
β 0 = y − β1 x       ˆ
                     β 0 = 0.488 − 0.328(0.5) = 0.324


                 ˆ
                 y = 0.324 + 0.328x
5 (b)

      ˆ
      y = 0.324 + 0.328x

 Assume x = 0 for India then

      ˆ
      y = 0.324
Thus x = 1 for Malaysia then

       ˆ
       y = 0.652
5 (b)
ˆ
y = 0.652 + (0.652 − 0.324) x
     ˆ
     y = 0.652 − (0.328) x
          ˆ
          y = β 0 − β1 x
 Assume x = 1 for India then
      ˆ
      y = 0.324
Thus x = 0 for Malaysia then

       ˆ
       y = 0.652
5(c)
     Testing if slope coefficient is significant

          H 0:   β1 = 0
          H 1:   β1 ≠ 0
                                      βi
Statistics: t-statistics    t βi =
                                     SE β i

           SE is still unknown
5(c)
 To calculate SE                         And            2
                                                ∑ (x − x ) = ∑ x   2
                                                                       − nx 2

     ˆ           ˆ                              = 5 −10(0.5)2 = 5 − 2.5 = 2.5
SE ( β1 ) = Var( β1
      ˆ           S2                     €
                                         Then        ˆ           S2
 Var( β1 ) =                                    Var( β1 ) =
             ∑ ( xi − x ) 2                                 ∑ ( xi − x ) 2
                                    €
                                                            0.004
S2 =
         ∑ ˆ             ˆ
          y 2 − β0 ∑ y − β1 ∑ xy                     ˆ
                                                Var( β1 ) =       = 0.02
                                                             2.5
                     n−2
                                         Then
 2  2.685 − 0.324 × 4.88 − 0.328(3.26)               ˆ          ˆ
                                                  SE(β1 ) = Var(β1 )
S =
                     8
                                                     ˆ
                                                  SE(β1 ) = 0.002 = 0.040
     2
S = 0.004
                              So now we can calculate t-statistics
5(c)
      So now we can calculate t-statistics

                  βi                  0.328
        t βi =               t βi   =       = 8.2
                 SE β i               0.040


At   α = 0.05
             tα           = t0.025,10−2=8 = 2.3060
                   2,df
     Thus slope coefficient is significant at 5% significant
Thank you
To download this slides visit;

www.pairach.com/teaching

Weitere ähnliche Inhalte

Was ist angesagt?

12 introduction to multiple regression model
12 introduction to multiple regression model12 introduction to multiple regression model
12 introduction to multiple regression modelBaterdene Batchuluun
 
ملزمة الرياضيات للصف السادس الاحيائي الفصل الثاني القطوع المخروطية 2022
 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثاني القطوع المخروطية 2022  ملزمة الرياضيات للصف السادس الاحيائي الفصل الثاني القطوع المخروطية 2022
ملزمة الرياضيات للصف السادس الاحيائي الفصل الثاني القطوع المخروطية 2022 anasKhalaf4
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manualnmahi96
 
Calculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manualCalculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manualReece1334
 
Final Exam Review (Integration)
Final Exam Review (Integration)Final Exam Review (Integration)
Final Exam Review (Integration)Matthew Leingang
 
Study Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and IntegrationStudy Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and IntegrationMeenakshisundaram N
 
A Szemerédi-type theorem for subsets of the unit cube
A Szemerédi-type theorem for subsets of the unit cubeA Szemerédi-type theorem for subsets of the unit cube
A Szemerédi-type theorem for subsets of the unit cubeVjekoslavKovac1
 
Vibrational Rotational Spectrum of HCl and DCl
Vibrational Rotational Spectrum of HCl and DClVibrational Rotational Spectrum of HCl and DCl
Vibrational Rotational Spectrum of HCl and DClTianna Drew
 
Some Examples of Scaling Sets
Some Examples of Scaling SetsSome Examples of Scaling Sets
Some Examples of Scaling SetsVjekoslavKovac1
 
Tales on two commuting transformations or flows
Tales on two commuting transformations or flowsTales on two commuting transformations or flows
Tales on two commuting transformations or flowsVjekoslavKovac1
 
Supersymmetric Q-balls and boson stars in (d + 1) dimensions
Supersymmetric Q-balls and boson stars in (d + 1) dimensionsSupersymmetric Q-balls and boson stars in (d + 1) dimensions
Supersymmetric Q-balls and boson stars in (d + 1) dimensionsJurgen Riedel
 

Was ist angesagt? (17)

Reduction forumla
Reduction forumlaReduction forumla
Reduction forumla
 
12 introduction to multiple regression model
12 introduction to multiple regression model12 introduction to multiple regression model
12 introduction to multiple regression model
 
Econ ch 9
Econ ch 9Econ ch 9
Econ ch 9
 
ملزمة الرياضيات للصف السادس الاحيائي الفصل الثاني القطوع المخروطية 2022
 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثاني القطوع المخروطية 2022  ملزمة الرياضيات للصف السادس الاحيائي الفصل الثاني القطوع المخروطية 2022
ملزمة الرياضيات للصف السادس الاحيائي الفصل الثاني القطوع المخروطية 2022
 
Ch01s
Ch01sCh01s
Ch01s
 
Legendre Function
Legendre FunctionLegendre Function
Legendre Function
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
 
Holographic Cotton Tensor
Holographic Cotton TensorHolographic Cotton Tensor
Holographic Cotton Tensor
 
Calculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manualCalculus 10th edition anton solutions manual
Calculus 10th edition anton solutions manual
 
Final Exam Review (Integration)
Final Exam Review (Integration)Final Exam Review (Integration)
Final Exam Review (Integration)
 
ED7008 AMFT_notes
ED7008 AMFT_notesED7008 AMFT_notes
ED7008 AMFT_notes
 
Study Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and IntegrationStudy Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and Integration
 
A Szemerédi-type theorem for subsets of the unit cube
A Szemerédi-type theorem for subsets of the unit cubeA Szemerédi-type theorem for subsets of the unit cube
A Szemerédi-type theorem for subsets of the unit cube
 
Vibrational Rotational Spectrum of HCl and DCl
Vibrational Rotational Spectrum of HCl and DClVibrational Rotational Spectrum of HCl and DCl
Vibrational Rotational Spectrum of HCl and DCl
 
Some Examples of Scaling Sets
Some Examples of Scaling SetsSome Examples of Scaling Sets
Some Examples of Scaling Sets
 
Tales on two commuting transformations or flows
Tales on two commuting transformations or flowsTales on two commuting transformations or flows
Tales on two commuting transformations or flows
 
Supersymmetric Q-balls and boson stars in (d + 1) dimensions
Supersymmetric Q-balls and boson stars in (d + 1) dimensionsSupersymmetric Q-balls and boson stars in (d + 1) dimensions
Supersymmetric Q-balls and boson stars in (d + 1) dimensions
 

Ähnlich wie BS2506 tutorial 2

Prep velvet – Speed Maths
Prep velvet – Speed MathsPrep velvet – Speed Maths
Prep velvet – Speed MathsPrep Velvet
 
Solutions Manual for Friendly Introduction To Numerical Analysis 1st Edition ...
Solutions Manual for Friendly Introduction To Numerical Analysis 1st Edition ...Solutions Manual for Friendly Introduction To Numerical Analysis 1st Edition ...
Solutions Manual for Friendly Introduction To Numerical Analysis 1st Edition ...Willowew
 
Algebra I Midterm Review
Algebra I Midterm ReviewAlgebra I Midterm Review
Algebra I Midterm Reviewguestd1dc2e
 
Week 6 checkpoint help gm533
Week 6 checkpoint help gm533Week 6 checkpoint help gm533
Week 6 checkpoint help gm533Brent Heard
 
Unit 6 test 2012 2013
Unit 6 test  2012 2013Unit 6 test  2012 2013
Unit 6 test 2012 2013lawisman
 
Cambridge checkpoint maths p2 specimen mark scheme 2012
Cambridge checkpoint maths p2 specimen mark scheme 2012Cambridge checkpoint maths p2 specimen mark scheme 2012
Cambridge checkpoint maths p2 specimen mark scheme 2012Pranav Agrawal
 
Answers for first period review
Answers for first period reviewAnswers for first period review
Answers for first period reviewDulce Garza
 
Algebra I Midterm Review
Algebra I Midterm ReviewAlgebra I Midterm Review
Algebra I Midterm Reviewguestd1dc2e
 
Solving linear equations in three varables
Solving linear equations in three varablesSolving linear equations in three varables
Solving linear equations in three varablesstefneeohstefnee
 
Notes and-formulae-mathematics
Notes and-formulae-mathematicsNotes and-formulae-mathematics
Notes and-formulae-mathematicsAh Ching
 
Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM Zhang Ewe
 
129215 specimen-paper-and-mark-schemes
129215 specimen-paper-and-mark-schemes129215 specimen-paper-and-mark-schemes
129215 specimen-paper-and-mark-schemesKing Ali
 
Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)asghar123456
 
Statistics Assignment 1 HET551 – Design and Developm.docx
Statistics Assignment 1 HET551 – Design and Developm.docxStatistics Assignment 1 HET551 – Design and Developm.docx
Statistics Assignment 1 HET551 – Design and Developm.docxrafaelaj1
 

Ähnlich wie BS2506 tutorial 2 (20)

Prep velvet – Speed Maths
Prep velvet – Speed MathsPrep velvet – Speed Maths
Prep velvet – Speed Maths
 
Solutions Manual for Friendly Introduction To Numerical Analysis 1st Edition ...
Solutions Manual for Friendly Introduction To Numerical Analysis 1st Edition ...Solutions Manual for Friendly Introduction To Numerical Analysis 1st Edition ...
Solutions Manual for Friendly Introduction To Numerical Analysis 1st Edition ...
 
Algebra I Midterm Review
Algebra I Midterm ReviewAlgebra I Midterm Review
Algebra I Midterm Review
 
Week 6 checkpoint help gm533
Week 6 checkpoint help gm533Week 6 checkpoint help gm533
Week 6 checkpoint help gm533
 
Unit 6 test 2012 2013
Unit 6 test  2012 2013Unit 6 test  2012 2013
Unit 6 test 2012 2013
 
Cambridge checkpoint maths p2 specimen mark scheme 2012
Cambridge checkpoint maths p2 specimen mark scheme 2012Cambridge checkpoint maths p2 specimen mark scheme 2012
Cambridge checkpoint maths p2 specimen mark scheme 2012
 
Matrices
MatricesMatrices
Matrices
 
Answers for first period review
Answers for first period reviewAnswers for first period review
Answers for first period review
 
Algebra I Midterm Review
Algebra I Midterm ReviewAlgebra I Midterm Review
Algebra I Midterm Review
 
3 chap
3 chap3 chap
3 chap
 
Ism et chapter_12
Ism et chapter_12Ism et chapter_12
Ism et chapter_12
 
Ism et chapter_12
Ism et chapter_12Ism et chapter_12
Ism et chapter_12
 
Solving linear equations in three varables
Solving linear equations in three varablesSolving linear equations in three varables
Solving linear equations in three varables
 
Les3
Les3Les3
Les3
 
Notes and-formulae-mathematics
Notes and-formulae-mathematicsNotes and-formulae-mathematics
Notes and-formulae-mathematics
 
Mathematics formulas
Mathematics formulasMathematics formulas
Mathematics formulas
 
Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM
 
129215 specimen-paper-and-mark-schemes
129215 specimen-paper-and-mark-schemes129215 specimen-paper-and-mark-schemes
129215 specimen-paper-and-mark-schemes
 
Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)
 
Statistics Assignment 1 HET551 – Design and Developm.docx
Statistics Assignment 1 HET551 – Design and Developm.docxStatistics Assignment 1 HET551 – Design and Developm.docx
Statistics Assignment 1 HET551 – Design and Developm.docx
 

Kürzlich hochgeladen

Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...DrVipulVKapoor
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptxmary850239
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineCeline George
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxMadhavi Dharankar
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipKarl Donert
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
Unit :1 Basics of Professional Intelligence
Unit :1 Basics of Professional IntelligenceUnit :1 Basics of Professional Intelligence
Unit :1 Basics of Professional IntelligenceDr Vijay Vishwakarma
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxryandux83rd
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPCeline George
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 

Kürzlich hochgeladen (20)

Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command Line
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptx
 
Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenship
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
Unit :1 Basics of Professional Intelligence
Unit :1 Basics of Professional IntelligenceUnit :1 Basics of Professional Intelligence
Unit :1 Basics of Professional Intelligence
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptx
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERP
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 

BS2506 tutorial 2

  • 1. Tutorial 2 Inferential Statistics, Statistical Modelling & Survey Methods (BS2506) Pairach Piboonrungroj (Champ) pairach@piboonrungroj.com
  • 2. 1.(a) Petrol price Average 1.00 0.99 0.92 1.11 1.40 1.47 Price Year 2000 2001 2002 2003 2004 2005 Year (x) -5 -3 -1 1 3 5 Code the year variable into integers that sum to zero and estimate the average price for the year 2006 Note: when the values of the independent variables sum to zero, the formulas to estimate the intercept the intercept and slope coefficients become much simpler, as given below
  • 3. 1 (a) ˆ 6.89 β0 = y = = 1.148 6 ˆ ∑ xy 3.77 β1 = = = 0.054 ∑x 2 70 ˆ y = 1.148 + 0.054x Predict a 2006 price using x = 7 ˆ y 2006 = 1.148 + 0.054(7) = 1.526
  • 4. 2(a) Y X0 X1 X2 10.5 1 1 0 -11.3 1 1 0 -15.42 1 0 1 11.63 1 0 1 -9.19 1 1 0 5.32 1 1 0 7.50 1 0 1
  • 5. 2(a) Y X0 X1 X2 X1+ X2 10.5 1 1 0 1 -11.3 1 1 0 1 -15.42 1 0 1 1 11.63 1 0 1 1 -9.19 1 1 0 1 5.32 1 1 0 1 7.50 1 0 1 1
  • 6. 2(a) x0 = x1 + x2 So there is EXACT MULTICOLINEARITY. It is not possible to include all three repressors and estimate the parameters.
  • 7. 3 (a) Variable B SE B (Constant) 55.0 47.47 X1 0.925 0.217 X2 -5.205 1.229 X3 17.446 12.78 ˆ y = β 0 + β1 x1 + β 2 x2 + β3 x3 ˆ y = 55 + 0.925x1 − 5.205x2 +17.446x3 A house size increase by 1 square meter (holding other variables constant), price are expected to increase by £925.
  • 8. 3.b. At α = 0.05 tα = t0.025,15−4 =11 = 2.201 2,df βi Testing for the significance of the house size t βi = SE β i β house _ size 0.925 € thouse _ size = = = 4.263 SE β house _ size 0.217 Thus, house size is significant €
  • 9. 3(c) Testing for the significance of the house age βi t βi = SE β i β house _ age −5.205 thouse _ agei = = = −4.235 SE β house _ age 1.229 tα = t0.025,15−4 =11 = 2.201 2,df Thus, house age is significant
  • 10. 3(d) Testing for the significance of the number of room βi t βi = SE β i β number _ of _ room 17.446 tnumber _ of _ room = = =1.365 SE β number _ of _ rooom 12.78 tα = t0.025,15−4 =11 = 2.201 2,df Thus, number of rooms is NOT significant €
  • 11. 3(e) Estimate the price of a 20 years old house which has 4 bedrooms with 200 square meters. x1 = 200, x2 = 20, x3 = 4 ˆ y = 55 + 0.925x1 − 5.205x2 +17.446x3 ˆ y = 55 + 0.925(200) − 5.205(20) +17.446(4) ˆ y = 205.684thousand _ pounds ˆ y = 205, 684 pounds
  • 12. 3(f) Testing for the significance of the number of room ˆ y = 35.818 + 41.826x3 βi β number _ of _ room 41.826 t βi = tnumber _ of _ room = = = 2.285 SE β i SE β number _ of _ rooom 18.3 At α = 0.05 tα ,df = t0.025,15−2=13 = 2.1604 2 € Thus, number of rooms is significant (when we exclude house size that has a high correlation with).
  • 13. 4 (a) F Mean squares Sum of DF (MS Regression / (Sum squares /DF) Squares MS Residual) Regression 253,388 3 Residual 59,234 11 Total
  • 14. 4 (a) F Mean squares Sum of DF (MS Regression / (Sum squares /DF) Squares MS Residual) Regression 253,388 3 84,462.67 15.69 Residual 59,234 11 5,384.91 Total 312,622 At α = 0.01 F3,11, 0.01 = 6.217 < 15.69 The model is significant
  • 15. 4(b) Multiple coefficient of determination (R2) Sum Squares Total Sum Square Error = − Sum Squares Total Sum Squares Total = 1 – (59,234 / 312,622) = 1 – 0.189 = 0.811
  • 16. 4(c) Adjusted multiple coefficient of determination (Adjusted R2) – adjusted by DF = 1 – (Mean Square Error / Mean Squares Total) = 1 – (5384.91 /22,330.14) = 1 – 0.241 = 0.759
  • 17. 5(a) no Leverage (y) Country 1 0.67 M 2 0.62 M 3 0.78 M 4 0.54 M 5 0.65 M 6 0.29 I 7 0.32 I 8 0.29 I 9 0.35 I 10 0.37 I
  • 18. 5(a) no Leverage (y) Country Country (x) 1 0.67 M 1 2 0.62 M 1 3 0.78 M 1 4 0.54 M 1 5 0.65 M 1 6 0.29 I 0 7 0.32 I 0 8 0.29 I 0 9 0.35 I 0 10 0.37 I 0
  • 19. 5(a) no Leverage (y) Country Country (x) xy x^2 y^2 1 0.67 M 1 0.67 1 0.4489 2 0.62 M 1 0.62 1 0.3844 3 0.78 M 1 0.78 1 0.6084 4 0.54 M 1 0.54 1 0.2916 5 0.65 M 1 0.65 1 0.4225 6 0.29 I 0 0 0 0.0841 7 0.32 I 0 0 0 0.1024 8 0.29 I 0 0 0 0.0841 9 0.35 I 0 0 0 0.1225 10 0.37 I 0 0 0 0.1369
  • 20. 5(a) no Leverage (y) Country Country (x) xy x^2 y^2 1 0.67 M 1 0.67 1 0.4489 2 0.62 M 1 0.62 1 0.3844 3 0.78 M 1 0.78 1 0.6084 4 0.54 M 1 0.54 1 0.2916 5 0.65 M 1 0.65 1 0.4225 6 0.29 I 0 0 0 0.0841 7 0.32 I 0 0 0 0.1024 8 0.29 I 0 0 0 0.0841 9 0.35 I 0 0 0 0.1225 10 0.37 I 0 0 0 0.1369 Sum 4.88 5 3.26 5 2.686 Average 0.488 0.500 0.326 0.500 0.269
  • 21. 5(a) x = 0.5, y = 0.488 ˆ β1 = ∑ xy − nxy ˆ = 3.26 − 10(0.5)(0.488) = 0.328 β1 2 2 2 ∑ x − nx 5 − 10(0.5) ˆ ˆ β 0 = y − β1 x ˆ β 0 = 0.488 − 0.328(0.5) = 0.324 ˆ y = 0.324 + 0.328x
  • 22. 5 (b) ˆ y = 0.324 + 0.328x Assume x = 0 for India then ˆ y = 0.324 Thus x = 1 for Malaysia then ˆ y = 0.652
  • 23. 5 (b) ˆ y = 0.652 + (0.652 − 0.324) x ˆ y = 0.652 − (0.328) x ˆ y = β 0 − β1 x Assume x = 1 for India then ˆ y = 0.324 Thus x = 0 for Malaysia then ˆ y = 0.652
  • 24. 5(c) Testing if slope coefficient is significant H 0: β1 = 0 H 1: β1 ≠ 0 βi Statistics: t-statistics t βi = SE β i SE is still unknown
  • 25. 5(c) To calculate SE And 2 ∑ (x − x ) = ∑ x 2 − nx 2 ˆ ˆ = 5 −10(0.5)2 = 5 − 2.5 = 2.5 SE ( β1 ) = Var( β1 ˆ S2 € Then ˆ S2 Var( β1 ) = Var( β1 ) = ∑ ( xi − x ) 2 ∑ ( xi − x ) 2 € 0.004 S2 = ∑ ˆ ˆ y 2 − β0 ∑ y − β1 ∑ xy ˆ Var( β1 ) = = 0.02 2.5 n−2 Then 2 2.685 − 0.324 × 4.88 − 0.328(3.26) ˆ ˆ SE(β1 ) = Var(β1 ) S = 8 ˆ SE(β1 ) = 0.002 = 0.040 2 S = 0.004 So now we can calculate t-statistics
  • 26. 5(c) So now we can calculate t-statistics βi 0.328 t βi = t βi = = 8.2 SE β i 0.040 At α = 0.05 tα = t0.025,10−2=8 = 2.3060 2,df Thus slope coefficient is significant at 5% significant
  • 27. Thank you To download this slides visit; www.pairach.com/teaching