91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代做MATH2110、Java/Python程序語(yǔ)言代寫(xiě)
代做MATH2110、Java/Python程序語(yǔ)言代寫(xiě)

時(shí)間:2025-04-05  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



1 MATH2110
The University of Nottingham
SCHOOL OF MATHEMATICAL SCIENCES
SPRING SEMESTER 2025
MATH2110 - STATISTICS 3
Coursework 2
Deadline: 3pm, Friday 2/5/2025
Your neat, clearly-legible solutions should be submitted electronically as a pdf file via the MATH2110 Moodle
page by the deadline indicated there. As this work is assessed, your submission must be entirely your own
work (see the University’s policy on Academic Misconduct).
Submissions up to five working days late will be subject to a penalty of 5% of the maximum mark per working
day.
Deadline extensions due to Support Plans and Extenuating Circumstances can be requested according to
School and University policies, as applicable to this module. Because of these policies, solutions (where
appropriate) and feedback cannot normally be released earlier than 10 working days after the main cohort
submission deadline.
The page limit is 8 pages and the minimum font size is 11.
THE DATA
As a medical statistician of the 19th century, your task is to assess associations between the fertility of different
Swiss regions and certain social parameters. The goal is to identify the most influential variables, select the
best model, and make predictions using it. You have data for 47 regions with the following variables:
• Fertility, standardised fertility measure.
• Agriculture, percentage of males involved in agriculture as occupation
• Examination, percentage draftees receiving highest mark on army examination
• Education, percentage education beyond primary school for draftees.
• Catholic, percentage of catholic.
• Infant.Mortality, normalised proportion of live births who live less than 1 year.
You can load the data by running the 𝑅 command data(swiss). The only packages that may be used are
“BayesFactor” and “MASS”.
MATH2110 Turn Over
2 MATH2110
THE TASKS
First divide the data into a training set (70% - 33 observations) and a test set (30% - 14 observations). All the
fitting and selection should be done using exclusively the train set. To avoid having correlations during the
train/test division, use the function sample() to randomly choose both groups.
All modelling should be using Bayesian Normal linear models and use priors:
𝛽|𝜎2 ∼ 𝑁 (0, 100Ip
)
𝜎
2 ∼ 𝐼𝐺(2, 2),
where Ip
is the 𝑝 × 𝑝 identity matrix and 𝐼𝐺 denotes the inverse-gamma distribution.
1. Consider the relationship between Examination and Fertility.
• Perform an exploratory analysis of the relationship between Examination and Fertility.
• Fit a Bayesian Normal linear model with Fertility as the dependent variable and Examination as the
independent variable.
• Write down the selected model posterior.
• Sample 10 sets of parameters from the posterior distribution and plot the resulting linear model for
each set of sampled parameters.
[20 marks]
2. Consider the relationship between Catholic and Fertility.
• Perform an exploratory analysis of the relationship between Catholic and Fertility.
• Create a new variable Catholic.Transform = (Catholic − 𝛼)2
for a suitable choice of 0 ≤ 𝛼 ≤ 100.
• Fit a Bayesian Normal linear model with Fertility as the dependent variable and Catholic.Transform
as the independent variable.
• Write down the selected model posterior.
• Using the posterior mean for the parameters of the linear model consider the model fit.
[25 marks]
3. Use Bayes Factors to determine which of the models in 1 and 2 best fits the data. [5 marks]
4. Consider general linear models for modelling Fertility as a function of the covariates.
• Perform model selection to choose a model and justify your choice of model.
• Write down the selected model posterior.
• Draw samples from the corresponding posterior.
• Present histograms (using function hist()) for the samples of each parameter.
• Compute estimates of the parameters and compare them.
• Make predictions for the Fertility values in the test set.
• Compare these with the real values.
[50 marks]
MATH2110 End

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:天天花卡客服電話-天天花卡24小時(shí)客服熱線電話
  • 下一篇:代寫(xiě)HIM3002、代做Python編程語(yǔ)言
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開(kāi)團(tuán)工具
    出評(píng) 開(kāi)團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士2號(hào)線
    合肥機(jī)場(chǎng)巴士2號(hào)線
    合肥機(jī)場(chǎng)巴士1號(hào)線
    合肥機(jī)場(chǎng)巴士1號(hào)線
  • 短信驗(yàn)證碼 豆包 幣安下載 AI生圖 目錄網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045