Paper Set A
Paper Set A
UNIVERSITY OF DELHI
END TERM PRACTICAL EXAM, MAY 2025
PROCEDURE OF SUBMISSION
Step 1. First, create a folder on the desktop of the system allocated to you. The
name of the folder should be your complete EXAM Roll number. (Do
not put your College Roll Number as the name of the folder)
Step 2. In that folder, create sub-folders representing questions. Each sub-folder is
to be named according to the question you attempt. Let’s say you attempt
Q.1, Q.2, Q.3 and Q.5. Accordingly, your sub-folders should be Q. 1, Q.2,
Q.3 and Q.5.
Step 3. For each question, you will be asked to save a file in the corresponding
sub-folder. Save this file in the format of Q.2._Sub part_lastfour digits of
the roll no. Let’s say you are attempting Q.2. (a) and your exam roll no is
278145867. Then you must save this as Q2_a_5867
Step 4. In each question, submission is to be made in a particular format. You
must follow the same.
-----------------------------------------------------------------------------------------------------------------------
----------
-:P.T.O:-
Question 1:
Page 1 of 8
Create the above dataset in Excel. Clean the data in a separate sheet in the same
excel file. While data cleaning, please also ensure consistency in format, outliers
and missing values in the data.
After cleaning the data, you are required to visualize the data set using suitable
software (Excel, PowerBi, or R). Prepare a suitable Dashboard/ Visualization for the
cleaned dataset.
Question 2:
XYZ Company is trying to reduce its employee attrition across various branches. It
hires you as a consultant. You collect the data below from its branches regarding
various variables related to employee attrition.
Analyse the data for anomalies of regression using Average Employee Attrition
as the explained variable in R. Explain your workings and interpret the results as
comments in the R-Script. Are the results meaningful? If yes, which variable(s)
should be worked upon to reduce the employee attrition? Predict the value of
Average Employee Attrition if weekly work hours are 50 hours.
DATA IS IN PAGE 3
Page 2 of 8
Employ
ee
per branch employees
Attritio
n
230.1 22.1 37.8 69.2
44.5 10.4 39.3 45.1
17.2 12 45.9 69.3
151.5 16.5 41.3 58.5
180.8 17.9 10.8 58.4
8.7 7.2 48.9 75
57.5 11.8 32.8 23.5
120.2 13.2 19.6 11.6
8.6 15.5 2.1 1
199.8 15.6 2.6 21.2
66.1 12.6 5.8 24.2
214.7 17.4 24 4
23.8 9.2 35.1 65.9
97.5 13.7 7.6 7.2
204.1 19 32.9 46
195.4 22.4 47.7 52.9
67.8 12.5 36.6 114
281.4 24.4 39.6 55.8
69.2 11.3 20.5 18.3
147.3 14.6 23.9 19.1
218.4 18 27.7 53.4
237.4 17.5 5.1 23.5
13.2 5.6 15.9 49.6
228.3 20.5 16.9 26.2
62.3 9.7 12.6 18.3
Question 3
Create two files:
File 1: Customer Details
Customer ID, Customer-Name, City
D101, Alok, Delhi
D102, Tanya, Bengaluru
D103, Kunal, Hyderabad
D104, Ritika, Mumbai
D105, Arjun, Kolkata
Page 3 of 8
Transaction Customer Sales Cost
Product
No ID (₹) (₹)
T07 D102 Printer 7000 5000
T08 D103 Tablet 22000 18000
T09 D104 Trolley Bag 4500 3500
T10 D105 Headphones 3500 2500
Question 4:
Do the following in R:
Create a data frame titled “db” of the following variables with any five
datapoints (“elements”) for the following variables:
o Employee ID (empid), class must be character
o Department (dept), class must be factor
o Employee name (emname), class must be character
o Experience Year (ey), class must be integer
o Weekly Hours (wh), class must be numeric
o Monthly Sales (ms), class must be numeric
o Gross salary (gs), class must be numeric
o Taxes (txs), class must be numeric, 10%of the Gross Salary
o Net Salary, Gross Salary-Taxes, class is self-explanatory
Determine Mean, Standard deviation, and Quartiles for the numeric values in
the dataframe.
Create a histogram of net salary.
Create a properly titled box plot of experience in years.
Create a properly titled scatter plot of weekly hours.
Compute covariance and correlation between Experience in Years and net
salary. Interpret the covariance and correlation as comments in R.
Compute coefficient of determination between monthly sales and net salary.
Interpret the same as comments in R.
Question 5:
Process the below data set in Excel.
After performing the processing steps, load this data set into R as file. In R,
Calculate descriptive statistics i.e. measures of central tendency and
dispersion.
Visualise the data using proper titled scatter plots, histograms or any other
appropriate visualization method
Page 4 of 8
Create a linear model using Median House Value as the explained variable
and remaining variables as explanatory variables.
Explain as comments in R if the regression is useful for prediction?
Check for homoskedasticity and multi-collinearity. Interpret the results as
comments in R-Script.
Question 6:
From the Text in italics only, generate a wordcloud (minimum frequency>2) and a
sentiment barplot in R.
Interpret the wordcloud and the sentiment chart as comments in the R-Script itself.
Your R-script for the same must have codes for processing including removing
numbers, stopwords, and punctuations amongst others.
TEXT:
“Hon’ble Members,
1. It gives me immense pleasure to address this session of Parliament.
Page 5 of 8
Just two months ago, we celebrated the 75th anniversary of adoption of our
Constitution, and only a few days ago, the Indian Republic completed 75 years of its
journey. This occasion will elevate India pride as the mother of democracy to new
heights. On behalf of all the citizens of the country, I pay tribute to Babasaheb
Ambedkar and all the framers of the Constitution.
Hon’ble Members,
2. The historic festival of Mahakumbh is also underway in the country. Mahakumbh
is a festival of India cultural tradition and social consciousness. Millions of devotees
from across the country and the world have taken the holy dip at Prayagraj. I
express my sorrow over the unfortunate incident that occurred on Mauni Amavasya
and wish for the speedy recovery of the injured.
A few days ago, we lost the former Prime Minister of the country, Dr. Manmohan
Singhji. He served thenation as Prime Minister for ten years and was a long-time
member of Parliament. I offer my heartfelt tribute to Manmohan Singhji.
Hon’ble Members,
3. My government is infusing new energy through unprecedented achievements in
this Amrit Kaal of India’s development journey. The pace of work has tripled in this
third term. Today, the nation is witnessing major decisions and policies being
implemented at an extraordinary speed, with the highest priority given to the poor,
the middle class, the youth, women, and farmers.
In the third term of my Government, concrete steps have been taken to achieve the
goal of providing “Housing for All”. Extending the Pradhan Mantri Awas Yojana, we
have decided to provide new homes to an additional three crore families. A budget
of 5,36,000 crore rupees has been allocated for this purpose.
My government is committed to granting ownership rights of residential land to the
rural poor and promoting financial inclusion. Under the SVAMITVA scheme, we have
issued 2.25 crore property cards so far, of which approximately 70 lakh property
cards have been distributed in the last six months alone.
Under the PM Kisan Samman Nidhi scheme, 41,000 crore rupees has been
disbursed to crores of farmers in recent months. The Dharti Aaba Tribal Village
Utkarsh; campaign has been launched for the upliftment of five crore people from
tribal communities, with an allocation of 80,000 crore rupees for this initiative.
Under the Ayushman Bharat scheme, six crore senior citizens aged 70 years and
above will receive health insurance, with a health cover of 5 lakh rupees per year.
For small entrepreneurs, the loan limit under the MUDRA scheme has been
increased from 10 lakh rupees to 20 lakh rupees. My government has placed
special focus on education for the youth and creating new employment
opportunities for them. The PM Vidyalakshmi scheme has been introduced to
provide financial assistance to meritorious students for higher education.
Additionally, one crore youth will be given internship opportunities in the top 500
companies. A new law has been enacted to prevent incidents of paper leaks and
ensure transparency in recruitment. Following the spirit of prosperity through
cooperation, the government has approved the proposal to establish the
‘Tribhuvan’ Cooperative University.
Under the fourth phase of the Pradhan Mantri Gram Sadak Yojana, the government
has sanctioned 70,000 crore rupees to connect 25,000 habitations. As the country
celebrates the centenary year of Atal Ji’s birth, the Pradhan Mantri Gram Sadak
Yojana continues to embody his vision.
Currently, 71 Vande Bharat, Amrit Bharat, and Namo Bharat trains are operational
across the country, with 17 new Vande Bharat trains and one Namo Bharat train
Page 6 of 8
added in the past six months. The government has also made swift progress on
critical issues like 'One Nation-One Election; and the ;Waqf Act Amendment.'
Hon’ble Members,
4. The decade-long tenure of my government has infused new energy into the
journey of a ‘Viksit Bharat’. In the vision of a ‘Viksit Bharat’... there is the collective
strength of public participation, a roadmap for the nation economic progress, the
power of technology in the form of a digital revolution, and the foundation of
modern infrastructure.
The government is steering India towards becoming the world’s third-largest
economy.
To ensure that the journey towards ‘Viksit Bharat’ continues to be guided by the
ideals of our Constitution, the government has placed four key principles—service,
good governance, prosperity, and pride—at the core of its governance.
The government is making rapid advances in its commitment to reform, perform,
and transform.
The guiding mantra of my government is “Sabka Saath, Sabka Vikas, Sabka
Vishwas, Sabka Prayas” and its goal is the creation of a ‘Viksit Bharat’.
Hon’ble Members,
5. Development is truly meaningful when its benefits reach the person standing at
the last rung of society. This is the essence of Antyodaya, to which my government
has been unwaveringly committed.
When poor people are provided with a dignified life, it instils a sense of
empowerment that helps them fight poverty.
Initiatives like the construction of 12 crore toilets under the Swachh Bharat Abhiyan,
10 crore free LPG connections under the Pradhan Mantri Ujjwala Yojana, ration for
80 crore needy citizens, the Saubhagya Yojana, and the Jal Jeevan Mission have
given poor the confidence that they can live with dignity. Due to such efforts, 25
crore people have overcome poverty and are moving forward in life. They have
formed a Neo Middle Class, a group that is infusing new energy into India’s growth
journey.
Hon’ble Members,
6. The economic progress of a nation like India is defined by the aspirations of the
middle class and the fulfilment of those aspirations. The bigger the dreams of the
middle class are, the higher the nation soars. It is my government that has, for the
first time, openly acknowledged and appreciated the contributions of the middle
class on every occasion.
Government employees are also significant representatives of the middle class.
Recently, my government decided to constitute the Eighth Pay Commission for the
welfare of government employees. This decision will lay the foundation for
substantial salary increase for government employees in the coming years.
Additionally, the central government has decided to provide 50% assured pension
to lakhs of employees under the Unified Pension Scheme, which has been widely
welcomed.
My government is equally committed to fulfilling the middle class’s dream of
owning a home. Laws like RERA have been introduced to safeguard their dreams.
Subsidies on home loans are being provided.
Through the UDAN scheme, about 1.5 crore people have fulfilled their dream of
flying in airplanes. Jan Aushadhi Kendras, offering medicines at 80% concessional
rates have helped save more than 30,000 crore rupees for citizens. The multifold
increase in the number of seats for education in various disciplines has significantly
benefited the middle class.
Page 7 of 8
Acknowledging the role of taxpayers in nation-building, my government has
simplified tax-related processes. The introduction of faceless assessments has
enhanced transparency and reduced tax disputes.
Senior citizens aged 75 years and above who get only pension now have the choice
of deciding about filing their income tax returns.”
****
Page 8 of 8