**Fuzzy Time Series for Projecting School Enrollment in Malaysia**

\*\*Double blind review, please do not include authors information in this version \*\*

Received Date: \*date

Accepted Date: \*date

Published Date: \*date

**HIGHLIGHTS (Arial, 11)**

  - Authors should supply between 3-5 highlights on major research findings and should use Times New Roman 10 typeface.

  - Highlights should be brief with no more than 80 characters for each point and should not include citations.

  - Example highlights: <https://www.sciencedirect.com/science/article/pii/S1535610817302970>

  - Another example: <https://www.sciencedirect.com/science/article/pii/S0957417420304851>

ABSTRACT

*There are a variety of approaches to the problem of predicting educational enrollment. However, none of them could be used when the historical data are linguistic values. Fuzzy time series is an efficient and effective tool to deals with such problem. In this paper, the forecast of the enrollment of pre-primary, primary, secondary, and tertiary school in Malaysia is carried out using fuzzy time series approaches. A fuzzy time series model is developed using historical dataset collected from the United Nations Educational, Scientific, and Cultural Organization (UNESCO) from the year 1981 to 2018. A complete procedure is proposed which includes: fuzzifying the historical dataset, developing a fuzzy time series model, and calculating and interpreting the outputs. The accuracy and robustness of the model is also being examined to evaluate how good is the forecasting model developed. It is tested based on the value of mean squared error (MSE), Mean Absolute Percent Error (MAPE) and Mean Absolute Deviation (MAD). The lower the value of error measure, the higher the accuracy of the model. The result shows that fuzzy time series model developed for primary school enrollments is the most accurate with lowest error measure, which is the MSE value is 0.38, MAPE value is 0.43 and MAD value is 0.43 respectively.*

***Keywords: Fuzzy time series, School Enrollment, Forecasting, Education Level, Accuracy.***

# INTRODUCTION

It is very crucial to make reasonably accurate forecasting of the future school enrolment in Malaysia because many decisions of education system and resource planning will be made from them. Because of this reason, there are so many researchers have proposed a variety method to predict enrolments. Fuzzy time series is one of the popular approaches used by researchers in forecasting problems due to its high accuracy and effectiveness compared to the other methods. It is an idea formulated by Song and Chissom proposed in 1993. It has many applications such as, forecasting wheat production (Stevenson & Porter, 2009), forecasting rainfall distribution of a region (Dani & Sharma, 2013), forecasting short-term electric load proposed by Huang (2015) and etc.

A higher order fuzzy time series forecasting model based on adaptive expectation and ANN was suggested by Hakan et al., (2010). The forecasted values have been adjusted through adaptive expectation and feedforward neural network in ANN. Fuzzy relationships in the higher order fuzzy time series are defined easily using this approach. As a result, the forecasting precision has increased significantly as presented in the results. Chen et al., (2009) have used fuzzy time series in projecting the enrolments of the University of Alabama. The automatic clustering techniques and fuzzy logical relationships is used to analyse the data. This method is having higher accuracy with a smaller MSE value and was concluded to be more accurate than the previous methods. Mahdzar et al., (2015) used fuzzy time series in predicting the number of tourist arrivals in Sabah. The study was conducted to assist the government in effectively planning strategies that would maintain and increase the production of tourism in Malaysia.

From the literature, we can see that researchers have used fuzzy time series in various field. Therefore, this paper is carried out to show the application of fuzzy time series in projecting number of school enrolments in Malaysia.

# METHODOLOGY 

In this study, secondary data is taken from the United Nations Educational, Scientific, and Cultural Organization (UNESCO) institute. It is consisting of statistics of school enrolment in all stages of education in Malaysia from the year 1981 to 2018; a time-series data. A total of 16 weeks data from January to April 2015 is treated as the estimation period which is then be used to forecast the number of school enrolment for preceding years. The data is chosen just for simulation purposes to demonstrate the accuracy of the methods applied.

According to Hakan et al. (2014), fuzzy time series approach is able to deal with very small data and does not require the linearity assumption. This method makes the process of calculation become straightforward, (Dani & Sharma, 2013) and easy to apply in so many problems. There are seven steps to be followed. It can be summarized as follows:

**Step 1:** All data for pre-primary, primary, secondary, and tertiary school for the year 1981 until 2018 is imported into MS Excel. There are 38 data for each educational level, thus there are 152 data in total. The data is analysed and converted into percentage using MS Excel based on equation 1.1.

(1.1)

where, total number of school enrolment in the current year, and total number of school enrolment in the previous year. For example, the change of school enrolment from 1981 to 1982 was calculated according to equation (1.1) as follows:

**Step 2:** Based on the calculation in Step 1, the universe of discourse, and dissolution is defined into with equal length of an interval as The value of and are identified to define *U*. Next, the universe of discourse is defined as where and are two proper positive numbers to be assigned in . The actual value can be seen in Table 1 below.

**Table 1:** The minimum value, maximum value, the value of , and value of for all levels of education

| **Level of education** | **Minimum value (%)** | **Maximum value (%)** | **Value of** | **Value of** |
| ---------------------- | --------------------- | --------------------- | ------------ | ------------ |
| Pre-primary school     | \-24.57               | 49.46                 | 5.43         | 0.54         |
| Primary school         | \-1.72                | 2.94                  | 0.28         | 0.06         |
| Secondary school       | \-4.12                | 12.31                 | 0.88         | 0.69         |
| Tertiary school        | \-10.57               | 38.81                 | 0.43         | 1.19         |

Based on the values in Table 1, the universe of discourse, , was determined in this step as shown in Table 2.

> **Table 2**: Table of universe of discourse

| **Level of education** | **Universe of discourse** |
| ---------------------- | ------------------------- |
| Pre-primary school     |                           |
| Primary school         |                           |
| Secondary school       |                           |
| Tertiary school        |                           |

**Step 3:** The fuzzy set is partitioned into several length intervals. In this study, is equal to anywhere in the range of 1 until 7 because the data in each education level are different every year. Then, the fuzzification of interval and the frequency distribution of each interval is calculated. The length of the interval for fuzzification is calculated using equation (1.2).

Length of interval (1.2)

The actual calculation of values as follows:

Length of interval for pre-primary school \(= \frac{50 - \left( - 30 \right)}{7} = 11.43
\)Length of interval for primary school \(= \frac{3 - \left( - 2 \right)}{7} = 0.71
\)Length of interval for secondary school \(= \frac{13 - \left( - 5 \right)}{7} = 2.57
\)Length of interval for tertiary school \(= \frac{40 - \left( - 11 \right)}{7} = 7.29
\)After that, the intervals are fuzzified, where the value of this length is added into each interval. The actual values of interval length for all education stage are presented in Table 3.

> **Table 3**: The length of interval for pre-primary and primary school

| Pre-primary school | Primary school | Secondary school | Tertiary school |
| ------------------ | -------------- | ---------------- | --------------- |
|                    |                |                  |                 |
|                    |                |                  |                 |
|                    |                |                  |                 |
|                    |                |                  |                 |
|                    |                |                  |                 |
|                    |                |                  |                 |
|                    |                |                  |                 |

After the fuzzification process, the frequency distribution is generated for each interval as shown in Table 4.

> **Table 4**: Frequency distribution of each interval for pre-primary and primary school

| **Intervals** | **Numbers of data**    |                    |                      |                     |
| ------------- | ---------------------- | ------------------ | -------------------- | ------------------- |
|               | **Pre-primary school** | **Primary school** | **Secondary school** | **Tertiary school** |
|               | 1                      | 4                  | 5                    | 3                   |
|               | 3                      | 2                  | 12                   | 10                  |
|               | 18                     | 12                 | 12                   | 13                  |
|               | 11                     | 10                 | 3                    | 7                   |
|               | 1                      | 5                  | 3                    | 2                   |
|               | 1                      | 2                  | 1                    | 1                   |
|               | 2                      | 2                  | 1                    | 1                   |

The equal length of the interval is divided by numbers of data for each interval. An example of calculation is shown below:

\(v_{i}\) for Pre-primary school:

\(v_{1} = \left\lbrack - 30.00,18.57 \right)\) with the length of 11.43,

\(v_{2} = \left\lbrack - 18.57, - 14.76 \right),...,v_{4} = \left\lbrack - 10.95, - 7.14 \right)\) with the length 3.81, etc.

**Step 4:** The number of intervals will be following the number of linguistic variables which is this study used trapezoidal fuzzy sets \(A_{1},A_{2},\ldots,A_{m}\) as represented below.

\[A_{1} = \left\lbrack b_{0},b_{1},b_{2},b_{3} \right\rbrack,
\]

\-

.

An example of actual interval generated in fuzzy trapezoidal for pre primary school as follows:

> Pre-primary school:

\[{A_{1} = \left\lbrack - 33.81, - 30.00, - 18.57, - 14.76 \right\rbrack,
}{A_{2} = \left\lbrack - 30.00, - 18.57, - 14.76, - 10.95 \right\rbrack,
}{A_{3} = \left\lbrack - 18.57, - 14.76, - 10.95, - 7.14 \right\rbrack,
}\]

\[A_{37} = \left\lbrack 38.57,44.29,50.00,55.72 \right\rbrack.\]

**Step 5:** All the data is listed in percentage and being classified based on the interval that has been generated in Step 4. The fuzzy set shows a linguistics value and if the data is founded in the range of then it will be a fuzzy number, . Then, the fuzzy logical relationships are generated based on the classified data. Fuzzy logical relation is symbolised as follows: ,

where is the present state and is the upcoming state. The actual fuzzified data is produced and categorized into the corresponding fuzzy number as shown in Table 5.

> **Table 5:** An example of fuzzified total school enrolment for pre-primary school

| **Year** | **Total enrolment** | **Changes (%)** | **Fuzzified total enrolment** |
| -------- | ------------------- | --------------- | ----------------------------- |
| 1981     | 21.73               |                 |                               |
| 1982     | 30.55               | 40.59           | A37                           |
| 1983     | 32.64               | 6.84            | A26                           |
| 1984     | 33.12               | 1.47            | A19                           |
| .        | .                   | .               | .                             |
| .        | .                   | .               | .                             |
| 2016     | 96.94               | \-0.08          | A17                           |
| 2017     | 99.97               | 3.13            | A22                           |
| 2018     | 99.22               | \-0.75          | A16                           |

Then, fuzzy logical relationship is also constructed for all datasets. An example of logical relationship is shown in Table 6.

> **Table 6**: Fuzzy logical relationship for pre-primary school

|  |  |  |  |  |  |
|  |  |  |  |  |  |
|  |  |  |  |  |  |
|  |  |  |  |  |  |
|  |  |  |  |  |  |
|  |  |  |  |  |  |
|  |  |  |  |  |  |

**Step 6:** Fuzzy relationship group are generated in this step. The fuzzy logical relationships’ rule is also arranged in groups as follows:

**Table 7**: Some of Fuzzy logical relationship based on their rule for pre-primary school

| **Fuzzy set** | **Relationship** | **Rule** |
| ------------- | ---------------- | -------- |
|               | One to many      | Rule 3   |
|               | One to one       | Rule 2   |
|               | One to many      | Rule 3   |
|               | One to many      | Rule 3   |
| .             | .                | .        |
| .             | .                | .        |
|               | One to many      | Rule 3   |
|               | One to one       | Rule 2   |

**Step 7:** Each fuzzy relationship rule group are classified into one of the three different types of rule. The predicted production for each group is different according to the rule set. The rules involved in this step are shown as follows:

> **Rule 1**: The fuzzy group of is empty, which means has no relationship with others. It can be represented as \(\varnothing\) or . The forecast value for this rule is
> 
> **Rule 2**: The fuzzy group of is one to one, which means there is only one relationship withand can be written as . The forecast value is .
> 
> **Rule 3**: The fuzzy group is one to many. For example:
> 
> , and . It is written as and the forecast value will be calculated as follows:
> 
> (1.3)
> 
> (1.4)
> 
> where *n* is the number of in this group.

**Example of calculation for Step 7**

The data in this study are classified into two type of rules, which are Rule 2 and Rule 3. For Rule 2, the fuzzy logical relationship group for the year 1995 to 1996 is . Step 4 was repeated to get the trapezoidal number of using the following calculation:

\= -18.57%

Based on the that was calculated for the forecast value for the year 1996.

The fuzzified total school enrolment for Rule 3 is:

Then,

\=4.79%

**The process is repeated to forecast the number school enrollment of the remaining fuzzy logical relationships group.**

**Accuracy Test**

In this study, the accuracy of the forecasted value is evaluated using Mean Square Error(MSE), Mean Absolute Percentage Error (MAPE) and Mean Absolute Deviation(MAD). The value of MSE is calculated using equation (1.5) , MAPE using equation (1.6) and MAD using equation (1.7).

|       |       |       |
| ----- | ----- | ----- |
| (1.5) | (1.6) | (1.7) |

where, = the actual value of total school enrolment at time \(t\), = the forecasted value of total school enrolment and *n* = numbers of data. The value of MAPE, MSE and MAD are analyzed based on the lowest value of error measure.

**FINDINGS AND DISCUSSIONS**

The forecasted values in percentage are changed into the total value of the school enrolment. Table 2 shows the comparison between the actual number of school enrolment and the forecasted values each year using FTS for all level of school in Malaysia. The forecasted value for the year 1981 and 1982 could not be evaluated because there are no previous input data for these two years.

**Table 8:** The forecasted value for Pre-primary, Primary, Secondary and Tertiary school

| **Years** | **Pre-primary School** | **Primary School** | **Secondary School** | **Tertiary School** |                 |                  |                 |                  |
| --------- | ---------------------- | ------------------ | -------------------- | ------------------- | --------------- | ---------------- | --------------- | ---------------- |
|           | Total enrolment        | Forecasted value   | Total enrolment      | Forecasted value    | Total enrolment | Forecasted value | Total enrolment | Forecasted value |
| 1981      | 21.73                  |                    | 96.34                |                     | 57.19           |                  | 3.82            |                  |
| 1982      | 30.55                  |                    | 95.91                |                     | 57.33           |                  | 3.99            |                  |
| 1983      | 32.64                  | 28.92              | 95.51                | 95.85               | 60.79           | 62.14            | 4.33            | 4.27             |
| 1984      | 33.12                  | 33.31              | 95.27                | 95.45               | 62.97           | 65.83            | 4.32            | 4.34             |
| 1985      | 35.19                  | 34.71              | 95.64                | 96.07               | 63.18           | 63.06            | 4.81            | 4.86             |
| 1986      | 34.12                  | 36.54              | 96.33                | 96.45               | 69.25           | 68.48            | 5.72            | 5.23             |
| 1987      | 35.64                  | 36.12              | 95.9                 | 95.98               | 68.06           | 68.46            | 6.73            | 7.35             |
| 1988      | 32.95                  | 39.58              | 96.11                | 95.84               | 66.33           | 67.47            | 7.35            | 7.40             |
| 1989      | 35.79                  | 36.25              | 94.69                | 94.83               | 65.39           | 65.85            | 7.38            | 7.41             |
| 1990      | 34.86                  | 41.10              | 94.79                | 95.23               | 63.41           | 63.58            | 6.6             | 6.84             |
| 1991      | 38.86                  | 39.07              | 94.61                | 94.94               | 64.53           | 64.65            | 7.18            | 7.22             |
| 1992      | 39.42                  | 39.66              | 94.4                 | 94.54               | 65.61           | 64.69            | 7.88            | 7.95             |
| 1993      | 40.11                  | 41.31              | 95.37                | 95.19               | 64.53           | 65.77            | 8.91            | 9.54             |
| 1994      | 59.95                  | 59.02              | 96.53                | 96.40               | 64.78           | 63.97            | 9.22            | 8.96             |
| 1995      | 45.22                  | 56.76              | 97.15                | 97.12               | 64.82           | 66.43            | 10.14           | 10.21            |
| 1996      | 40.02                  | 40.77              | 97.25                | 97.33               | 66.43           | 66.61            | 12.97           | 12.28            |
| 1997      | 41.95                  | 42.36              | 97.48                | 97.40               | 70.01           | 70.80            | 15.59           | 14.88            |
| 1998      | 56.54                  | 46.59              | 97.82                | 97.16               | 78.63           | 75.81            | 21.64           | 20.03            |
| 1999      | 54.5                   | 54.84              | 96.14                | 96.30               | 77.85           | 77.73            | 22.62           | 24.83            |
| 2000      | 52.05                  | 52.51              | 95.86                | 96.01               | 77.41           | 77.54            | 25.62           | 24.19            |
| 2001      | 52.38                  | 52.79              | 98.68                | 96.98               | 76.9            | 77.44            | 25              | 25.77            |
| 2002      | 52.67                  | 54.56              | 98.08                | 98.54               | 77.02           | 76.92            | 27.44           | 26.89            |
| 2003      | 55.68                  | 54.86              | 96.6                 | 97.49               | 82.9            | 83.48            | 30.61           | 33.23            |
| 2004      | 59.86                  | 61.84              | 97.37                | 97.15               | 84.13           | 84.35            | 30.03           | 33.27            |
| 2005      | 61.89                  | 62.30              | 99.72                | 100.12              | 80.66           | 83.07            | 27.92           | 28.42            |
| 2006      | 57.19                  | 61.04              | 99.99                | 99.58               | 79.73           | 79.82            | 28.41           | 28.80            |
| 2007      | 62.04                  | 62.91              | 98.69                | 99.66               | 77.48           | 79.47            | 30.01           | 30.14            |
| 2008      | 74.40                  | 71.25              | 97.95                | 98.08               | 77.11           | 76.93            | 33.44           | 33.74            |
| 2009      | 76.91                  | 77.43              | 97.98                | 97.36               | 76.12           | 76.72            | 35.49           | 36.35            |
| 2010      | 79.14                  | 75.85              | 98.66                | 98.72               | 77.27           | 75.87            | 37.03           | 37.25            |
| 2011      | 81.23                  | 82.40              | 99.76                | 99.86               | 77.47           | 76.30            | 36.15           | 39.59            |
| 2012      | 84.67                  | 84.58              | 101.08               | 100.84              | 81.48           | 83.97            | 37.61           | 38.88            |
| 2013      | 89.41                  | 90.06              | 102.74               | 103.21              | 81.87           | 82.03            | 39.07           | 38.74            |
| 2014      | 93.01                  | 92.83              | 104.66               | 103.75              | 85.35           | 83.96            | 39.51           | 40.24            |
| 2015      | 97.02                  | 98.93              | 104.36               | 105.69              | 84.93           | 85.47            | 45.59           | 46.06            |
| 2016      | 96.94                  | 107.75             | 103.82               | 105.58              | 84.71           | 84.50            | 46.76           | 47.03            |
| 2017      | 99.97                  | 100.89             | 105                  | 105.08              | 85.45           | 85.65            | 43.72           | 44.26            |
| 2018      | 99.22                  | 98.60              | 105.29               | 106.13              | 81.99           | 82.84            | 45.13           | 45.09            |

Figure 1 illustrate the ups-and-down movement of the data between the actual and the forecasted values. The horizontal axis of the graph displays the timeframe from the year 1981 to 2018 and the vertical axis represents the total numbers of school enrollments. In overall movement, it shows that most of the forecasted values are closest to the actual data. Hence, to be more specific, the error values are calculated.

<span class="chart">\[CHART\]</span>

> **Figure 1:** The graph of the actual and forecasted value for pre-primary school

Table 9 shows the values of MSE, MAPE and MAD for four different level of education.

**Table 9**: The value of MSE, MAPE and MAD

| **Education Level** | **MSE** | **MAPE** | **MAD** |
| ------------------- | ------- | -------- | ------- |
| Pre-primary         | 14.10   | 4.4      | 2.23    |
| Primary             | 0.38    | 0.43     | 0.43    |
| Secondary           | 1.39    | 1.19     | 1.68    |
| Tertiary            | 1.28    | 3.35     | 0.72    |

The model for primary school enrolment has produced the lowest MSE, MAPE and MAD which are 0.38, 0.43 and 0.43 respectively. This indicates that the forecasted values of fuzzy time series model are most accurate for the data of primary school enrolment. Meanwhile the highest error produced for the data of Pre-primary school. This result might be affected by the situation whereas the enrolments of children for pre-primary school are influenced by many unpredictable factors.

**CONCLUSION AND RECOMMENDATIONS**

The important part of the prediction is identifying the smallest error to determine the most accurate mathematical model that can fit the actual data. In this study, fuzzy time series approach is used to generate the mathematical model of school enrolment for pre-primary, primary, secondary, and tertiary school in Malaysia from 1981 to 2018. The actual data and the forecasted data are analyzed to determine the difference between these two data. By calculating the lowest value of MSE, MAPE and MAD for each stage of education, the mathematical model with the best accuracy was determined. The best result came from the model constructed for the data of primary school enrolment with lowest values of MSE, MAPE and MAD which are 0.38, 0.43 and 0.43 respectively. In overall, the values of error measures of model for all education level are still reasonable and acceptable to show that fuzzy time series approach is an effective and accurate way to predict number of school’s enrolment.

This study has been done with only one method which is fuzzy time series approach. In future it might be possible to analyze the same data by using another approaches such as Artificial Neural Network (ANN) or hybrid method which is a combination of two different model which might produce a better result.

**REFERENCES**
