IslanderPregnancy <- 
  read_csv("~/Documents/MATH 247/Mini-Project 3 Data Collection Tidied - Sheet1.csv")
head(IslanderPregnancy, n=2)

Introduction

Literature done on the subject of pregnancy oftentimes focus specifically on teen pregnancy, or pregnancies which would lead to unhealthy children. Research in the past has shown that teen pregnancy drops significantly with increased education, and also that with more education mothers tend to have healthier children. One article states that “Neoclassical models of fertility predict that increased female education induces a trade-off between child quantity and child quality,” and that “Empirically, the correlations between female schooling, lower fertility, and improved child health and human capital are well known” (Keats, 2018, pg. 142). These studies tend to focus on women’s pregnancy as something that simply happens, without taking into account the decisions and factors which may play a role in the initiation of a pregnancy. Especially with studies conducted on the impact of secondary schooling, such as the Journal of Human Resources article which finds “qualified evidence that secondary schooling causes a sharp drop in the probability of teen pregnancy,” schooling seems to be a physical barrier to girls being forced into motherhood through customs and practices which erase their agency and force upon them a future in which they had no say (Ozier, 2018, pg. 159).

However, I am curious on how education has an impact on women who can choose whether or not to have children, as opposed to having the child-bearing forced upon their existence. When a woman is in a healthy place in life, where she has a choice between child-bearing or not, what influences her decision and how does she make one ultimately? For example, in Kim’s paper “Female education and its impact on fertility,” he finds that educated women adopt modern birth control methods than uneducated women and therefore have more agency over whether or not they get pregnant, which seems to suggest that educated women may have more control over their pregnancies through their access to more materials (Kim, 2016, pg. 1). The knowledge of proper birth control methods and the ability to acquire them are both important in reinforcing women’s abilities to choose for themselves, and these two factors both seem to increase with increased education.

In this project, I wish to answer the research question “does a college level education have an association with women’s choice to have children?”

Though my research question is not designed to gauge the true answer to this question of women’s agency, because agency is less quantifiable than number of pregnancies, I wish to know if acquiring higher level education changes the way a woman may think about pregnancy, and thus have an impact on her fertility. By looking deeper into education’s connection to specifically grown women’s fertility, I come closer to learning about how a woman’s choice is impacted by her education.

My parameter of interest within this context is the difference in population means of pregnancy between women who have started or gone to college and women who have not started or gone to college. Before actually conducting any tests for statistical significance, I suspect that the actual parameter value will show a lower population mean of pregnancy for women who have started or gone to college than the population mean of pregnancy for women who have not started or gone to college. However, in the following project report I will conduct a two-tailed test, which follows from an alternative hypothesis which assumes the parameter is not equal to zero. This may seem like a mismatch from my suspicions here, but I conduct the two-tailed test as a way to test a baseline for probing whether the two different population means are different at all.

Data Collection Methods

The observational units, or subjects, for this study are the female Islanders. To measure the explanatory variable, which is education level, I look at the Islanders’ life summaries through the years, and determine whether or not they have gone to university. As far as I have been able to tell, if an Islander goes to college, they will graduate, and I have not come across any case in which they enter university but never graduate (other than university students who are still undergoing the education). To measure the response variable, the number of pregnancies, I also look to the Islanders’ life summaries and count the number of times they have been pregnant. For this study, I count all the pregnancies regardless of if it actually ends in childbirth, because I am more interested in learning about a woman’s choice to get pregnant as opposed to the actual biology of her pregnancy. Occasionally, an Islander’s record will be incomplete and I can only see the number of children she has without knowing how many pregnancies she has undergone. In those circumstances, I assume that her number of pregnancies is equal to the number of children she has.

One important and convenient factor for this study is that in order to measure education level and number of pregnancies, the researcher does not have to obtain explicit consent from the Islanders, and therefore the “response” rate is 100%.

To select subjects for the study, I first calculated the total population of all the three islands of Ironbard, Providence, and Bonne Sante, which turned out to be 37,492 people. Then, I calculated the percent of the total population for each individual city on an island. For example, Blonduos in Ironbard had a city population of 882 people, which was 0.0235 of the total population. Using these percentages, I made an approximation of how many subjects from each city I should obtain data from if I had a sample size of 100. Following the Blonduos example, then, I would mathematically obtain 2.35 people. However, because people cannot be fractions or decimals, I round down or up according to the tenths place. Thus, I would take 2 people from Blonduos but 4 people from Vardo because the percentage value of Bardo (0.0394) translated to 3.94 people, which I rounded up to 4. An important note here is that time on the Islands is still flowing, and so the total populations and the populations for the cities are always in flux. I calculated my numbers on the 24th of October, 2023, which will change as the days go by. However, I believe that my calculations and populations count are a good estimate even with the minor changes of the Islands, so I will rely on them even if they may have slightly changed in the duration of the study.

After obtaining the values for how many individuals I should select from each city, I then used a random number generator (random.org) and set the minimum to 1 and the maximum to the greatest house number in a city. For example, in Blonduos that biggest house number is 445, and so the maximum value I set for the random number generator would be 445. Then I generate a number, and go to the house number indicated. For example, if the random number generator generates 81, then I go to house 81 of Blonduos and I look at the inhabitants. If there are no women in the house, then I don’t count that as a data point and I generate a new number. If there is a woman in the house, defined as a female aged 18 or older, then I click into her profile and look at her life summary. I then record the two variables as indicated above. If there is more than one female aged 18 or older in a house, I choose the first person in the list and record her data only. This is because two people living in the same house are likely to share similar lifestyles, and I am trying to survey as many different women as I can.

Descriptive Statistics

The variables I used in conducting my statistical testing for this project are educational level and number of pregnancies. Both of these variables pertain to the Islander women. The explanatory variable is educational level, which is a binary categorical variable with the two possibilities of “College” or “No College.” The response variable is the number of pregnancies, which is a quantitative variable.

Below, I have compiled the side-by-side boxplots for the two groups of women who have gone to college versus those who have not. Along with the boxplots I have also compiled the summary statistics for the two groups. At first look, the side-by-side boxplots don’t seem to reveal any sort of association between the two variables. The median for both groups is very very similar, as are their variability. The group of women with no college education does have one outlier which lies above the other values, but its minimum and maximum are otherwise almost exactly the same as the values for the group of women with a college education. Another visible difference is that the upper quartile for the group of women who did not go to college is smaller than the group of women who did go to college, but it does not to be a dramatic difference.

What we observe graphically with the boxplots is corroborated with the summary statistics. A comparison of the values for the two different groups reveal very little difference. The minimum value for both groups is 0, which makes sense because that’s the least number of children a woman could have. The lower quartile value for both groups is 1, the median value for both groups is 2. As observed in the boxplot, the summary statistics indicate that the upper quartile is greater for the group of women with a college education than the group of women without, the values being 3.5 and 3.0 respectively. Lastly, the maximum value for women with no college education is 7, which in the boxplot was displayed as an outlier. The means for both graphs are also very similar, with the mean number of children for college-educated women being 2.46 and the same statistic being 2.03 for those without a college education. The standard deviations for the two groups of women are also very similar, with 1.64 for the group of women with college education and 1.62 for the group of women without a college education.

All of the analysis above points to great similarities between the two groups of women, which makes me begin to suspect that there is no statistically significant difference between the number of pregnancies had by women with college education versus without.

bwplot(Pregnancies ~ Education,
       horizontal = FALSE, 
       main="Side-by-side boxplots",
       data = IslanderPregnancy)

favstats(Pregnancies ~ Education, data = IslanderPregnancy)

Analysis of Results

The parameter which I wish to examine with my test of significance is the difference between population means of the number of pregnancies women with college educations have and the number of pregnancies women without college educations have. The population is all the women Islanders.

The null hypothesis I will test for this project is that the difference between the population means of number of pregnancies women with college educations have and the population means of number of pregnancies women without college educations have is 0. Stated another way, the null hypothesis is that there is no association between the variable education level and the number of pregnancies a woman has. The alternative hypothesis is that the difference between the population means of number of pregnancies women with college educations have and the population means of number of pregnancies women without college educations have is not 0. This can also mean that the alternative hypothesis states that there is an association between the variable education level and the number of pregnancies a woman has, and the population mean number of pregnancies for women with college education is not the same for women without college education.

The null and alternative hypotheses can be represented in symbols as below:

\[H_0: \mu_{college}-\mu_{none} = 0\] \[H_a: \mu_{college}-\mu_{none} \neq 0\] A Type I error is when the null hypothesis is true and we falsely reject it, and a Type II error is when the null hypothesis is false but we fail to reject it. In this context, a Type I error represents a situation where the difference in population mean numbers of pregnancies between the two groups of women with or without pregnancies is indeed 0, but we reject it mistakenly. A Type II error would occur in a situation where the difference in population mean numbers of pregnancies between the two groups of women with or without pregnancies is not 0, but in which we falsely fail to reject the null hypothesis. Because the stakes of getting this particular test of significance wrong are not very high, I do not feel that either a Type I or Type II error presents a more detrimental mistake.

Because I used stratified sampling in this study by dividing the women into subgroups by town, and then randomly sampled each town, I believe my sample is a reasonable representation of greater population of women on the Islands. Not only did I make sure to incorporate some women from all the different regions, I chose them in a random process, which should help eliminate any biases which may have occurred during the process.

Using a theory-based approach, the appropriate test for comparing two means is the two-sample t-test. First I will derive the difference in sample means of numbers of pregnancies for the women in the different groups, and then I will standardize that statistic using R code. In this situation, my standardized statistic will be the t-statistic.

As the R-code below shows, my t-statistic comes out to be approximately 1.24.

stat(t.test(Pregnancies ~ Education, data = IslanderPregnancy))
##        t 
## 1.241668

Is this a valid result, and does my data fulfill the validity conditions? I have 63 observations for the group of women with a college education, and 34 women in the group with no college education, so there are at least 20 observations for either group. Reading the histograms below, it also appears that their shapes are approximately symmetric, despite the minimum value for number of pregnancies being 0. Therefore, I believe that the t-distribution is an appropriate means of approximating my data.

histogram(~Pregnancies | Education, data = IslanderPregnancy, width = 1, layout = c(1, 2))

To find the p-value corresponding to my t-statistic, I ran the bit of R code below to derive the p-value of 0.22. What this p-value means is that assuming my null hypothesis is true, and that the difference between population means of numbers of pregnancies between the two groups of women is 0, the probability of observing our sample statistic, which is the difference between the sample means of numbers of pregnancies between the two groups of women, is 0.22.

pval(t.test(Pregnancies ~ Education, data = IslanderPregnancy))
##   p.value 
## 0.2185948

This p-value is not a statistically significant value, because a probability of observing our sample statistic which is 0.22 is not a low probability, and would be a likely value if the null hypothesis is true. Therefore, this p-value would lead us to fail to reject the null hypothesis. As such, the difference between the population means of number of pregnancies women with college educations have and the population means of number of pregnancies women without college educations could very likely be 0.

The 95% confidence interval for the parameter of interest is (-0.26, 1.12). This means that I am 95% confident that the difference in population means of number of pregnancies between the two groups of women is between -0.26 and 1.12. Notice that the lower bound is a negative value, which is a viable option because even though the minimum number of pregnancies a woman can have is 0, our parameter is interested in the difference between the two populations, and if one is smaller than the other their difference can come out to be negative. This confidence interval contains the value 0 in it, which corroborates the conclusion I came to using the p-value earlier. Since 0 is within the 95% confidence interval, it is a plausible value for the difference between the population means, and supports my previous assertion that we fail to reject the null hypothesis with this set of data.

confint(t.test(Pregnancies ~ Education, data = IslanderPregnancy))

Conclusion

Based on my significance tests, my data shows that there is no evidence of a statistically significant difference between the population means of numbers of pregnancies for women Islanders who had a college education and women Islanders who did not have a college education. Using a simulation-based two-sample t-test, I calculated the standardized t-statistic for the difference between the sample means of numbers of pregnancies, which in turn resulted in a p-value of 0.22 Because this is a large p-value, it doesn’t provide sufficient evidence for us to reject the null hypothesis, and hence my previously-stated conclusion.

Because I took a careful sampling process so I would be able to generalize my sample conclusions to the larger population, I believe my conclusion for my 97 women applies to women on the rest of the island too.

When I started this project, I expected women with college educations to have fewer pregnancies than women without college educations. I was operating under the assumption that childbirth is a very baseline and physical experience which has been enforced upon women throughout the centuries through the routine suppression of female potential and curiosity. Therefore, if women received a higher education, they would become more aware of the possibilities waiting for them in life. Therefore, the baseline of women having children would move up and women would choose to exercise their agency by pursuing other matters like careers or focus on themselves as opposed to having children. Thus, the results that I received surprised me. It turns out that having a college education did not change the number of pregnancies a woman had. Additionally, though this is not formally part of the study, while I was collecting my data I noticed that many women were able to pursue careers while having children.

If I were to redo my project, I would like to pay special attention to the average age at which women Islanders become pregnant. While collecting data for this project, I noticed a high rate of teen pregnancy, which might defeat the entire purpose of me investigating whether college had a role to play in shaping the women’s decisions to have children. Similarly, I noticed that basically all the women worked and still had kids, so I could investigate if having a career decreased a woman’s number of pregnancies.

If someone wanted to take my research going forward, I would be curious to hear what the women have to say for themselves. I can picture a project in which the researchers actually asked the women what influenced their decisions to have children, and from there understand if college played a role in that decision. Oftentimes people are whittled into a single data point, but it may be more helpful to see them as living breathing humans with their own set of perspectives. If there is a research project in the future that can look into those perspective, I believe it would be helpful for understanding women and education. Therefore, a similar question may be “What are the most frequent factors women reference for their decision to have or not have children.”

Bibliography

Anthony Keats, Women’s schooling, fertility, and child health outcomes: Evidence from Uganda’s free primary education program, Journal of Development Economics, Volume 135, 2018, Pages 142-159, ISSN 0304-3878, https://doi.org/10.1016/j.jdeveco.2018.07.002. Accessed 10/27/23.

Owen Ozier, The Impact of Secondary Schooling in Kenya: A Regression Discontinuity Analysis, Journal of Human Resources, Volume 53, Number 1, Winter 2018, Pages 157-188, https://doi.org/10.3368/jhr.53.1.0915-7407R. Accessed 10/27/23.

Jungho Kim, Female education and its impact on fertility, World of Labor, February 2016, https://doi.org/10.15185/izawol.228.v2. Accessed 10/27/23.