Regression

Spring 2025

MandH

Course Info

  • Syllabus
  • Lectures: T. 1310-1500, R. 1610-1700 @ SE A211
  • Instructor: Yu-Ling Tseng.      Office Hours: T. 1200~1300  R. 1500~1600@SE A409
  • TA:   (負責聽用R講解習題) 吳雨瑾 T. 15:00~16:00 @ SE B302   蔡 念秤   (負責打作業分數) W. 15:00~16:00 @ SE 412~  有問題要多多請教助教喔   
  • 數學小天地   ~~ 討 論 各類 數學相關問題 的好地方 ~~
  • Prerequisites: Probability Theory, Statistics, Linear Algebra 
  • YesKno時間   有點迷路時聽聽第一堂課的也許有幫助,請直接收聽第29集: https://play.kkbox.com/podcast/episode/9XiNiBkrgcwXNDx5MA



  • 預計 0506(星期二)上課時間 考期中考。。。。。。。。。

    考試範圍:開學到0501星期四教的內容

    同 學可攜帶簡易計算機應考

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    學 期只有17周上課時間,學校行事曆18周的彈性補課我們就安排如下。。。。

    星期二都 13 點 整 開始上課  ~~~

    ~~ 來自雨瑾助教的訊息: ~~
    迴歸分析作業中,有一個部分是各組需要派一名同學來向我講解習題內容。
    請大家開始挑選題目,並安排時間與我進行講解。

    🖊️ 題目選擇方式
    • 每組選擇一個需使用 R程式 解題的題目。
    • 題目採 先選先贏 的方式,已被選擇的題目,其他組不得重複選擇。
    • 選完題目後,請寄信跟我確認及預約講解時間。

    🖊️ 講解流程
    • 說明題目與背景
    • 闡述問題
    • 解釋你的R程式碼(描述你的解題步驟及邏輯)
    • 總結結論(你的分析結果與發現)
    若有任何問題,歡迎來信詢問。
    期待大家的講解!
    ~~                                                ~~
     

    Data sets in txt form
    https://drive.google.com/drive/folders/1rcQeNvDQ2d8OzBcYPBy9ydeB874ss6p-?usp=sharing


    (date discussed in class)  Programs
    Description  Code with Output in HTML
    (20250306)  SetUp(1) SetUp(1)shows you how to:
    1. devide graphical windows (not necessary if using R studio where you use the left program with extension .r)
    2. assign variables/sequences
    3. plot and make titles for the graph
    4. generate normally distributed observations/make histograms
    5. do simple regressions and related plots  (you should see the effect of sample size and s.d.  on the fitted reg. lines)
    6. quit R
    SetUp1html

    (20250320 )   SetUp(2)

      ch01ta01 data
    SetUp(2)shows you how to:
    1. scan a data set in your working directory into R
    2. get figures and tables in the textbook with the Toluca Company examples
    3. construct confidence intervals for reg. coeff.'s, confidence/prediction  intervals for the mean response at given predictor x's values
    4. construt conf. band for the entire reg line,
    5. overlay three type of intervals in one plot for better comparison
    6. save the output to a file for preparing your homework, or save the R commands for later use
    SetUp2html

    SetUp2pdf

    (20250424)  MLR

    ch06fi05 data
    MLR shows you how to
    1. some basic matrix operations in R,
    2. how to obtain the design matrix after fitting a simple linear regression model,

    With the Dwaine Studios examples
    3. do multiple linear regression
    4. get figures and tables in the textbook
    5. make basic scatter plots for M-L-R data analysis
    6. obtain the design matrix
    7. get (simultaneous) conf. intervals for reg. coefficients,  confidence/prediction  intervals for the mean response at given predictors's values
    MLRpdf
    (20250501)GLT

    ch6pr18 data
    GLT shows you how to
    1. obtain SSEs from the full model and the reduced model
    2. obtain F(1-alpha; m, k) in R
    3. use the general linear test approach  for testing certain hypotheses (by giving 3 examples)
    GLTpdf


      You may find useful R programs  here:
                   
    Assignments (NO LATE HOMEWORK IS ALLOWED!)                                                                                                           
    Date
    Problems  『作 業成績10%由各組派一代表和 助教 吳雨瑾面 試講解一題要用R程式回 答的問題;題目採先選先贏制,講過題目其他組不得再選擇喔
     
    吳雨瑾 office hour T. 15:00~16:00 @ SE B302    時間若不行請另行和助 教email約時間)
    Due date
    0430
    Ch.6 : 6 (c),  11 (b), 16 (b, c), 17, 19 因期中考將近,這 份作業就不用交囉,同學請自行練習。
    0422
    These Problems  and
    Ch.2 : 27 , 28
    Ch.6 : 4, 5 (a, b), 6 (a, b), 7, 15 (c), 16 (a), 26
    0501
    0410
    Ch.5 : 17, 18. 19
    Ch.6 :
    2, 22, 23, 24, 25
    0422 (星期二)
    0320
    Ch.1 : 19被選), 28被選), 45(被選)
    Ch.2 :
    4
    被選), 8 (a, c), 10, 13被 選) ,
     23 (a, c)
    被 選)
    0401 (星期二)
    0306
    Ch.1 : 7, 8, 33, 34, 39 (a) , 41
    Ch.2 : 3, 17.
    0320

    20250218 First day of class

    課本:Applied Linear Statistical Models, Applied Linear Regression Models, 5th ed, Kutner, Nachtsheim, Neter and Li, 2019, McGRAW-HILL International. 洽華泰書局 周益彰 先生(0910-275877)

    參考書目:
    1. Applied Regression Analysis, 2nd ed, Draper, N. R. and Smith, H., 1981, Wiley.
    2. Introduction to Linear Regression Analysis, 2nd ed, Montgomery, D. C. and Peck,     E., 1991, Wiley.

    Course Grade

    Homework (20%=10%+10%)  Midterm (30%)  Final (50%= 30%+20%)



    Computing                                                                                               

    1. R website (original, mirror @ NTU)  
    2.     R ClassRoom 
    3. Document Reader: Acrobat Reader

    Murray_0408

    Last modified: 20200908
    yltseng@mail.ndhu.edu.tw