# Chapter 6 NCA’s statistical backgrounds

[Acknowledgement: Roelof Kuik contributed to this Chapter]

NCA’s statistical test is one of the three parts of NCA. The other parts are the use of necessity logic for formulating the causal assumptions (hypotheses), and the data analysis to calculate the NCA effect size. NCA’s statistical test is meant to evaluate this parameter, in particular the probability that the observed effect size could have resulted from variables that are unrelated.

## 6.1 NCA’s statistical expression

Based on NCA’s mathematical backgrounds (see Chapter 5), NCA employs a bivariate statistical data analysis for each condition separately (multiple bivariate analysis). The statistical model of NCA can be expressed by an equality equation as

$\begin{equation} \tag{6.1}y = f(x_i) - \epsilon_{x_i} \end{equation}$

Here the function $$f(x_i)$$ represents the border line of the i-th condition in the $$X_iY$$ plane and $$\epsilon_{x_i}$$ is a random variable that takes on non-negative values only (when the border line is a ceiling line, i.e., when the upper left or upper right corner of the $$XY$$ plot are empty) or a non-positive value only (when the border line is a floor line, i.e. when the lower left or lower right corner of the $$XY$$ plot are empty). In the remainder of this Chapter it is assumed that the empty space is in the upper left corner and the error term is non-negative. The NCA model assumes that $$X$$ and $$Y$$ are bounded (have minimum and maximum values) and that there are no errors of measurement in variables $$X$$ and $$Y$$. The NCA model does not make strong assumptions about the error term (e.g., no assumption about the type of distribution, the mean value, or the variance). The NCA model differs from a regression model. The regression model is expressed as

$\begin{equation} \tag{6.2}y = f(x) + \epsilon_x \end{equation}$

Here the function $$f(x)$$ has additive terms consisting of (combinations of) $$X$$’s with coefficients. The regression model assumes that $$X$$ and $$Y$$ are unbounded variables (can have values between minus and plus infinity) and that there are no errors of measurement in variables $$X$$ and $$Y$$. The regression model makes several strong assumptions about the error term. For example, it is assumed that $$\epsilon_x$$ is independent of $$X$$, its average value is zero, and its variance does not depend on $$X$$. Additionally, it is often assumed that the errors are normally distributed. Therefore, $$f(x)$$ describes the average effect of $$X$$ on $$Y$$ such that conventional regression techniques are not appropriate for modeling necessity relationships.

NCA is a ‘semi-parametric’ approach, that only specifies particular features of the distribution (in NCA: the ceiling line, bounded variables within a scope) but not the distribution itself . Thus, NCA does not require making assumptions about the distributions of $$X$$, $$Y$$ and $$\epsilon_x$$. NCA only specifies a part of the Data Generation Process (DGP): the ceiling function of bounded variables within the scope. NCA does not specify how the data below the ceiling are generated, thus no further specification of $$\epsilon_x$$ is needed. This is inherent to NCA’s goal of analysing necessary but not sufficient conditions: a certain level of $$X$$ is required for having a certain level of $$Y$$ but it does not automatically produce that level of $$Y$$: NCA does not predict $$Y$$. For estimating the ceiling line and effect size with empirical data for $$X$$ and $$Y$$, two default estimation techniques are available. The first default technique is Ceiling Envelopment - Free Disposal Hull (CE-FDH), which is a local support boundary curve estimation techniques. The free disposal hull (FDH) constructs a space (the hull) encompassing the observations. The FDH is the smallest space encompassing the data points that has the free disposal property. A space is said to have the free disposal property (e.g., Simar & Wilson, 2008), if having a particular point implies that it also includes the points at the lower right of that point. The boundary of the FDH hull is a non-decreasing step function, which can serve as an estimate of the ceiling line, in particular when $$X$$ or $$Y$$ are discrete, or when the ceiling line is not straight.

The second default technique is Ceiling Regression - Free Disposal Hull (CR-FDH), which is a global support boundary, frontier function and curve estimation technique. The CR-FDH ceiling line is a straight trend line through upper left points of the CE-FDH line using OLS regression. Consequently, the CR-FDH ceiling line has some cases in the otherwise empty space. Therefore, in contrast to CE-FDH, the ceiling accuracy of CR-FDH is usually below 100 percent.

In addition to the two default ceiling lines, another straight line ceiling technique that is available in the NCA software is Ceiling - Linear Programming (C-LP). This estimation approach uses linear programming; a technique that optimizes a linear goal function under a number of linear constraints. When applied to NCA the technique draws a straight line through two corner points of CE-FDH such that the area under the line is minimized.

## 6.2 The quality of NCA’s ceiling lines

### 6.2.1 Statistical quality criteria

When analysing sample data for statistical inference, the calculated ‘statistic’ (in NCA the ceiling line and its effect size) is an estimator of the ‘true’ parameter in the population. An estimator is considered to be a good estimator when for finite (small) samples the estimator is unbiased and efficient, and for infinite (large) samples the estimator is consistent. Unbiasedness indicates that the mean of the estimator for repeated samples corresponds to the true parameter value; efficiency indicates that the variance of the estimator for repeated samples is small compared to other estimators of the population parameter. Consistency indicates that the mean of the estimator approaches the true value of the parameter and that the variance approaches zero when the sample size increases. When the latter applies, the estimator is called asymptotically unbiased, even if the estimator is biased in finite (small) samples. An estimator is asymptotically efficient if the estimate converges relatively fast to the true population value when the sample size increases.

There are two ways to determine the unbiasdness, efficiency and consistency of estimators: analytically and by simulation. In the analytic approach the properties are mathematically derived. This is possible when certain assumptions are made. For example the OLS regression estimator of a linear relationship in the population is ‘BLUE’ (Best Linear Unbiased Estimator) when the Gauss-Markov assumptions hold (the dependent variable is unbounded, homoskedasticity, error term unrelated to predictors, etc.).

In the simulation approach a Monte Carlo simulation is performed in which first the true parameters (of variables and distributions) in the population are defined, then repeated random samples are drawn from this population, and next the estimator is calculated for each sample. Finally, the sampling distribution of the estimator is determined and compared with the true parameter value in the population.

For both approaches the following ‘ideal’ situation is usually assumed: the population is infinite, the samples are drawn randomly, the distributions of the variable or estimates are known (e.g. normal distribution), and there is no measurement error. Without these assumptions the analysis and simulations get very complex.

For NCA, no analytical approach exists (yet) to determine bias, efficiency and consistency of its estimators (ceiling lines and their effect sizes) so currently NCA relies on simulations to evaluate the quality of its estimates.

### 6.2.2 Requirements of simulations with NCA

Although NCA does not specify the full DGP, for conduction simulations (e.g., Monte Carlo simulation), the full DGP needs to be specified by the researcher for being able to do such simulation. This means that the researcher must make a choice for the ‘true’ ceiling line in the population ($$f(x_i)$$) and for the distribution of the error term ($$\epsilon_x$$) in equation (6.1). For making this choice two fundamental assumptions of NCA must be met:

1. A border exist between an area with and without observations defined by the ceiling line (to represent necessity theory: no $$Y$$ without $$X$$).

2. $$X$$ and $$Y$$ are bounded.

The selected bivariate ceiling line can be linear or non-linear. The selected distribution of $$X$$ and $$Y$$ must be bounded, which means that selecting a normal distribution is invalid. Below, an example script is shown for NCA simulations with a linear ceiling line, and two bounded distributions (uniform and beta):

library (NCA)
library (truncnorm)

#DGP with ceiling
getRandomData <- function(number_of_observations, slope, intercept, type){

collectXY<- function(x,y){ # helper function: xs and ys into sorted list
temp <- cbind(x, y)
temp <- temp[order(temp[, 1]),] # sort datapoints on x values
return(list(x = temp[, 1], y = temp[, 2]))
}

uniformRandomData <- function(number_of_observations, slope, intercept) {
xdata <- ydata <- rep(NA, number_of_observations)
reject <- TRUE
while (reject) { # get random starting point (below line)
xtry <- runif(1,0,1);
ytry <- runif(1,0,1)
if (ytry <= min(1, (intercept + slope * xtry))) {
reject<-FALSE
}
}

ydata <- ytry ;
xdata <- xtry
for (ii in (2:number_of_observations)) {
ydata[ii] <- runif(1, 0, min(1, intercept + slope * xdata[ii-1]))
xdata[ii] <- runif(1, (max(0, ydata[ii] - intercept) / slope), 1) # Note: slope > 0 is assumed!
}

return(collectXY(xdata, ydata))
}

betaRandomData <- function(number_of_observations, slope, intercept) {
# a la Gijbels: On Estimation of Monotone and Concave Frontier Functions, Page 224
xdata <- rtruncnorm(n=number_of_observations, a=0, b=1, mean = 0.5, sd = 0.2)
ydata <- pmin(1, (intercept + xdata * slope)) * rbeta(n=number_of_observations,shape1=2,shape2=2)
return(collectXY(xdata, ydata))
}

if (type == "uniform") {
return ( uniformRandomData(number_of_observations, slope, intercept) )
}
else if (type == "beta") {
return ( betaRandomData(number_of_observations, slope, intercept) )
}
} # getRandomData

#Example:
n = 1000; intercept = 0.4; slope = 0.8

#uniform
df1 <- data.frame(getRandomData(n, slope, intercept, type= 'uniform'))
plot(df1$x, df1$y)
abline(intercept,slope)
#NCA estimated ceiling
model1 <- nca_analysis(df1, 1,2, ceilings = "c_lp" )
nca_output (model1, plots = TRUE, summaries = FALSE)

#beta
df2 <- data.frame(getRandomData(n, slope, intercept, type = 'beta'))
plot(df2$x, df2$y)
abline(intercept,slope)
#NCA estimated ceiling
model2 <- nca_analysis(df2, 1,2, ceilings = "c_lp" )
nca_output (model2, plots = TRUE, summaries = FALSE)

An example of a simulation with NCA is shown in Section 6.2.3.

When a necessity effect is present in the population NCA, an the empty space in a sample XY plot is (partly) a manifestation of the necessity effect in the population, and this effect size is estimated with NCA.

With unbounded variables a necessity effect cannot exist in the population. For example, NCA’s necessary condition effect size for bivariate normal variables is zero in the population. A possible empty space in a sample is not the result of a necessity effect in the population but a result of finite sampling. Thus, a sample empty space effect size has no necessity meaning when the population distribution of the variables is unbounded. With unbounded distributions, a finite sample always leads to a finite (empirical) scope (box) that allows the computation of an ‘effect size.’ But, such quantity is not related to necessity as defined in NCA. Producing a number out of a sample is an estimate of some property in the population, but the question is what estimand/property of the population distribution it corresponds to. With population data assumed being generated from an unbounded distribution, empirical scopes would grow beyond any bound with growing size of the sample.

Data transformations are not uncommon in regression analysis for example to ensure normal distributions or meeting regression assumptions. However,data transformation in NCA may change the nature and content of the theory. The reason is that transformation of data also changes the bounding scope, and if not linear (unlike the linear (re-)scoping transformations) these transformations are likely to change the value of the necessary condition effect size, thereby introducing spurious effect sizes. For example, if $$X$$ is necessary for $$Y$$, then $$log(X)$$ may not be necessary for $$log(Y)$$ and vise versa. In NCA, the analysis is done with data that represent the theoretical meaning of the concepts in the necessity hypothesis.

### 6.2.3 Simulation results for NCA’s effect size

Monte Carlo simulation is used for estimating the true effect size in a population using the three types of ceiling line (CE-FDH, CR-FDH and C-LP). Variable X has a necessity relationship with Y, represented by a straight ceiling line (Y = 0.4 + X). The corresponding true effect size is 0.18.

In Monte Carlo simulation the full ‘Data Generation Process’ (DGP) needs to be specified. This means that also assumptions must be made about the distribution of the data under the ceiling line. In this simulation we assume a uniform distribution under the ceiling line, normalized for the vertical distance under the ceiling line. Additional simulations have been done with different distributions but the similar results are not reported here. The simulation is done with 100 resamples per sample size. The seven sample size vary between 20 and 5000. This is repeated for each type of ceiling line. Figure 6.1: Monte Carlo simulation results for the effect size of three ceiling lines.True ceiling line = $$Y = 0.4 + X$$. True effect size is 0.18.

Figure 6.1 suggests that for small samples the three ceiling lines are upward biased (the true effect size is smaller). When sample size increases, the estimated effect size approaches the true effect size (asymptotically unbiased) and the variance approaches zero. This means that the three estimators are consistent. C-LP seems more efficient (less variation). These results only apply to the investigated conditions of a true ceiling line that is straight and there is no measurement error. Therefore, only when the true ceiling line is straight and when there is no measurement error the C-LP line may be preferred. Such ‘ideal’ circumstance may apply in simulation studies, but seldom in reality. When the true ceiling line is straight but cases have measurement error the CR-FDH line may perform better because measurement error usually reduces the effect size (ceiling line moves upwards). When the true ceiling line is not a straight line, CE-FDH may perform better because this this line can better follow the non-linearity of a the border (see Figure 3.1). Further simulations are needed to clarify the different statistical properties of the ceiling lines under different circumstances. In these simulations the effects of different population parameters (effect size, ceiling slope, ceiling intercept, non-linearity of the ceiling, distribution under the ceiling), and of measurement error (error-in-variable models) on the quality of the estimations could be studied.

## 6.3 NCA’s statistical test

NCA’s statistical test is a null hypothesis test that estimates a p value for the effect size using a permutation approach . Mathematical proofs and simulations have shown that the estimated p value of NCA’ statistical test is valid. Indeed, the validity of the permutation test on which NCA is based is a theorem . NCA’s statistical test can be classified as a permutation and randomization test in the terminology of . The justification of the test rests on the so-called Randomization Hypothesis being true. The Randomization Hypothesis states :

Under the null hypothesis, the distribution of the data $$X$$ is invariant under the transformation $$g$$, that is, for every transformation $$g$$ in $$G$$, $$gX$$ and $$X$$ have the same distribution whenever $$X$$ has distribution $$P$$ in H0.

In this context $$G$$ is the group of permutations of $$n$$ elements. The transformation of the sample data $$S$$ under a permutation $$g$$ in $$G$$ is here $$S \mapsto gS$$ and the Randomization Hypothesis is that $$S$$ and $$gS$$ have the same distribution when $$S$$ has been sampled from a distribution in NCA’s H0 (variables are independent). In other words, under the Randomization Hypothesis, repeated sampling of $$S$$, with each time making $$gS$$, the distributions of $$S$$ and $$gS$$ should be the same. For NCA’s statistical test this condition is satisfied.

### 6.3.1 Interpretation of NCA’s statistical test and p value

NCA’s statistical test is a part of an entire NCA method consisting of (1) formulating necessity theory, (2) calculating necessity effect size (relative size of empty space in $$XY$$ plot) and (3) performing a statistical test. Within this context the test has a specific purpose of testing the randomness of the empty space when $$X$$ and $$Y$$ are unrelated. Therefore, a test result of a large p value (e.g., p > 0.05) means that the empty space is compatible with randomness of unrelated variables. A test result of a small p value (e.g., p < 0.05) means that the empty space is not compatible with randomness of unrelated variables. However, falsifying H0 does not mean that H1 is accepted. The goal of a null-hypothesis test is to test the null (H0) not a specific alternative (H1). The p value is only defined when the null is true. However, the p value is not defined when a specific H1 is true. Therefore, the p value is not informative about which H1 applies. This is a general charactetistic of the p value that is often misunderstood. “A widespread misconception … is that rejecting H0 allows for accepting a specific H1.…This is what most practicing researchers do in practice when they reject H0 and argue for their specific H1 in turn” .

NCA’s statistical test is only a part of the entire NCA method. With a high p value, the tests accepts the null, and rejects any H1 (including necessity). With a low p value the test rejects the null, but does not accept any specific H1, thus also not necessity. It depends on the results of the entire NCA method (including theory and effect size) and of the researcher’s judgment whether or not necessity is plausible, considering all evidence. Therefore, NCA’s statistical test result of a low p value is a ‘necessary but not sufficient condition’ for concluding that an empty space be considered to be caused by necessity . The test protects the researcher from making a false positive conclusion, namely that necessity is supported when the empty space is likely a random result of two unrelated variables.

## 6.4 NCA and correlation

The correlation between two variables can me expressed as a number $$r$$ , which is the correlation coefficient. This coefficient can have a value between -1 and +1. This section shows by simulations that a correlation between $$X$$ and $$Y$$ can be produced not only by a sufficiency relationship between $$X$$ and $$Y$$, but also by a necessity relationship. Correlation is not causation, and therefore an observed correlation cannot be automatically interpreted as in indication of sufficiency nor necessity.

### 6.4.1 Correlation by sufficiency

For empirical testing of a sufficiency relationship (e.g. as expressed in a hypothesis) the relationship is usually modeled as set of single factors ($$X$$’s) and possibly combinations of factors that add up to produce the outcome (additive logic). Such model captures a few factors of interest and assumes that all other factors together have on average no effect on the outcome. This sufficiency model corresponds to the well-known regression model with additive terms (with the factors of interest) and an error term ($$\epsilon$$) representing the other factors. Because the error term is assumed to have an average value of zero, the regression model with the factors of interest describes the average effect of these factors on the outcome. Note that it is often assumed that $$\epsilon$$ is normally distributed and thus can have any value between minus Infinity and plus Infinity. As a consequence also $$Y$$ can have any value between -Inf and + Inf. Moreover, the additive equation indicates that $$X$$ is not a necessary cause of $$Y$$ because a certain value of $$\epsilon$$ can compensate for it.

A simple linear (average) sufficiency model is $$a + bx = y$$, in which $$a$$ is the intercept and $$b$$ is the slope. The average sufficiency effect of $$X$$ on $$Y$$ can be modeled by the regression equation $$y = a + bx + \epsilon$$. Figure 6.2 shows a $$XY$$ scatter plot of 100 cases randomly from a population in which this linear relationship holds. $$X$$ is a fixed variable between 0 and 1, and $$Y$$ and $$\epsilon$$ are normally distributed random variables with zero averages and standard deviations of 1. The simulation shows that the sufficiency relationship results in a correlation of 0.34. Figure 6.2: Correlation with coefficient 0.34 resulting from an average sufficiency relationship. The line through the middle is the regression line representing the sufficiency relationship.

The true (because induced) additive average sufficiency relationship in the population (in this case linear with parameters $$a = 0$$ and $$b = 1$$) can be described with a regression line through the middle of the data (solid line). It would not be correct to draw a ceiling line on top of the data and interpret it as representing a necessity relationship between $$X$$ and $$Y$$ (dashed line).

### 6.4.2 Correlation by necessity

A necessity causal relationship between $$X$$ and $$Y$$ can also produce a correlation between $$X$$ and $$Y$$. For empirical testing of a necessity relationship (e.g. as expressed in a hypothesis) the relationship is modeled as a single factor that enables the outcome (necessity logic). Such model captures the single necessary factor independently of all other causal factors. This necessity model corresponds to the NCA ceiling line.

A simple linear necessity model (ceiling line) is $$a_c + b_cx = y$$, in which $$a_c$$ is the intercept of the ceiling line and $$b_c$$ is the slope of the ceiling line that take values of 0.4 and 1 respectively. This can be represented by the ceiling equation $$y \leq a_c + b_cx$$.

Figure 6.3 shows a $$XY$$ scatter plot of 100 cases randomly selected from a population in which this linear ceiling relationship holds. $$X$$ is a random variable between 0 and 1, and $$Y$$ is a uniform distributed random variable bounded by the ceiling line. The simulation shows that the necessity relationship results in a correlation of 0.38. Figure 6.3: Correlation with coefficient 0.38 resulting from a necessity relationship. The line on top of the data is the ceiling line representing the necessity relationship.

The true (because induced) necessity relationship in the population (in this case linear ceiling with parameters $$a$$ = 0.4 and $$b$$ = 1) can be described with a ceiling line on top of the data (solid line). It would not be correct to draw a regression line through the middle of the data and interpret it as representing a sufficiency relationship between $$X$$ and $$Y$$ (dashed line).

### 6.4.3 Interpretation of correlation when causality is unknown

When the underlying causality is unknown the correlation coefficient cannot distinguish between the best way to describe it: by a regression line or by a ceiling line. A regression line can be added to the scatter plot when the underlying causality is assumed to be additive, average sufficiency logic, and the ceiling line can be added when the underlying causality is assumed to be necessity logic (or both).

The often implicit assumption that the correlation coefficient is caused by an underlying additive causal model may be wrong and may have two reasons. First, additive logic is the main paradigm of causality. Second, the correlation coefficient $$r$$ and the regression coefficient $$b$$ are closely related and can be expressed in a mathematical equation: $$r = b * sd(x)/sd(y)$$ ($$sd$$ is the standard deviation). A similar mathematical equation for the relationship between necessity effect size and correlation coefficient can be derived as well, but is very complex and not intuitive. (You can contact the author for this formulae with the assumption of a uniform distribution of the data below the ceiling line).

### References

Dul, J. (2020). Conducting necessary condition analysis. Sage. https://uk.sagepub.com/en-gb/eur/conducting-necessary-condition-analysis-for-business-and-management-students/book262898
Dul, J., Van der Laan, E., & Kuik, R. (2020). A statistical significance test for necessary condition analysis. Organizational Research Methods, 23(2), 385–395. https://doi.org/10.1177/1094428118795272
Greene, W. H. (2012). Econometric analysis. 7th. edition. Pearson Education India.
Hoeffding, W. (1952). The large-sample power of tests based on permutations of observations. The Annals of Mathematical Statistics, 169–192. https://www.jstor.org/stable/2236445
Kennedy, F. E. (1995). Randomization tests in econometrics. Journal of Business & Economic Statistics, 13(1), 85–94. https://www.jstor.org/stable/1392523
Lehmann, E. L., Romano, J. P., & Casella, G. (2005). Testing statistical hypotheses (3rd ed.). Springer. https://www.springer.com/gp/book/9780387988641
Massu, J., Kuik, R., & Dul, J. (2020). Simulations with NCA. Rotterdam School of Management, Erasmus University.
Simar, L., & Wilson, P. W. (2008). Statistical inference in nonparametric frontier models: Recent developments and perspectives. In H. O. Fried, C. A. Knox Lovell, & S. S. Schmidt (Eds.), The measurement of productive efficiency and productivity growth. Oxford University Press.
Szucs, D., & Ioannidis, J. P. (2017). Empirical assessment of published effect sizes and power in the recent cognitive neuroscience and psychology literature. PLoS Biology, 15(3), e2000797. https://doi.org/10.1371/journal.pbio.2000797