First Job Via NYSC [A Predictive Model]

Gold Ochim
Dec 18, 2020 · 6 min read
Image for post
Image for post

A lot of Nigerian graduates hope that they’d be retained after their National Youth Service Corps (NYSC) especially if they served somewhere they’d always dreamed of working before. Some of these people basically just feel their first job after NYSC might be gotten through these places that they have served in via recommendation to some other company, retainment, posting to some other branch of the same company or organisation they served in, or something related. But this isn’t always the case. Most people go to starting afresh in searching for a job and fitting in properly.

**NYSC is a program undertaken by most Nigerian Graduates after graduating from a University or a Polytechnic. The aim is basically for nation building and development.***

So should I have some hope of getting my first job via NYSC? Knowing this would help make some major decision. Decisions such as paying the next rent, turning down a job offer or accepting it, relocating to another town, switching careers or learning a new skill, or simply allowing people understand how these selections, recommendations and retainment are done or generally just allowing people plan their lives as much as they can after service.

Well, trusting a model to make this life important decision would mean the model is properly validated. How well will you trust my model? Cos that’s what I’m about to do ;), build a predictive model.

I downloaded this dataset (Stutern Nigerian Graduate Report) from Kaggle but this data set was extracted from Stutern.

I first of all did some data cleaning in Excel because it was such a ‘raw data’. I eliminated 15 columns, that weren’t related to the task at hand, changed the title of the columns and made answers brief.

Then I took my data set to Jupyter Notebook.

You can find my codes HERE on Github

Image for post
Image for post

Next, I extracted information from the dataset, that is the column types, null values present, number of rows and columns to understand the data better.

Image for post
Image for post
Image for post
Image for post

EXPLORING THE DATASET

Image for post
Image for post
Image for post
Image for post

Most graduates for this survey graduated in 2015, 2016 and 2017. And the range of graduates’ graduating year for this survey is between 2013 to 2017. The highest number of graduates for this survey are from the year 2015; a total of 1327.

Gender:

Image for post
Image for post
Image for post
Image for post

From above, we see that the values in the gender column are Male, Female and ‘Prefer not to say’. The dataset is balanced between male and female but unbalanced when we consider the ‘prefer not to say’ option. The prefer not to say option is quite low (3). And although slight, female graduates are seen to be lesser than male graduates from this survey.

Polytechnic or University Attended:

Image for post
Image for post
Image for post
Image for post

There are different polytechnics and university represented in this survey. There are a total of 158 unique schools represented here

University of Lagos has the highest number of students in this survey, followed by Covenant University. Dorben Polytechnic has the lowest number of students represented in this survey as well as Federal Polytechnic, Mubi and others. The datasets aren’t quite balanced here. Comparing the number of rows covered by Lagos State Graduate and by Dorben Polytechnic, this shows that the dataset isn’t quite representing of all schools in Nigeria.

Federal Universities and Polytechnics have the highest number of representation followed by Private Universities, then State, Foreign schools and other Nigerian Schools not mentioned by names. The number from Federal Universities is quite understandable as most Nigerian Universities and colleges are owned by the Federal Government.

Qualification before First Job:

Image for post
Image for post

Bachelors Degee Holders are highly represented in this survey, followed by HND, Masters, OND, MBA and PhD’s. From this survey, it is observed that most Nigerians prefer to go through Universities than Polytechnics.

Job Search Mode:

Image for post
Image for post
Image for post
Image for post

Most graduates search for jobs or hear about jobs via personal contacts from family and friends. Social media is the second major place people search for jobs or get job vacancy information from. Recruitment agencies and online job sites is the third main place people get job vacancy information from. People barely get news about job vacancies directly from The employers websites.

Course and University Type:

Image for post
Image for post

From this survey, a lot of Nigerians study Computer Science in school. This is an interesting insight as what makes most developed countries is the level (growth) of Science and Technology in those countries.

From this, we can see that several Nigerians attend more of the Federal Schools than any other kind.

PREPARING THE DATASETS FOR THE MODEL

Image for post
Image for post

I later dropped irrelevant columns. The job search mode column was filled with the mode.

Image for post
Image for post

Conversion from strings to numerical values were done:

Image for post
Image for post

SPLITTING THE DATA SET TO TRAIN SET AND TEST SET

Image for post
Image for post

DEVELOPING THE DECISION TREE MODEL

The decision model was developed and the accuracy for the test and train data set were displayed as well as the confusion matrix.

Image for post
Image for post
Image for post
Image for post

From the confusion matrix, we can see that 777 were rightly predicted as No (No job via NYSC) and 205 were wrongly predicted as No, when they were supposed to have been predicted as yes (Yes, Job 1 via NYSC). 24 were predicted to be yes when they were actually no and 17 were predicted correctly to be yes.

Image for post
Image for post

Displaying the classification report and pickling(saving) the model.

PREDICTION

Predicting someone’s first job status via NYSC is shown below:

A prediction for a Female graduate who studied Economics in a Foreign University and whose job search mode is through Personal contacts, including family and friends.

Image for post
Image for post

Note that the meanings of the digits are displayed here

The predicted value (1-Yes) is that that Graduate will likely be retained, get recommendations from NYSC and her staff or anything related… but generally be offered a job via NYSC.

RECOMMENDATION

The features for this prediction can be expanded upon such as the state of origin of the graduates as well as the location(state) where they served, their roles during service, their age during their service year . Also using a larger data set will make the model more dependable. For better accuracy, Boosters can be used such as XGBoost, CATBoost, etc.

REFERENCE:

  1. Nigerian Graduate Report 2018 by Stutern | Kaggle
  2. National Youth Service Corps — Wikipedia

The Startup

Medium's largest active publication, followed by +771K people. Follow to join our community.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store