When will you marry? (Age prediction)

Comments: 7 comments

I remember tweeting when I was in my late teens or early 20s that if my marriage age was not 22, it probably would be my mid-30s. It wasn’t like I knew what I was saying at the time but the reactions seemed like getting married in one’s 30s is a big deal. I’m 30 today and still young, pretty and more intelligent, I wouldn’t worry too much about it.

Anyway, there’s this question that has been coming up lately, “When are you getting married?” It’s been coming up for years but how about I answer it today with some data analysis.

I was looking for a dataset to build a model to predict my marriage age but I didn’t find one that suited my needs. So, I decided to create my dataset. My predictor variables were few because I didn’t have the answer to many questions I think would have made the model stronger. It also didn’t help that I don’t know a lot of people or have a lot of time to build a dataset with many people so I expect a lot of bias.

The dataset and variables

I ended up with records of 40 people and used Alteryx for this predictive analysis. This is the field summary snapshot of my dataset:

The following variables have largely skewed data:

Geopolitical zone: I did this based on the six zones we have in Nigeria but I know more Yoruba people than any other part of the country. Since I am predicting my marriage age and I’m also a Yoruba girl, it’s not a big deal.

Marriage age: Most of the women I know that are married, did in their 20s, I have older friends but elles ne sont pas mariées (they are not married). This variable is going to mess up my model, but I am just catching a cruise here anyway.

Location: I have mostly lived in Lagos, most of my friends did as well

Academic qualification: I have Bsc, BA, MSc, MBBS, LL.B. The BSC, BA degrees have higher frequencies and I believe this is general and not just in my circle

Religion: I used Christianity and Islam, the popular religions in Nigeria.

Occupation category: This doesn’t seem skewed but I just want to explain the categories. I created two groups, Group A is for the ones that have to have a university degree to practice what they do, e.g Doctors, Lawyers and certain professionals. The rest are like me, no specific university degree is needed to practice what we do. It’s debatable, but I wasn’t ready to create more than two groups

Other variables I would have liked to include are Size, Height, Number of serious relationships. It would be nice to know if a particular size/height group gets married faster. If the number of relationships affects etc.  In retrospect, I didn’t have to make this a single-gender dataset since I used neutral variables.

Building the model

I don’t know how to not sound technical here, so I would just keep it brief.

70% of the dataset was chosen to create the Estimation set, and 30% to create the Validation set. The dataset was trained using the forest model and the plot below shows variables of importance:

The top variable is the star sign, so that is the highest predictor of the age I would get married

Marriage age:

Ladies and gentlemen, after putting in my details I present to you my predicted marriage age. 

So if my marriage age prediction is 27, and I am 30, do I have to build a time travel machine?

If it wasn’t clear, this is a joke. I wouldn’t predict my marriage age based on these variables. However, do you think there’s a science to this topic, and what variables do you think would help build a better model?

In other news, 

Comment List

  • Dipo 21 / 07 / 2021 Reply

    It’s evident your 30’s is for catching cruise. I’m down for that, let’s go.

    • Rolake 21 / 07 / 2021 Reply

      lol. Let’s go!

  • Lanks 21 / 07 / 2021 Reply

    Congratulations 🎊 doll
    Many happy returns…

    • Rolake 21 / 07 / 2021 Reply

      Thanks sis

  • Samuel 21 / 07 / 2021 Reply

    Your 30th birthday is a great time to look back at your life. Just remember that you’re still young and can go anywhere from here. Wishing you all the best on your birthday and in the years to come.

  • Rolake 21 / 07 / 2021 Reply

    Thanks Samuel

Leave a Reply