首页 > 编程语言 >ETM5900谈谈用java处理excel问题

ETM5900谈谈用java处理excel问题

时间:2023-09-01 19:45:53浏览次数:40  
标签:java excel ETM5900 patients patient female marks Table data

ETM5900  
Assignment 1
Question 1 [Total 23 Marks]

A group of researchers are interested in studying the prevalence of obesity, diabetes, and other
cardiovascular risk factors in Subang Jaya, Selangor. To gain more insight into this question,
1150 subjects were interviewed and some of the results obtained are compiled in the data file
A1 S2 2023.xls. The columns provide the following information:

Column A: the patient ID

Column B: the level of stabilised glucose

Column C: The total level of cholesterol

Column D: the level of high-density-lipoprotein (“good” cholesterol)

Column E: the weight of the patient

Column F: the gender of the patient
Column G: the type of body frame (small, medium, large)

The data is available on the “A1 S2 2023.xls” file on the Moodle. You must use your subsample
of the survey data. Your sample will consist of 200 observations starting from the respondent
whose ID is the same as the last three digits of your student number. For example, if your
student number is 20275749, you would use individuals 749 to 948.

All tables, graphs and comments for this question should be places in the designated spaces in
the Worksheet Results.

(a) Complete Table (a). Use Countif or another method to find the frequencies for the
number of male and female patients in the sample and hence complete Table (a).
[2 marks]

(b) Display the data in Table (a) using an appropriate chart to be placed in the Graph (b)
Textbox. [2 marks]

(c) Using Countif or any other appropriate method, complete Table (c) by filling in the
frequencies of male and female patients according to their type of body frame.
[2 marks]

(d) Display the data in Table (c) using an appropriate chart to be placed in the Graph (d)
Textbox. [2 marks]

(e) Complete Table (e) containing the summary statistics for the HDL (high-density-
lipoprotein or “good” cholesterol) variable according to the patient gender.
[2 marks]

(f) Complete the grouped frequency Table for the HDL (“good” cholesterol) for female and
male patients [Table (f)]. Find the frequency and hence calculate the percentage
frequency and cumulative percentage frequency for female and male patients. [2 marks]

(g) Is the level of “good” cholesterol (HDL) different for the two groups? Use figures from
Table (e) to help you explain any differences. [3 marks]

(h) Construct percentage frequency polygons for the HDL for female and male students as one chart
as Graph (h). [3 marks]

(i) Discuss the shape of the percentage frequency polygons for the HDL levels for female
and male patients. [3 marks]

(j) List the four measures of variability from the summary statistics. Which one of the
HDL (female or male patients) shows more variability? You are required to use your
sample result to answer this question. [4 marks]

Question 2 [Total 13 Marks]

a. Based on your sample size, construct a contingency Table between the gender of the
patient and the type of body frame. [1.5 marks]

b. Who are the majority of patients and what is their probability? [1.5 marks]

c. What is the probability that the randomly selected patient is a medium body frame?
[2 mark]
d. What is the probability that a randomly selected patient is female and has a large
frame? [2 marks]
e. Using the conditional percentage and appropriate Research Question, write a short report
[about 70 words] to hospital management regarding the gender of the patient and the type
of body frame. [6 marks]

Question 3 [Total 8 Marks]
The file travellers.xls on Moodle contains a worksheet of raw data. The data have been
collected from 3999 travelers as they arrive at Kuala Lumpur International Airport. The sheet
contains the country (region) they came from and the main purpose of their visit (work, study
or tourism), so there are two categorical variables to be examined: one is Region and the other
is Purpose.

You must use your subsample of the survey data. Your sample will consist of 500 observations
starting from the respondent whose ID is the same as the last three digits of your student
number. For example, if your student number is 20275249, you would use individuals 249 to
748.

Do travelers from all regions tend to visit Kuala Lumpur for study? You are required to identify
the dependent and independent variable. Using the conditional percentage and appropriate
Research Question indicate if there is an association between region and purpose of visit to
Kuala Lumpur. [8 marks]

Question 4 [Total 6 Marks]

General Hospital's patient account division has compiled data on the age of accounts
receivables. The data collected indicate that the age of the accounts follows a normal
distribution with a population mean of 28 days and a population standard deviation of 8 days.
a. What proportion of the accounts are between 20 and 40 days old? [2 marks]
b. What proportion of the accounts are less than 30 days old? [1 mark]
c. What is the number of days in which 75% of all accounts are above? [3 marks]

 

标签:java,excel,ETM5900,patients,patient,female,marks,Table,data
From: https://www.cnblogs.com/goodnewss/p/17672719.html

相关文章

  • JavaScript—DOM
    传统获取方式传统方式元素获取方式<bodyclass="mybody"><inputtype="button"value="点击"id="btn"><divid="dv1"name="mydiv"class="cls"><p>111</p>......
  • JavaScript—BOM
    概念BOM(BrowserObjectModel)是指浏览器对象模型,浏览器对象模型提供了独立于内容的、可以与浏览器窗口进行互动的对象结构。BOM由多个对象组成,其中代表浏览器窗口的window对象是BOM的顶层对象,其他对象都是该对象的子对象。我们在浏览器中的一些操作都可以使用BdM的方式进行编程......
  • JavaScript—轮播图
    概念轮播图(Carousel)是一种常见的网页设计元素,用于展示多张图片或信息。它通常由一个容器和一组水平排列的图片或内容组成。轮播图中的图片会按照一定的规律(例如自动轮播、点击切换或滑动切换等)进行切换,以便在有限的空间内展示多个内容。HTML元素网页元素<divclass="wrap">......
  • JavaScript—数组
    数组的概念数组是指一组数据的集合,其中的每一个数据称作元素在数组中可以存放任意类型的元素。数组是一种将一组数据存储在单个变量名下的方式。创建数组创建数组vararr=newArray();//使用new创建一个空数组vararr0=[];//利用数组字面量创建数组vara......
  • JavaScript—作用域
    JavaScript作用域:就是代码名字(变量)在某个范围内起作用和效果。目的是/为了提高程序的可靠性同时减少命名冲突。JavaScript作用域在(es6)之前:全局作用域和局部作用域。全局作用域:整个Script标签或者一个单独的js文件。局部作用域:在函数内部就是局部作用域。这个代码名字只在函数......
  • JavaScript—内置对象
    内置对象是什么JavaScript中的对象分为三种:自定义对象,内置对象和浏览器对象。前面两种对象是JS基础内容,属于ECMAScript;第三个浏览器对象属于我们JS独有的。内置对象就是指JS语言自带的一些对象,这些对象供开发者使用,并提供了一些常用的或是最基本而必要的功能(属性和方法)。内置......
  • JavaScript—对象
    为什么需要对象保存一个值时,可以使用变量,保存多个值(一组值)时,可以使用数组。如果要保存一个人的完整信息(信息面板)呢?在JavaScript中,对象是一组无序的相关属性和方法的集合,所有的事物都是对象,例如字符串、数值、数组、函数等。对象是由属性和方法组成。属性:事物的特征,在对象中用......
  • JavaScript—预解析
    预解析口诀:先声明再调用JavaScript代码是由浏览器中的JavaScript解析器来执行的。JavaScript解析器在运行JavaScript代码的时候分为两步:预解析和代码执行。 预解析的变量问题 /*console.log(unknow);*///报错:使用了未定义的变量console.log(num);......
  • JavaScript—简单类型与复杂类型
    简单数据类型的内存分配简单类型又叫做基本数据类型或者值类型,复杂类型又叫做引用类型。(简单)值类型:简单数据类型/基本数据类型,在存储时变量中存储的是值本身,因此叫做值类型:string,number,boolean,undefined,null。简单数据类型存放在栈里面查看代码vartimer=null;......
  • ⛳ Java - IO
    ⛳Java-IO在Java中,IO(Input/Output)是指用于处理输入和输出端饿相关类和接口......