Galoitica: Journal of Mathematical Structures and Applications cover
Galoitica: Journal of Mathematical Structures and Applications

Online ISSN 2834-5568

Full Length Article

Volume 4 • Issue 2 • PP: 08-23 • 2023

Random Numbers Generation and Goodness-of-Fit Testing for Literal Neutrosophic Numbers

Mohamed Bisher Zeina 1* ,
Mohamad Taher Anan 1 ,
Yousef Marjamak 1
1Faculty of Science, Department of Mathematical Statistics, University of Aleppo, Aleppo, Syria
* Corresponding Author.
verified

Open Access & Copyright

© 2023 The Author(s). Published by ASPG. This article is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

Abstract

This paper presents an algorithm for generating random numbers that follow literal neutrosophic distributions using algebraic isomorphisms. The algorithm was applied to three distributions: literal neutrosophic uniform distribution, literal neutrosophic exponential distribution, and literal neutrosophic normal distribution. We also proposed a development of the Kolmogorov-Smirnov test to analyze goodness-of-fit for literal neutrosophic data. To evaluate the effectiveness of the proposed method, a simulation study was conducted, and the power results showed that increasing the sample size improved the test power. Our research contributes to the development of statistical methods for analyzing literal neutrosophic data, which has applications in a wide range of fields.

Full Text

This HTML version is generated from the article PDF. The PDF remains the version of record.

1. Introduction

Random numbers generation is the process of generating a sequence of numbers that appear to be random, with no predictable pattern or structure. Random numbers are a fundamental component of many applications in probability theory and statistics, as well as in various fields such as finance, engineering, computer science, and cryptography. [1]

In probability theory, random numbers play a critical role in simulation and modeling. Simulations are often used to study the behavior of complex systems or to estimate the probability of rare events. To perform such simulations, random numbers are used to represent the various sources of uncertainty in the system being modeled. For example, in a simulation of a manufacturing process, random numbers might be used to represent the variation in the size or weight of raw materials, or the variability in machine settings or operator behavior.

The use of random numbers in simulation allows the modeler to study the behavior of the system under a wide range of possible scenarios, and to estimate the likelihood of various outcomes. [2-3]

Random numbers also play a critical role in statistical inference, which is the process of drawing conclusions about a population based on a sample of data. Random sampling is a common method used in statistics to select a subset of individuals or units from a larger population for analysis. By using random sampling, it is possible to ensure that the sample is representative of the population, and to make statistical inferences about the population based on the characteristics of the sample. In addition, random numbers are used in various statistical tests to determine whether an observed pattern or result is likely to have occurred by chance or is statistically significant. [4]

There are many methods for generating random numbers, ranging from simple coin flips and dice rolls to more sophisticated algorithms based on complex mathematical formulas or physical processes. The choice of a particular method depends on the application and the desired properties of the random numbers, such as their distribution, independence, and reproducibility. [5]

In neutrosophic sets theory many goodness of fit tests were generalized to handle uncertain interval valued data like [6-10], but until this moment there is no test can handle neutrosophic literal numbers of the form 𝑁= 𝑎+ 𝑏𝐼 ; 𝐼2 = 𝐼. So, in this paper we will first represent a method for generating random numbers follow a specific literal neutrosophic probability distribution then we represent a goodness of fit approach that assure the null hypothesis of having no significant difference between the generated numbers and the generator distribution.

2. Preliminaries

Definition 2.1 [11]

Let 𝑅(𝐼) be the literal neutrosophic real numbers set, we say that 𝑁∈𝑅(𝐼) if 𝑁= 𝑎+ 𝑏𝐼 ; 𝑎, 𝑏∈𝑅 & 𝐼2 = 𝐼.

Definition 2.2 [12]

Let 𝑅(𝐼) be the literal neutrosophic real numbers set, transformation 𝑇 defined below is called the AHisometry:

𝑇: 𝑅(𝐼) →𝑅2 ∶ 𝑇(𝑎+ 𝑏𝐼) = (𝑎, 𝑎+ 𝑏) (1) And its inverse is defined by:
𝑇−1: 𝑅2 →𝑅(𝐼) ∶ 𝑇−1(𝑎, 𝑏) = 𝑎+ (𝑏−𝑎)𝐼 (2) Note:

Let 𝑁1, 𝑁2 ∈𝑅(𝐼) and 𝑇 be the AH-Isometry, 𝑇 is an algebraic isomorphism and it satisfies the following properties:

1. 𝑇(𝑥𝑁+ 𝑦𝑁) = 𝑇(𝑥𝑁) + 𝑇(𝑦𝑁) 2. 𝑇(𝑥𝑁∙𝑦𝑁) = 𝑇(𝑥𝑁) ∙𝑇(𝑦𝑁)

3. 𝑇 is correspondence one-to-one.

4. 𝑇 preserves distances.

Definition 2.3 [12]

Let 𝑁1 = 𝑎1 + 𝑏1𝐼, 𝑁2 = 𝑎2 + 𝑏2𝐼∈𝑅(𝐼), we say that 𝑁1 ≤𝑁2 if:
𝑎1 ≤𝑎2  &  𝑎1 + 𝑏1 ≤𝑎2 + 𝑏2

Definition 2.4 [13]

Let 𝑓: 𝑅(𝐼) →𝑅(𝐼); 𝑓= 𝑓(𝑥𝑁) where 𝑥𝑁= 𝑥1 + 𝑥2𝐼∈𝑅(𝐼) then 𝑓 is called a neutrosophic real function

with one neutrosophic variable.

Definition 2.5 [14-15]

Literal neutrosophic random variable 𝑋𝑁 is defined as follows:

𝑋𝑁: Ω1 × Ω2(𝐼) →𝑅(𝐼)

Where:

𝑋𝑁= 𝑋1 + 𝑋2𝐼

And:

𝑋1, 𝑋2 are both real valued crisp random variables defined on Ω1, Ω2 respectively and taking values in 𝑅.

Definition 2.6 [7]

Literal neutrosophic probability 𝑃𝑁 is defined as follows:

𝑃𝑁= 𝑝1 + 𝑝2𝐼 ; 𝑝1 ∈[0,1] , 𝑝1 + 𝑝2 ∈[0,1] , 𝐼2 = 𝐼

1. Proposed Algorithm for Random Literal Neutrosophic Numbers Generating

Say that 𝑃𝑁= 𝑝1 + 𝑝2𝐼 is a literal neutrosophic probability that describes the literal neutrosophic cumulative probability distribution 𝐹𝑁(𝑥𝑁; Θ𝑁) where Θ𝑁= Θ1 + Θ2𝐼 is a vector of distribution’s parameters, i.e., 𝑃𝑁=

𝐹𝑁(𝑥𝑁; Θ𝑁), then to generate random literal neutrosophic numbers following distribution 𝐹𝑁 we can follow the following steps:

1. Solve the neutrosophic equation 𝑃𝑁= 𝐹𝑁(𝑥𝑁; Θ𝑁) for 𝑥𝑁 to get an equation of the form:

𝑥𝑁= ΦN(𝑃𝑁; Θ𝑁) (3)

2. Take the isometry to equation (3).

3. You will have two equations of the form:

𝑥1 = Φ(𝑝1; Θ1) (4)
𝑥1 + 𝑥2 = Φ(𝑝1 + 𝑝2; Θ1 + Θ2) (5)

4. Generate a random number for 𝑝1 in [0,1] and for 𝑝1 + 𝑝2 in [0,1] (a crisp uniformly distributed number).

5. Solve equations (4-5) with respect to 𝑥1, 𝑥2.

6. The random literal neutrosophic number will be:

𝑥𝑁= 𝑥1 + 𝑥2𝐼

7. Repeat steps 4 to 6 until you have the sufficient set of numbers.

3.1 Random Numbers Generation of Literal Neutrosophic Uniform Distribution (LNUD)

Literal neutrosophic cumulative distribution function (LNCDF) of LNUD is defined in [7] as:

𝑥𝑁−𝑎𝑁 𝑏𝑁−𝑎𝑁; 𝑎𝑁= 𝑎1 + 𝑎2𝐼, 𝑏𝑁= 𝑏1 + 𝑏2𝐼 , 𝑥𝑁= 𝑥1 + 𝑥2𝐼 ; 𝐼2 = 𝐼 (6) 𝑃𝑁= 𝐹(𝑥𝑁) =

Solving equation (6) with respect to 𝑥𝑁 gives:

𝑥𝑁= 𝑎𝑁+ (𝑏𝑁−𝑎𝑁)𝑃𝑁 (7)

Taking isometric image of (7) results:

𝑇[𝑥𝑁] = (𝑎1 + (𝑏1 −𝑎1)𝑝1, 𝑎1 + 𝑎2 + (𝑏1 + 𝑏2 −𝑎1 −𝑎2)(𝑝1 + 𝑝2)) = (𝑥1, 𝑥1 + 𝑥2)

Which means depending on (2) and the properties of AH-Isometry that:

𝑥𝑁= 𝑎1 + (𝑏1 −𝑎1)𝑝1 + [𝑎1 + 𝑎2 + (𝑏1 + 𝑏2 −𝑎1 −𝑎2)(𝑝1 + 𝑝2) −𝑎1 + (𝑏1 −𝑎1)𝑝1]𝐼 (8)
Table 1. Random Literal Neutrosophic Numbers following LNUD with 𝑎𝑁= 1 −𝐼, 𝑏𝑁= 2 + 2𝐼
Table 1. Random Literal Neutrosophic Numbers following LNUD with 𝑎𝑁= 1 −𝐼, 𝑏𝑁= 2 + 2𝐼
Figure
Figure

: ECDF and TCDF of 𝑋1 of LNUD Figure 1: ECDF and TCDF of 𝑋1 + 𝑋2 of LNUD

3.2 Random Numbers Generation of Literal Neutrosophic Exponential Distribution (LNED)

Literal neutrosophic cumulative distribution function (LNCDF) of LNED is defined in [7] as:

𝑃𝑁= 𝐹(𝑥𝑁) = 1 −𝑒−𝜆𝑁𝑥𝑁; 𝜆𝑁= 𝜆1 + 𝜆2𝐼 , 𝑥𝑁= 𝑥1 + 𝑥2𝐼 ; 𝐼2 = 𝐼 (9)

Solving equation (9) with respect to 𝑥𝑁 gives:

ln(1−𝑃𝑁) 𝜆𝑁 (10) 𝑥𝑁= −

Taking isometric image of (10) results:

𝑇[𝑥𝑁] = (−ln(1 −𝑝1) , −ln(1 −𝑝1 −𝑝2) ) = (𝑥1, 𝑥1 + 𝑥2) 𝜆1 𝜆1 + 𝜆2

Which means depending on (2) and the properties of AH-Isometry that:

ln(1−𝑝1) ln(1−𝑝1) ln(1−𝑝1−𝑝2) 𝜆1+𝜆2 ] 𝐼 (11) 𝑥𝑁= − 𝜆1 + [ 𝜆1 −
Table 2. Random LNNs following LNED with 𝜆𝑁= 2.5 −1.5𝐼
Table 2. Random LNNs following LNED with 𝜆𝑁= 2.5 −1.5𝐼
Figure 3. ECDF and TCDF of 𝑋1 of LNED Figure 4: ECDF and TCDF of 𝑋1 + 𝑋2 of LNED
Figure 3. ECDF and TCDF of 𝑋1 of LNED Figure 4: ECDF and TCDF of 𝑋1 + 𝑋2 of LNED

3.3 Random Numbers Generation of Literal Neutrosophic Normal Distribution (LNND)

Literal neutrosophic cumulative distribution function (LNCDF) of LNND is defined in [7] as:

2 𝑥𝑁 −1 2(𝑥𝑁−𝜇𝑁 𝜎𝑁 ) 𝑃𝑁= 1 ; 𝜎𝑁= 𝜎1 + 𝜎2𝐼, 𝜇𝑁= 𝜇1 + 𝜇2𝐼 , 𝑥𝑁= 𝑥1 + 𝑥2𝐼 ; 𝐼2 = 𝐼 ∫𝑒 𝜎𝑁√2𝜋 −∞

Or simply write:

𝑃𝑁= 𝐹𝑁(𝑥𝑁; 𝜇𝑁, 𝜎𝑁) (12)

Solving equation (12) with respect to 𝑥𝑁 gives:

𝑥𝑁= 𝜓(𝑃𝑁, 𝜇𝑁, 𝜎𝑁) (13)

Taking isometric image of (13) results:

𝑇[𝑥𝑁] = (𝜓(𝑝1, 𝜇1, 𝜎1), 𝜓(𝑝1 + 𝑝2, 𝜇1 + 𝜇2, 𝜎1 + 𝜎2)) = (𝑥1, 𝑥1 + 𝑥2)

Which means depending on (2) and the properties of AH-Isometry that:

𝑥𝑁= 𝜓(𝑝1, 𝜇1, 𝜎1) + [𝜓(𝑝1 + 𝑝2, 𝜇1 + 𝜇2, 𝜎1 + 𝜎2) −𝜓(𝑝1, 𝜇1, 𝜎1)]𝐼 (14)
Table 3. Random LNNs following LNND with 𝜇𝑁= 2𝐼, 𝜎𝑁= 1 + 𝐼
Table 3. Random LNNs following LNND with 𝜇𝑁= 2𝐼, 𝜎𝑁= 1 + 𝐼
Figure 5. ECDF and TCDF of 𝑋1 of LNED Figure 6: ECDF and TCDF of 𝑋1 + 𝑋2 of LNED
Figure 5. ECDF and TCDF of 𝑋1 of LNED Figure 6: ECDF and TCDF of 𝑋1 + 𝑋2 of LNED

2. Literal Neutrosophic Kolmogorov-Smirnov Goodness of Fit Test

The Kolmogorov-Smirnov (KS) test is a statistical test used to determine whether a sample of data comes from a specified distribution, such as a normal distribution or an exponential distribution. The KS test can be used as a goodness-of-fit test to test the hypothesis that a sample of data comes from a specified distribution.

In this section we are going to develop the classical KS test to handle literal neutrosophic numbers proposing the following algorithm:

1. Determine the literal neutrosophic distribution to which you want to compare your data.

2. Define the null hypothesis and the alternative hypothesis. The null hypothesis is that the sample of data comes from the specified distribution, while the alternative hypothesis is that the sample of data does not come from the specified distribution.

3. Calculate the LNCDF of the specified distribution.

4. Calculate the literal neutrosophic empirical distribution function (LNEDF) of your sample data, here you will use neutrosophic ordering relation in definition 2.3.

5. Calculate the test statistic, which is the maximum absolute difference between the LNCDF and

LNEDF.

𝐷𝑁= max |𝐹𝑁−𝑆𝑁| (15)

Where:

𝐹𝑁 is the LNCDF of the specified distribution.

𝑆𝑁 is the LNEDF of the sample data.

6. Calculate neutrosophic p-value (𝑝𝑣𝑁) of the test using the formula:

2 (16) 𝑝𝑣𝑁= 1 −∑ ∞ 𝑖=1 (−1)𝑖−1𝑒−2𝑖2𝐷𝑁

7. Compare the calculate 𝑝𝑣𝑁 with desired significance level 𝛼𝑁= 𝛼1 + 𝛼2𝐼 (can be crisp significance level when 𝛼2 = 0). If 𝑝𝑣𝑁 is less than 𝛼𝑁, reject the null hypothesis; otherwise, fail to reject the null hypothesis.

3. Simulation Study

1. Based on equation (8), a simulation study was performed 𝑁= 10000 times to generate different samples of sizes 𝑛= 10,30,50,100 each is following literal neutrosophic uniform distribution with parameters 𝑎𝑁= 1 −𝐼, 𝑏𝑁= 2 + 2𝐼 and tested whether these random samples are drawn from literal neutrosophic uniform distribution with parameters 𝑎𝑁= 1.5 −𝐼, 𝑏𝑁= 2.5 + 2𝐼 or not at significance level 𝛼= 0.05. The following table shows simulation results:

Table 4. Test power of Kolmogorov Smirnov for literal neutrosophic uniform distribution
Table 4. Test power of Kolmogorov Smirnov for literal neutrosophic uniform distribution

We see that test power increases when sample size increases. Proposed Kolmogorov-Smirnov test works better with samples of size larger than 50 for literal neutrosophic uniform distribution detection.

2. Based on equation (11), a simulation study was performed 𝑁= 10000 times to generate different samples of sizes 𝑛= 10,30,50,100 each is following literal neutrosophic exponential distribution with parameter 𝜆𝑁= 2.5 −1.5𝐼 and tested whether these random samples are drawn from literal neutrosophic exponential distribution with parameter 𝜆𝑁= 4 −𝐼 or not at significance level 𝛼= 0.05. The following table shows simulation results:

Table 5. Test power of Kolmogorov Smirnov for literal neutrosophic exponential distribution
Table 5. Test power of Kolmogorov Smirnov for literal neutrosophic exponential distribution
Table 6. Test power of Kolmogorov Smirnov for literal neutrosophic normal distribution
Table 6. Test power of Kolmogorov Smirnov for literal neutrosophic normal distribution

4. Conclusions and future research directions

In this study, we developed a new random number generator algorithm and applied it to find analytical formulas for three different literal neutrosophic probability distributions: uniform, exponential, and normal. We also developed the Kolmogorov-Smirnov test for goodness of fit to evaluate the performance of literal neutrosophic data. Our results show that the power of the test increases as the sample size grows, indicating that the test is effective in detecting differences between the generated data and the target distributions. Our study has several strengths, including the use of literal neutrosophic distributions and the potential applications of the developed algorithm in various fields. However, further research is needed to explore the properties of these distributions and to compare the results of our method with those from other methods. In conclusion, our study provides a new tool for generating random numbers from literal neutrosophic probability distributions and for evaluating the goodness of fit of the generated data. Future research in this area could further improve the performance and applicability of these methods.

Funding: “This research received no external funding”

Acknowledgments: Authors are very thankful to Editors-In-Chief for their assistance and management, authors also thank reviewers for their valuable edits and suggestions.

Conflicts of Interest: “The authors declare no conflict of interest.”

References

[1]

S. M. Ross, Introduction to probability models, 10 ed., United States: Academic Press, 2019.

[2]

L. Devroye, Non-Uniform Random Variate Generation, New York: Springer, 1986.

[3]

G. S. Fishman, Monte Carlo: concepts, algorithms, and applications, New York: Springer, 1996.

[4]

D. E. Knuth, The Art of Computer Programming, vol. 2, United States: Addison-Wesley, 1998.

[5]

P. L'Ecuyer and R. Simard, "TestU01: A C library for empirical testing of random number generators," ACM Transactions on Mathematical Software, vol. 33, no. 4, pp. 1-40, 2007.

[6]

M. Aslam, "Introducing Kolmogorov−Smirnov Tests under Uncertainty: An Application to Radioactive Data," ACS Omega, vol. 5, pp. 914-917, 2020.

[7]

M. Aslam, "A new goodness of fit test in the presence of uncertain parameters," Complex & Intelligent Systems, vol. 7, pp. 359-365, 2021.

[8]

M. Ahsan-ul-Haq, "A new Cramèr–von Mises Goodness-of-fit test under Uncertainty," Neutrosophic Sets and Systems, vol. 49, pp. 262-268, 2022.

[9]

M. Aslam, "Chi-square test under indeterminacy: an application using pulse count data," BMC Med Res Methodology, vol. 21, no. 1, 2021.

[10]

M. Jdid, R. Alhabib and A. A. Salama, "Fundamentals of Neutrosophical Simulation for Generating Fundamentals of Neutrosophical Simulation for Generating Random Numbers Associated with Uniform Probability Random Numbers Associated with Uniform Probability Distribution," Neutrosophic Sets and Systems, vol. 49, pp. 92-102, 2022.

[11]

M. B. Zeina and M. Abobala, "A Novel Approach of Neutrosophic Continuous Probability Distributions using AH-Isometry with Applications in Medicine," in Cognitive Intelligence with Neutrosophic Statistics in Bioinformatics, Elsevier, 2023.

[12]

M. B. Zeina , O. Zeitouny , F. Masri , F. Kadoura and S. Broumi, "Operations on Single-Valued Trapezoidal Neutrosophic Numbers using (α,β,γ)-Cuts “Maple Package”," International Journal of Neutrosophic Science, vol. 15, no. 2, pp. 113-122, 2021.

[13]

M. Abobala and M. B. Zeina, "A Study of Neutrosophic Real Analysis by Using the One-Dimensional Geometric AH-Isometry," Galoitica: Journal of Mathematical Structures and Applications, vol. 3, no. 1, pp. 18-24, 2023.

[14]

 

[15]

M. B. Zeina and A. Hatip, "Neutrosophic Random Variables," Neutrosophic Sets and Systems, vol. 39, pp. 44-52, 2021.

A. Astambli, M. B. Zeina and Y. Karmouta, "On Some Estimation Methods of Neutrosophic Continuous Probability Distributions Using One-Dimensional AH-Isometry," Neutrosophic Sets and Systems, vol. 53, pp. 641-652, 2023.

Continue Reading

View the full issue arrow_forward

Cite This Article

Choose your preferred format

format_quote
Zeina, Mohamed Bisher, et al. “Random Numbers Generation and Goodness-of-Fit Testing for Literal Neutrosophic Numbers.” Galoitica: Journal of Mathematical Structures and Applications, vol. 4, no. 2, 2023, pp. 08–23. https://doi.org/10.54216/GJMSA.040201.
Zeina, M. B., Anan, M. T., & Marjamak, Y. (2023). Random Numbers Generation and Goodness-of-Fit Testing for Literal Neutrosophic Numbers. Galoitica: Journal of Mathematical Structures and Applications, 4(2), 08–23. https://doi.org/10.54216/GJMSA.040201
Zeina, Mohamed Bisher, Mohamad Taher Anan, and Yousef Marjamak. “Random Numbers Generation and Goodness-of-Fit Testing for Literal Neutrosophic Numbers.” Galoitica: Journal of Mathematical Structures and Applications 4, no. 2 (2023): 08–23. https://doi.org/10.54216/GJMSA.040201.
Zeina, M.B., Anan, M.T. and Marjamak, Y. (2023) ‘Random Numbers Generation and Goodness-of-Fit Testing for Literal Neutrosophic Numbers’, Galoitica: Journal of Mathematical Structures and Applications, 4(2), pp. 08–23. Available at: https://doi.org/10.54216/GJMSA.040201.
Zeina MB, Anan MT, Marjamak Y. Random Numbers Generation and Goodness-of-Fit Testing for Literal Neutrosophic Numbers. Galoitica: Journal of Mathematical Structures and Applications. 2023;4(2):08-23. doi:10.54216/GJMSA.040201
M. B. Zeina, M. T. Anan, and Y. Marjamak, “Random Numbers Generation and Goodness-of-Fit Testing for Literal Neutrosophic Numbers,” Galoitica: Journal of Mathematical Structures and Applications, vol. 4, no. 2, pp. 08–23, 2023, doi: 10.54216/GJMSA.040201.
policy

Publisher's Note

The statements, opinions, and data presented in this article are solely those of the author(s) and do not necessarily represent those of ASPG, the journal, or its editors. ASPG and the editors disclaim responsibility for any harm arising from the use of any ideas, methods, instructions, or products described in this article, to the fullest extent permitted by applicable law.

Digital Archive Ready