首页 > 其他分享 >ETC2420 / ETC5242 Statistical Thinking

ETC2420 / ETC5242 Statistical Thinking

时间:2024-10-07 17:10:49浏览次数:8  
标签:group Thinking marks should file each ETC2420 ETC5242 your

Statistical Thinking (ETC2420 / ETC5242)

Assignment 1

Semester 2, 2024

Instructions

This assignment is a group assignment. Only one submission for each group is required.

All groups are to do all tasks in this assignment, regardless of your unit code.

Effective strategies for group work:

• Experience suggests it is a poor strategy for a group to allocate separate tasks to individuals and then just to present them together as if they were each undertaken collectively by the group.

• The best strategy is to have each group member attempt each task on their own, with the group meeting together after a few days to review and decide on the best set of ideas and approaches, including whether additional work is required. Be sure to leave enough time to combine your efforts and review the final report before submitting the assignment.

You may verbally discuss ideas about the assignment with any of your classmates. However, all groups must separately prepare and write their own submission, which should accurately reflect the work and efforts of all students in your group. We highly recommend that you do not share any files or written notes between groups, which will be treated as collusion. Any discussion on the online forum should be limited to seeking clarifications about the instructions and tasks.

Preparing your submission

Your responses should be written in an R Markdown file that compiles to produce the desired results.

This assignment consists of several Tasks. Each should be answered using a combination of written text and output from R, in the format of a mini-report. All answers need explanation and justification. Any recommendations and conclusions you draw should be supported with evidence. Your descriptions will need both a technical and a non-technical component (see the Tasks for more details).

Organise your submission carefully with headings and a clear section structure. We recommend that your response for each Task form. its own section, with further sub-sections as required.

Presentation is important, as is conveying your results/recommendations/findings in a succinct and informative way. You need to include anything that is relevant to your specific analyses, and avoid including superfluous information.

All plots must be properly labelled and explained. For example, the definition of each axis should be clear and also what each visual element (points, lines, etc.) represents.

Show and evaluate all code chunks using the echo = TRUE and eval = TRUE chunk options, and format the output so that it does not run off the page when printed. You can also suppress all other messages and warnings, as per the following command (to be included in the first code chunk of your R Markdown file):

knitr::opts_chunk$set(echo = TRUE, eval = TRUE, warning = FALSE,

                                message = FALSE, error = FALSE)

Anything that is not part of your answer should not be included in the R Markdown file, even if it is not evaluated or does not appear in the rendered PDF file.

Your Group Number (as allocated on Moodle), and all group members’ names and student ID numbers must be stated in the YAML section of the R Markdown file and on any other files submitted.

Submission

This assignment is due on Thursday 10 October 2024 at 23:55.

You need to upload two (2) separate files to the link on Moodle for your group: the Rmd file and the corresponding PDF file. You may create an HTML or Word document from your Rmd file, but you must convert this to PDF for submission.

Your files should be named according to the following templates:

GroupNumber_A1.Rmd

GroupNumber_A1.pdf

Replace GroupNumber with your Group Number (as shown on Moodle). For example, if your Group Number is “Group92”, your files should be named:

Group92_A1.Rmd

Group92_A1.pdf

Submission of incorrect files or file names will lead to loss of marks.

Your files must be submitted separately, rather than combined together as a ZIP file or similar.

Marking

There is a total of 100 marks available for this assignment.

There are five (5) broad Tasks, which together consist of 90 marks (specific mark allocations are given below).

The remaining 10 marks will be awarded for your submission as a whole, as follows:

• Overall presentation [5 marks].

• Reproducibility [5 marks]. Whether the submitted Rmd files compile as submitted without error.

Peer evaluation

As part of the marking, you will also need to complete a peer evaluation survey to rate the contribution of each team member. The survey responses may be used to adjust your individual marks. We will provide more information about this process prior to the due date.

Introduction

A bank manager would like to get a better understanding of her current customers, of which there are 780,000. She has commissioned you to survey them to find out their incomes and education levels, and then 代 写ETC2420 / ETC5242  Statistical Thinking analyse their responses. She has some specific questions the she wants you to answer, which her team will use to help inform. their product design and marketing strategy.

The manager has some understanding of descriptive statistics, but is not very familiar with statistical modelling and inference. However, she has heard about various approaches, such as the bootstrap and Bayesian inference, and is happy for you to use any techniques and to explain the results to her in a non-technical way.

Data

Using a database of all of the bank’s customers, you select 200 at random and send them a questionnaire to ask the following questions:

1. What was your annual gross income in the previous financial year?

2. What is the highest level of education you have received?

Possible options include:

• Doctorate

• Master degree

• Bachelor degree

• High school or lower

The file called banksurvey.csv contains the customers’ responses, with one row per customer.

The income column is in units of thousands of dollars.

Tasks

For each of Tasks 1–5, there is a set of required analyses and components that you should carry out and include in your response. For each Task, write a short report that includes:

• Explanations of what analyses you are carrying out.

• The results of your analyses (including plots, numerical results, and conclusions).

• Enough details about your analysis choices and assumptions so that someone with technical knowledge (e.g., another statistician) would understand them and could replicate your work.

• A summary of your methods and findings, and any key assumptions, in a form. that would be under-standable to the manager (e.g., using non-technical language).

You should be able to cover what you need in about 3 or 4 paragraphs of text for each Task. Note that some Tasks may require more explanation than others.

Task 1 [20 marks]

The manager wants to understand the distribution of her customers’ incomes. She would like some appropriate descriptive and visual summaries of the data. In addition, she would like a fitted model, which her team will use to help inform. their product design and marketing strategy.

Required analyses and components:

• One or more appropriate plots to visualise the data.

• Some appropriate descriptive statistics.

• Explore fitting various models. Include at least the following distributions: normal, exponential, gamma.

• Your exploration should include using appropriate QQ plots and calculating maximum likelihood estimates.

Task 2 [18 marks]

The manager is particularly interested in estimating the 80th percentile of annual income of her customers. Use a variety of approaches and provide interval estimates for each.

Required analyses and components:

• Use estimators that are based on fitting a model. Provide at least one estimate for each model fitted in Task 1 (therefore, you need at least 3 such estimates).

• It is also possible to use an estimator that doesn’t assume any specific model, by using a statistic known as a sample quantile. There are many ways to define such a statistic, most of which are implemented in the R function quantile(). The default choice for that function is what are known as ‘Type 7’ quantiles (as specified by the argument type = 7). Using this default choice, estimate the 80th percentile of annual income.

• Calculate 95% confidence intervals based on each of the estimators above. (Use any method that you think is appropriate, and justify your choice.)

• In your report, explain the key statistical ideas to the manager, including what the parameter of interest is, how it relates to the data, and what assumptions you are making for each estimate.

• Provide an overall conclusion, including recommendations about which of these estimates are likely to be more useful or reliable.

Task 3 [18 marks]

The manager wants to learn more about the different approaches to estimation that you have used in Task 2, including their strengths and weaknesses. Explain and illustrate the statistical properties of each estimator.

Required analyses and components:

• Simulate the sampling distribution of each estimator, assuming the (population) distribution of annual incomes follows an exponential distribution with mean $100,000.

• Compare these sampling distributions using appropriate plots and numerical summaries. For the latter, you should include at least the bias and standard deviation.

• Explain how to interpret these simulation results, and how you could use this type of simulation to select an appropriate estimator to use.

• Explain what you expect to see in your results if you simulated from a gamma distribution (with shape parameter not equal to 1) instead of an exponential distribution.

Task 4 [16 marks]

The manager’s team wants to understand how their customers’ income relates to their level of education. They are particularly interested in whether there is a large difference in average income between those who completed a university degree and those who haven’t. Also, the team wants to know whether any such difference (if there is one) can be attributed to the fact that customers who more highly educated are able to find higher paid jobs.

Required analyses and components:

• Show appropriate plots that compare how the distribution of income varies across each of the four education groups.

• Calculate a 95% confidence interval for the difference in the mean annual incomes of customers who have completed a university degree and those who haven’t.

• Comment on whether it would be appropriate to use the Central Limit Theorem when calculating this confidence interval.

• Explain whether these data would be able to provide evidence of a causal effect of higher education leading to higher incomes. Specifically, if the confidence interval were to show a large positive difference, does this survey result imply that providing greater education would lead to higher incomes? (Remember to give reasons that clearly justify your answer.)

Task 5 [18 marks]

The manager wants to know whether there is a big difference in the 80th percentile incomes of those with and without a university degree.

Required analyses and components:

• Set this up using a Bayesian inference approach, as follows:

– Model each of the two education groups (with and without a university degree) separately.

– For each group, assume an exponential distribution for the annual income. Each group will have its own rate parameter, λg, where g = 0 refers to the group with no university degree and g = 1 to the group that has a university degree.

– For each group, use a conjugate prior. Select hyper-parameter values such that for each λg it gives a prior mean of 1 and prior variance of 1.

• State the posterior distribution for each λg and calculate 95% credible intervals.

• Simulate 10,000 values from the posterior distribution of the difference between the 80th percentile incomes between the two groups. (Note: you can’t simulate these directly, so think carefully about what you can simulate from and what steps you need to take to achieve the desired simulated values.)

• Calculate an approximate 95% credible interval for the difference between the 80th percentile incomes between the two groups.

 

标签:group,Thinking,marks,should,file,each,ETC2420,ETC5242,your
From: https://www.cnblogs.com/comp9021/p/18450328

相关文章

  • CITS1401 Computational Thinking with Python
    CITS1401ComputationalThinkingwithPythonProject1,Semester2,2024DepartmentofComputerScienceandSoftwareEngineeringTheUniversityofWesternAustraliaCITS1401ComputationalThinkingwithPythonroject1,Semester2,2024(Individualprojec......
  • 软件安装方式 thinking
    像MySQL、Kafka、ZooKeeper、Redis、ElasticSearch、ApacheDrios等软件的安装方式。 1、单机安装本机云服务器:国内云、国外云 2、试验性集群安装小集群,比如,三个主机的。 3、容器安装Docker等 4、Kubernetes安装-yaml方式 5、Kubernetes安装-HelmChart......
  • SQL Thinking
    s2下半年我在内部有一次部门级别的技术分享会,以本文内容分享为主。其实有很多人问过我相同的问题,遇到需要改写的慢sql,不知道怎么改,改好了以后也不知道等不等价?不等价了也不知道错在哪?这个要怎么破?其实都是因为绝大多数人没有做过开发,看不懂sql,不会写sql,没有sql思维,下面通过几个......
  • [GYCTF2020]EasyThinking 1
    think模板,6.0特性因为题目已经很明确给我们了hint,直接尝试查看特性发现这里是任意文件写入的hint具体可以查看https://www.freebuf.com/vuls/352360.html这里我们直接进行账号注册因为他是根据cookie的名称进行定义文件名称的所以我们可以直接写文件名,这里的文件名长度要求......
  • 阅读笔记《大象:Thinking in UML》下
    《ThinkinginUML》中的大象思考引发了我对UML在软件开发中的重要性和应用的思考。大象的比喻不仅揭示了软件项目的庞大和复杂性,同时也突显了UML作为一种建模语言的价值。首先,大象象征了软件项目的庞大复杂性。在一个庞大的项目中,各种功能、模块和组件交织在一起,形成了一个庞大......
  • SegNeXt: Rethinking Convolutional Attention Design for Semantic Segmentation
    SegNeXt:RethinkingConvolutionalAttentionDesignforSemanticSegmentation*Authors:[[Meng-HaoGuo]],[[Cheng-ZeLu]],[[QibinHou]],[[ZhengningLiu]],[[Ming-MingCheng]],[[Shi-MinHu]]·······初读印象comment::发现了导致分割模型性能提高的几......
  • Rethinking and Improving Relative Position Encoding for Vision Transformer: ViT
    RethinkingandImprovingRelativePositionEncodingforVisionTransformer*Authors:[[KanWu]],[[HouwenPeng]],[[MinghaoChen]],[[JianlongFu]],[[HongyangChao]]初读印象comment::(iRPE)提出了专门用于图像的相对位置编码方法,code:Cream/iRPEatmain·mi......
  • 13.How do you understand the statement: Clear thinking is the key to clear writi
    Round1:Interpreting"ClearThinkingistheKeytoClearWriting"Speaker1(AnalystA):Greetings,everyone.Ourtopictodayisthestatement,"Clearthinkingisthekeytoclearwriting."Tobegin,Iinterpretthisasemphasizingth......
  • 【pwn】[FSCTF 2023]What am I thinking? --pwntools工具的利用
    这道题没给附件,直接就是nc这个题目的意思是,我们随机输入一个数,然后发给我们一段base64加密后的密文,真正num就在里面,我们现在写个pwntools脚本提取一下这段base64密文,解密一下,看看是什么东西exp:io=remote("node4.anna.nssctf.cn",28045)io.sendline(str(2))io.recvuntil(b"......
  • Rethinking Point Cloud Registration as Masking and Reconstruction论文阅读
    RethinkingPointCloudRegistrationasMaskingandReconstruction2023ICCV*GuangyanChen,MeilingWang,LiYuan,YiYang,YufengYue*;ProceedingsoftheIEEE/CVFInternationalConferenceonComputerVision(ICCV),2023,pp.17717-17727paper:Rethin......