代写MATH3030、代做c/c++,Java程序
MATH3030: Coursework, Spring 2025
17/03/2025
• If you are a MATH4068 student, please stop reading and go and find the coursework for
MATH4068. This assessment is for MATH3030 students only.
• This coursework is ASSESSED and is worth 20% of the total module mark. It is split into two questions,
of equal weight.
• Deadline: Coursework should be submitted via the coursework submission area on the Moodle page
by Wednesday 30 April, 10am.
• Do not spend more time on this project than it merits - it is only worth 20% of the module mark.
• Format: Please submit a single pdf document. The easiest way to do this is to use R Markdown or
Quarto in R Studio. Do not submit raw markdown or R code - raw code (i.e. with no output,
plots, analysis etc) will receive a mark of 0.
• 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.
• Report length: Your solution should not be too long. You should aim to convey the important
details in a way that is easy to follow, but not excessively long. Avoid repetition and long print-outs of
uninteresting numerical output.
• Please post any questions about the coursework on the Moodle discussion boards. This will ensure that
all students receive the same level of support. Please be careful not to ask anything on the discussion
boards that reveals any part of your solution to other students.
• I will be available to discuss the coursework at our Tuesday or Thursday sessions during the semester. I
will not be meeting students 1-1 to discuss the coursework outside of these times.
Plagiarism and Academic Misconduct For all assessed coursework it is important that you submit
your own work. Some information about plagiarism is given on the Moodle webpage.
Grading The two questions carry equal weight, and both will be marked out of 10. You will be assessed on
both the technical content (use of R, appropriate choice of method) and on the presentation and interpretation
of your results.
1
Coursework
The file UN.csv is available on Moodle, and contains data from the United Nations about 141 different
countries from 1952 to 2007. This includes the GDP per capita, the life expectancy, and the population.
Load the data into R, and extract the three different types of measurement using the commands below:
UN <- read.csv('UN.csv')
gdp <- UN[,3:14] # The GDP per capita.
years <- seq(1952, 2007,5)
colnames(gdp) <- years
rownames(gdp) <- UN[,2]
lifeExp <- UN[,15:26] # the life expectancy
colnames(lifeExp) <- years
rownames(lifeExp) <- UN[,2]
popn <- UN[,27:38] # the population size
colnames(popn) <- years
rownames(popn) <- UN[,2]
In this project, you will analyse these data using the methods we have looked at during the module.
Question 1
Exploratory data analysis
Begin by creating some basic exploratory data analysis plots, showing how the three variables (GDP, life
expectancy, population) have changed over the past 70 years. For example, you could show should how the
average life expectancy and GDP per capita for each continent has changed through time. Note that there
are many different things you could try - please pick a small number of plots which you think are most
informative.
Principal component analysis
Carry out principal component analysis of the GDP and life expectancy data. Analyse the two variable types
independently (i.e. do PCA on GDP, then on life-expectancy). Things to consider include whether you use
the sample covariance or correlation matrix, how many principal components you would choose to retain in
your analysis, and interpretation of the leading principal components.
Use your analysis to produce scatter plots of the PC scores for GDP and life expectancy, labelling the names
of the countries and colouring the data points by continent. You can also plot the first PC score for life
expectancy against the first PC score for GDP (again colouring and labelling your plot). Briefly discuss these
plots, explaining what they illustrate for particular countries.
Canonical correlation analysis
Perform CCA using log(GDP) and life expectancy as the two sets of variables. Provide a scatter plot of the
first pair of CC variables, labelling and colouring the points. What do you conclude from your canonical
correlation analysis? What has been the effect of using log(gdp) rather than gdp as used in the PCA?
Multidimensional scaling
Perform multidimensional scaling using the combined dataset of log(GDP), life expectancy, and log(popn),
i.e., using
UN.transformed <- cbind(log(UN[,3:14]), UN[,15:26], log(UN[,27:38]))
Find and plot a 2-dimensional representation of the data. As before, colour each data point by the continent
it is on. Discuss the story told by this plot in comparison with what you have found previously.
2
Question 2
Linear discriminant analysis
Use linear discriminant analysis to train a classifier to predict the continent of each country using gdp,
lifeExp, and popn from 1952-2007. Test the accuracy of your model by randomly splitting the data into test
and training sets, and calculate the predictive accuracy on the test set.
Clustering
Apply a selection of clustering methods to the GDP and life expectancy data. Choose an appropriate number
of clusters using a suitable method, and discuss your results. For example, do different methods find similar
clusters, is there a natural interpretation for the clusters etc? Note that you might want to consider scaling
the data before applying any method.
UN.scaled <- UN[,1:26]
UN.scaled[,3:26] <- scale(UN[,3:26])
Linear regression
Finally, we will look at whether the life expectancy in 2007 for each country can be predicted by a country’s
GDP over the previous 55 years. Build a model to predict the life expectancy of a country in 2007 from its
GDP values (or from log(gdp)). Explain your choice of regression method, and assess its accuracy. You
may want to compare several different regression methods, and assess whether it is better to use the raw gdp
values or log(gdp) as the predictors.
3

热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图