COMM1190 Data, Insights and Decisions


ASSESSMENT 2 GUIDE
COMM1190
Data, Insights and Decisions
Term 2, 2024

Assessment Details
Icon legend

Due Date Weighting Format Length/Duration Submission

Turnitin
Turnitin is an originality checking and plagiarism prevention tool that enables checking of submitted written work for
improper citation or misappropriated content. Each Turnitin assignment is checked against other students' work, the
Internet and key resources selected by your Course Coordinator.
If you are instructed to submit your assessment via Turnitin, you will find the link to the Turnitin submission in your
Moodle course site. You can submit your assessment well before the deadline and use the Similarity Report to
improve your academic writing skills before submitting your final version.
You can find out more information in the Turnitin information site for students.
Late Submissions
The parameters for late submissions are outlined in the UNSW Assessment Implementation Procedure. For this
course, if you submit your assessments after the due date, you will incur penalties for late submission unless you
have Special Consideration (see below). Late submission is 5% per day (including weekends), calculated from the
marks allocated to that assessment (not your grade). Assessments will not be accepted more than 5 days late.
Extensions
You are expected to manage your time to meet assessment due dates. If you do require an extension to your
assessment, please make a request as early as possible before the due date via the special consideration portal on
myUNSW (My Student profile > Special Consideration). You can find more information on Special Consideration and
the application process below. Lecturers and tutors do not have the ability to grant extensions.
Special Consideration
Special consideration is the process for assessing the impact of short-term events beyond your control (exceptional
circumstances), on your performance in a specific assessment task.
What are circumstances beyond my control?
These are exceptional circumstances or situations that may:
 Prevent you from completing a course requirement,
 Keep you from attending an assessment,
 Stop you from submitting an assessment,
 Significantly affect your assessment performance.

Available here is a list of circumstances that may be beyond your control. This is only a list of examples, and your
exact circumstances may not be listed.
You can find more detail and the application form on the Special Consideration site, or in the UNSW Special
Consideration Application and Assessment Information for Students.

UNSW Business School

Use of AI
For this assessment, you may use AI-based software however please take note of the attribution requirements
described below:
Coding: You may freely use generative AI to generate R code for your analysis, without attribution. You do not need to
report this.
Written report: Use of generative AI in any way to produce the written (prose) portions of the report must be
completely documented by providing full transcripts of the input and output from generative AI with your submission.
Examples of use that must be documented (this is not an exhaustive list): editing your first draft, generating text for
the report, translation from another language into English.
Any output of generative AI software that is used within your written report must be attributed with full referencing. If
the outputs of generative AI software form part of your submission and is not appropriately attributed, your marker will
determine whether the omission is significant. If so, you may be asked to explain your understanding of your
submission. If you are unable to satisfactorily demonstrate your understanding of your submission you may be
referred to UNSW Conduct & Integrity Office for investigation for academic misconduct and possible penalties.

AI-related resources and support:
 Ethical and Responsible Use of Artificial Intelligence at UNSW
 Referencing and acknowledging the use of artificial intelligence tools
 Guide to Using Microsoft Copilot with Commercial Data Protection for UNSW Students

Assessment 2: Customer churn project
Stage 1  C Individual Report Stage 2  C Group Report

Week 7: 5:00pm Wednesday 10 July 2024

Week 9: 5:00pm Wednesday 24 July 2024
Individual report (template provided)

Group report

2 pages

~ 4 pages

Via Turnitin and attached as appendices with
Stage 2 submission


Via Turnitin

Description of assessment tasks
This is a group assessment with reporting being done in two stages. Students will be assigned to groups in Week 5
when this documentation is released. While reporting in done in two stages students are encouraged to commence
their collaboration within their group early in the process before the submission of the Stage 1 individual reports.

Stage 1: Complete the 2-page individual task using a data set specific to your Assessment 2 project group.
This first-stage submission contains key inputs into the group work that will result in the single group
report produced in Stage 2. Students who do not submit a complete, legitimate attempt of this
assessment will not be awarded marks for Stage 2.

This individual task will be separately assessed together with the Stage 2 group report, and
associated marks will be available together with Stage 2 marks. Because of the nature of the
relationship between the Stage 1 and 2 tasks, you will not receive your Stage 1 marks before
submitting Stage 2.

Stage 2: As a group, use the results from Stage 1 to produce a report for the Head of Management Services.
You will use R to explore a dataset that includes the pilot data together with extra observations and
variables (see attached Appendix A Data Dictionary). The pilot data are common to all students, but
the extra observations will vary across students according to their SID as they did in Assessment 1. A
group-specific data set will be determined by nominating the SID of one of the group members to
generate the single data set used by all group members in both stages of the project. Details for
obtaining the personalized group-specific data set will be provided on Moodle

Your Stage 2 group mark will be common to all students in your group who have submitted a
complete, legitimate attempt of Stage 1.

Note: The course content from Weeks 4, 5, and 7 will be of particular relevance to completing this Assessment.

UNSW Business School

Context of assessment tasks
The Head of Management Services of Freshland, a large grocery store chain in Australia, has made use of your
updated report (from Assessment 1) to deliver a presentation to the Senior Executive Group.
   Access this presentation via your Moodle course site.
Based on this initial analysis and recommendations, approval has been given for further analysis of customer loyalty
and churn using an expanded data set. The core task will involve a comparison of predictive models and subsequent
recommendations on how to use and improve these to inform future retention policies.

The analysis in the presentation to the Senior Executive Group was based on the initial pilot data set which was used
by the intern to produce the initial report and was part of the data provided to you with Assessment 1. These data
have now been extended, with extra variables being added. These extra variables are:

ltmem =1 if    3
mamt1 Average monthly expenditure ($) in first 6 months of previous year (2023)
mamt2 Average monthly expenditure ($) in second 6 months of previous year (2023)
fr1 Frequency of monthly transactions in first 6 months of previous year; 1 (low) 2 (medium), 3 (high)
fr2 Frequency of monthly transactions in second 6 months of previous year; 1 (low) 2 (medium), 3 (high)
rind XYZ risk index in the form of a predicted probability of customer churn

You and your team have been tasked with investigating alternative algorithms for predicting customer churn. Given
the structure of data that has been made available, you have been advised to define churning to be when a customer
has previously had non-zero transactions for at least 6 months but then has zero transactions in the next six-month
period. The outcome of interest is the binary variable churn. Given the available data, an observation for a customer
will have  = 1 if 1 > 0?&?2 = 0? and ? = 0 if 1 > 0?&?2 > 0. 

The Head of Management Services has given you authority to use your expert judgment to make the necessary
modelling choices but has outlined an overarching research plan for you and your group to follow:

 Currently, Management Services has a basic regression model (details below) that can be used to predict
future customer expenditure for members of the rewards program. It has been suggested that this could be
used to generate a risk index where those with predicted expenditures that are low relative to actual
expenditures being deemed as high risk of no longer shopping at the store.
 However, there were suggestions that the existing model could be improved as a predictor of expenditures
and your group has been asked to evaluate a range of model extensions.
 The current focus is on predicting churn. Based on the performance of the alternative models in predicting
expenditures, choose one and analyse whether it also performs well in predicting churn.
 An analytics firm, XYZ, that uses proprietary predictive methodology has offered a trial of their products by
providing a predictor of churn. Your evaluation of predictive performance should include a comparison of this
predictor with that generated by your chosen regression-based predictor.
 Based on this analysis, make recommendations on using such algorithms in initiatives targeting customers at
risk of churning with the aim of retaining them as loyal customers.
o Notice that any recommendation to employ the predictors of the analytics firm would involve
additional cost compared to a method produced in-house by Management Services.
o In addition, any decision to employ the predictors of XYZ will not include documentation of the
methodology used to generate the predictions.
o It might also be that you conclude that neither predictor is adequate and that it would be appropriate
to explore alternative predictors or approaches. You are not expected to explore such

内容概要:本文详细介绍了Maven的下载、安装与配置方法。Maven是基于项目对象模型(POM)的概念,用于项目管理和构建自动化的工具,能有效管理项目依赖、规范项目结构并提供标准化的构建流程。文章首先简述了Maven的功能特点及其重要性,接着列出了系统要求,包括操作系统、磁盘空间等。随后,分别针对Windows、macOS和Linux系统的用户提供了详细的下载和安装指导,涵盖了解压安装包、配置环境变量的具体操作。此外,还讲解了如何配置本地仓库和镜像源(如阿里云),以优化依赖项的下载速度。最后,给出了常见的错误解决方案,如环境变量配置错误、JDK版本不兼容等问题的处理方法。 适合人群:适用于初学者以及有一定经验的Java开发人员,特别是那些希望提升项目构建和依赖管理效率的技术人员。 使用场景及目标: ①帮助开发者掌握Maven的基本概念和功能特性; ②指导用户完成Maven在不同操作系统上的安装与配置; ③教会用户如何配置本地仓库和镜像源以加快依赖项下载; ④解决常见的安装和配置过程中遇到的问题。 阅读建议:由于Maven的安装和配置涉及多个步骤,建议读者按照文中提供的顺序逐步操作,并仔细检查每个环节的细节,尤其是环境变量的配置。同时,在遇到问题时,可参考文末提供的常见问题解决方案,确保顺利完成整个配置过程。
资源下载链接为: https://pan.quark.cn/s/abbae039bf2a 旅行商问题(Traveling Salesman Problem, TSP)是一种经典的组合优化问题,目标是找到一条最短路径,让推销员访问一系列城市后返回起点,且每个城市只访问一次。该问题可以转化为图论问题,其中城市是节点,城市间的距离是边的权重。遗传算法是一种适合解决TSP这类NP难问题的全局优化方法,其核心是模拟生物进化过程,包括初始化、选择、交叉和变异等步骤。 初始化:生成初始种群,每个个体(染色体)表示一种旅行路径,通常用随机序列表示,如1到18的整数序列。 适应度计算:适应度函数用于衡量染色体的优劣,即路径总距离。总距离越小,适应度越高。 选择过程:采用轮盘赌选择机制,根据适应度以一定概率选择个体进入下一代,适应度高的个体被选中的概率更大。 交叉操作:一般采用单点交叉,随机选择交叉点,交换两个父代个体的部分基因段生成子代。 变异操作:采用均匀多点变异,随机选择多个点进行变异,变异点的新值在预设范围内随机生成,以维持种群多样性。 反Grefenstette编码:为确保解的可行性,需将变异后的Grefenstette编码转换回原始城市序列,即对交叉和变异结果进行反向处理。 迭代优化:重复上述步骤,直至满足终止条件,如达到预设代数或适应度阈值。 MATLAB是一种强大的数值和科学计算工具,非常适合实现遗传算法。通过编写源程序,可以构建遗传算法框架,处理TSP问题的细节,包括数据结构定义、算法流程控制以及适应度计算、选择、交叉和变异操作的实现。遗传算法虽不能保证找到最优解,但在小规模TSP问题中能提供不错的近似解。对于大规模TSP问题,可结合局部搜索、多算法融合等策略提升解的质量。在实际应用中,遗传算法常与其他优化方法结合,用于解决复杂的调度和路径规划问题。
对不起,我在之前的回答中提到的WM_COMM_READDATA是一个自定义的消息,而不是Windows API中的定义。我混淆了一些概念,对此我感到抱歉。 在C++中,Windows API并没有提供专门用于读取串口数据的消息。通常,你可以使用ReadFile函数来读取串口数据。下面是一个简单的示例代码,演示如何读取串口数据: ```cpp #include <iostream> #include <windows.h> int main() { const char* portName = "COM1"; // 串口名称,根据实际情况修改 // 打开串口 HANDLE hSerial = CreateFile(portName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); // 检查串口是否成功打开 if (hSerial == INVALID_HANDLE_VALUE) { // 处理错误 // ... return 1; } // 配置串口参数等操作 // ... // 读取串口数据 char buffer[1024]; // 缓冲区大小,根据实际情况调整 DWORD bytesRead; if (ReadFile(hSerial, buffer, sizeof(buffer), &bytesRead, NULL)) { // 读取成功 std::cout << "Received data: " << std::string(buffer, bytesRead) << std::endl; } else { // 读取失败 // 处理错误 // ... } // 关闭串口 CloseHandle(hSerial); return 0; } ``` 在上述示例中,我们使用CreateFile函数打开指定名称的串口,并获得一个句柄。然后,使用ReadFile函数从串口读取数据到缓冲区中,并检查读取是否成功。如果成功,我们将读取到的数据输出到控制台。最后,使用CloseHandle函数关闭串口句柄。 希望这次能够帮到你,如果还有其他问题,请随时提问。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值