Highlights
1. Use R to solve the following system of linear equations: x + y + z + w = 13, 2x + 3y − w = −1, −3x + 4y + z + 2w = 10, x + 2y − z + w = 1.
2. Download the food.csv dataset from the ELE page. The data is from the DEFRA website showing the consumption in grams (per person, per week) of 17 different types of foodstuff measured and averaged in the four countries of the United Kingdom in 1997.
a. As a first step read in the data and transform it into a form that can be used for Principal Component Analysis (PCA). Hint: When transforming the data keep in mind that PCA can only be applied on numeric datasets and that the food dataset has 17 features and 4 observations.
b. Perform PCA (without reducing the dimensions) similarly to Exercise 4 of the first Problem Sheet. Find the eigenvalues of the covariance matrix, and determine the minimum number of eigenvalues we would have to choose in order to explain at least 95% of the variation in the data.
c. Project the data onto its first principal component and plot the result. Next, project the data onto its first two principal components and plot the result. Using these plots, can you identify any patterns in the data? In particular, is there a country that appears to be different from the rest? If so which one is it?
d. Using your conclusions from part c., can you identify food types in the original dataset that might cause the observed pattern?
3. The aim of this exercise is to compress a colour RBG-image (that is, one that’s not greyscaled) of your choice using Principal Component Analysis (PCA) similarly to Exercise 5 of the first Problem Sheet. Note that when you import a colour RBG-image into R that image will be stored in a 3-dimensional array. This array contains three matrices, where the first matrix gives the Red colour channel, the second matrix gives the Green colour channel, and the third matrix gives the Blue colour channel.
a. Separate the Red, Green and Blue colour channels, and perform PCA on the resulting matrices separately.
b. Decide how many principal components you want to use, then construct the compressed version of each colour channel. Recall that a colour RBG-image is stored in a 3- dimensional array where each matrix corresponds to a colour channel. Thus in order to get the compressed version of your original image you need to recreate this 3-dimensional array from the compressed colour components.
c. Export at least 4 images with different resolutions. At least one of the four images should be unrecognisable (or barely recognisable), and at least one should be easily recognisable. Find the compression ratio for each of the four images
This Data Analytics Assignment has been solved by our Data Analytics Assignment Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.