instruction
stringlengths
9
38.7k
Let $\mu_\theta$ be the limit of an empirical measure $\mu_{n, \theta}$. $\theta \in \Theta$ and $\Theta$ is a compact set. Morever, the maps $\theta \rightarrow \mu_{n, \theta}$ and $\theta \rightarrow \mu_\theta$ are continuous. Let $d$ be a metric. I already proved that for all the $\theta \in \Theta$ $$d(\mu_{n, \t...
Any advice without using any coding software would be appreciated - thanks!
I am wondering if there are algorithms to cluster graphs; what I meant is to cluster many graphs, not cluster the nodes in a graph. For example, we have N graphs, G1, G2, G3, .....GN. Then we can identify [G1, G2, G3] have high similarity in topology, [G4, G5] another one, and so on.
I'm working on some practice exams and I came across a probability question that stumped me. "In a lottery game, for any lottery ticket bought at random, the chance of winning each prize is listed below. Suppose there are a huge number of lottery tickets such that different lottery tickets can be treated as “independen...
From what I have seen, permutation tests are always used to compare the means (or median) of two different groups in the experiment. Even Wikipedia says A permutation test involves two or more samples. The null hypothesis is that all samples come from the same distribution. Is it possible to extend permutation test f...
I'm trying to capture the intuition behind the statements of book about fixed regressor in regression models. The book says that in general we wish to work with the random sampling assumption (where the population model is specified and an iid random sample can be drawn from the population). Then,any explanatory variab...
In $k$-means, how is it NP-hard if the dimensionality of the data is at least $2$ ($d\geq 2$)? Can someone justify or give reasons to this statement? Any guidance would be appreciated.
I have a sample size of n=150 - I know this may not meet the required number of events and non events, but the analysis still has to be performed. I am missing 50 sample's results. Some have no entries (4 independent variables), and some have 1 or 2. To account for this, would multiple imputation be necessary or recomm...
I try to run this part of my code # Calculate spearman correlation test between the ordinal dependent variable and other variables spearman_corr <- map_dbl(other_vars, function(x) cor(dataset[[x]], dataset[[ordinal_dep_var]], method = "spearman")) and got this error, Error in `vectbl_as_col_location2()`: ! Can't extr...
How can we estimate P(A | B & C & D & E) with reasonable accuracy by only calculating something like P(A | B), P(A | C), P(A | D), P(A | E), P(A | B & C), P(A | B & E), P(A | C & D), and P(A | D & E)? Also, what is the best way to go about choosing the probabilities that we calculate? Context: If I have a dataset with ...
If $\text E[\varepsilon|X] = 0$, why is $\text{cov}(\varepsilon , X) = 0$? Can someone please explain it algebraically and intuitively? This is related to OLS and is based on the first assumption of CLRM.
I have a parametric time to event model for survival data and I found that a lognormal distribution has the lowest objective function value for a base model. Below is the hazard function for the lognormal parametric model: $$ h(t) =\frac{f(t)}{S(t)}=\frac{e^{-\frac12\cdot\left(\frac{\log(t)-\mu}{\sigma}\right)^2}\cdot ...
I'm reading the Introduction to Statistical Learning book. In chapter 11 (Survival Analysis, page 463), the authors state: In general, we need to assume that the censoring mechanism is independent: conditional on the features, the event time T is independent of the censoring time C. I also read the given two examples...
I´m preparing for a lecture in decision theory and I´m a little bit confused by the notation used by my prof. On the first slide under remark 3.2 point v) its written, that $\beta(\varphi)$ is equal to the power of the test $\varphi$, so the probability of correctly rejecting a false null. Consequently, $1 - \beta(\var...
I am building a model of overall accuracy for a robotic system, I have various error sources from assembly, calibrations, measurements, imaging, for each error I have a PDF of the error it induces on the tip of the robot, I have combined all error sources via convolution. I want to assess how much each error source con...
For me one of the most useful outputs from a chi-squared is the expected values. But in R, the expected values in a Fisher's exact test are not provided. What are the expected values in a Fisher's exact test? The same as expected values in chi-squared test? Also, how do I provide my own expected values in a Fisher's ex...
I have a project to do in which I need to select the 5 most valuable features using Lasso. I wonder what is the right approach to select a specific number of features using Lasso. Searching the Internet, I've seen people make feature selections in such a way that they look for the best regularization factor for Lasso u...
Would variables that are derived from other variables via summary statistics (e.g., mean, mode, standard deviation) be classified as interval or ratio type? Or neither?
I am new to GP and BO and I have been playing with the two in a simple 1D context which happens to be practically relevant to what I am working on. Essentially, I am trying to find a peak (modeled as a Gaussian) buried in additive Gaussian noise. Something like $f(x)={\frac {1}{\sigma {\sqrt {2\pi }}}}e^{-{\frac {1}{2}...
So I know that the area under the precision-recall curve is often a more useful metric than AUROC when dealing with highly imbalanced datasets. However, while AUROC can easily be used to compare classifier performance between different groups (since values are on the same scale), AUC-PR has the "problem" that baselines...
Looking over the differences between Fisher's exact test and Barnard's test, it seems I'm missing something fundamental. If both are exact tests, shouldn't both give the exact and identical value for $P(data | H_0)$, in this case $P(data | p_{r1} = p_{r2})$?
My understanding of Scheffé's adjustment for multiple comparisons is that it already adjusts for any possible contrast that one could make with the data, where the contrast coefficients sum to 0. This means that if I used his adjustment, the CI will be the same whether I do 2 comparisons or 200 comparisons, whether I ...
Using the method of section 6.7.2 of Burnham and Anderson, Model selection and multimodel inference: a practical information-theoretic approach, 2nd edition, one can compute the likelihood ratio comparing the likelihood that a particular data set (numerical variable; all values are positive) would occur with sampling f...
I'm reading a research paper found at this link. Although overall spending was higher in traditional plans than HDHPs for both populations, OOP spending was substantially higher for those in HDHPs compared with traditional plans, especially for those with SU/MH disorders (\$573 vs \$280). Is this a two-sample t-test...
Correlation with a random walk: Thanks for kind explanations. But I am still confusing. A random walk repeats previous values plus stochastic fluctuations. Then, can exogenous factors influence a random walk? Exogenous factors may disturb a random walk once, and the random walk will keep the shock permanently, but it w...
If we had $Y_i$, $i = 1, 2, ..., n$ are $iid$ and have the density $$f(y) = \lambda e^{-\lambda(y - \mu)} I_{y > \mu} , ~~~y >0$$ where $\lambda >0,~ \mu >0$ are unknown parameters. I was able to show through factorization theorem that the minimum order statistic $T_1 = Y_{(1)}$ and $T_2 = \sum_i^n y_i$ are sufficient ...
mlbench::data(PimaIndiansDiabetes) PimaIndiansDiabetes$glucose = na_if(PimaIndiansDiabetes$glucose, 0) PimaIndiansDiabetes$insulin = na_if(PimaIndiansDiabetes$insulin, 0) PimaIndiansDiabetes$mass= na_if(PimaIndiansDiabetes$mass, 0) PimaIndiansDiabetes$triceps= na_if(PimaIndiansDiabetes$triceps, 0) PimaIndiansDiabetes$...
I am comparing fish communities at 2 sites (upstream vs downstream) with data collected in two seasons (wet and dry) over several years (2017-2022), with data from the first pair of wet and dry seasons representing the period before a treatment and subsequent data representing periods after the treatment. During each s...
There are a lot of inconsistencies in the literature over what should be the appropriate term(s) for the regression models involving two or more responses, and if they are binary/continuous, for more than one predictor variable. I have three questions/clarifications regarding these: Multivariate Logistic Regression is...
Are there any known algorithms that can split up the prices into it's components? I have a pseudo-competitor dataset that looks like the following: Prices Fuel Type Brand Doors 15,000 Gas Audi 4 23,150 Diesel BMW 2 32,100 Gas Royce 2 For instance, through the algorithm (if available), the component Audi...
I have an online experimentation setup with incoming customers split into 3 groups: Random (all arms are applied equally) 20% Model-based (an existing, optimal strategy is run) 40% MAB (Multi-armed bandit): this is a new setup. 40% The MAB traffic split is introduced to compare with the existing model-based approach....
I have a data set of student written productions. I extracted textual features from all of them, e.g. number of words, number of verbs, sentence length etc. I am trying to prove that productions written at different school grades can be discriminated by these features. I have a dataframe like so: Student.........Words....
I am reading this article here on Confidence Intervals for Binomial Proportions (https://www.scirp.org/pdf/ojs_2021101415023495.pdf). In this article, the author lists several different methods (e.g. Wald, Wilson, Clopper-Pearson, etc.) that can be used to calculate Confidence Intervals for a Binomial Proportion, and t...
Claim 1: For continuous random variable, $P(X=x)=0$, where $x$ is a particular number. Claim 2: When we use maximum likelihood estimation, we plug-in mean, standard deviation and data point $x$ into the formula like this: $$L\color{red}{(\mu,\sigma|x)}=\frac{1}{\sqrt{2\pi\sigma^2}}e^{-(x-\mu)^2/2\sigma^2}$$ Then we wil...
I have a server able to observe from which country a client makes a request. Then, my server gives me the distribution of clients (on a 24h basis). Let's say that we have : Belgium: 10% Canada: 40% China: 50% Now, I know that I have a defined number of clients in two cities in each country. Let's say : Belgium_city1: ...
I want to design a cross-over study (clinical) to assess the performance of different treatments. The response of the study is binary outcome: success or failure. I have two fixed effects and one random effect in the model. I want to determine how many experimental units/participants do i need to have a reasonable stat...
Currently I'm working on a project where I'm looking for similarities between files. Problem representation: I have 13K files. Data are tokenized and every token has got it's type. Tokens represent parts of programming codes and one token can be a where clause (assigned type 5), then there will be a for loop(assigned t...
I'm performing Friedman test to see if there is a difference between 8 treatments, then if it is significant I'll do Wilcoxon signed rank test to see which pair is significant. I wonder if I should adjust this for multiplicity or this isn't needed because it will be performed only if Friedman test is significant at 5% ...
I have a very small sample (N=12) of results from a classification problem, and would like to compute the confidence interval around the precision and recall. The results of the classification are (with FNs omitted): TP | 2 FN | 9 FP | 1 I'm wondering if for this problem it's better to use bootstrap resampling or a...
In my work, I managed to arrive at the following scenario: Consider that I have a queue with two servers whose arrival rate is a poisson process $\lambda = 2 $ customers per hour and the service time is exponential with an average of $E(T) = 1$ hour . In this queue, if a customer arrives and no one is waiting, the cust...
I carried out an experiment where I measured the effect of temperature on the buffer capacity of a solution. I put my data in excel and calculated the RMSE and got 42.3671939. I want to explain the relationship between temperature and buffer capacity and I was wondering what 42.3671939 means. My data: temperature: buf...
Is there a way to compute and plot the transformed random variable in Python or R? Let's say if $X_1$ and $X_2$ are independent and identically distributed random variable with PDF defined over non-negative values of $x$ as: $$ f(x) = \frac{x^2e^{-x}}{2} $$ Another random variable $Y$ is defined as $Y = X_1 + X_2$. I ...
Chernoff faces, invented by applied mathematician, statistician and physicist Herman Chernoff in 1973, display multivariate data in the shape of a human face. The individual parts, such as eyes, ears, mouth and nose represent values of the variables by their shape, size, placement and orientation. The idea behind usin...
I have a question which I have had for many years but never paid attention to it. When you have time series, in a machine learning context, what are the samples and the features? I would like to emphasize that I have time series, and that for this project, I am working with python (numpy arrays). Perhaps I can explain ...
I have a dataset with quarter wise revenue for past 3 years from Jan 2020 to Dec 2022. I have 4642 customers. Each customer has 1 row of data which includes features based on his purchase frequency, avg revenue, total revenue, min revenue and max revenue etc for each quarter. So, from Jan 2020 to Dec 2022, we have 12 q...
I have eight types of materials Mat1 to Mat8 (produced with different production parameters). From these eight populations I have measurements of a material property X which is easy to measure and measurements of Y which is harder and costlier to measure but is the property that we're interested in. The idea is that X ...
I have an analysis in which I have three treatment groups each assigned to a (different) experimental condition, and one group assigned to a control condition. I am interested in whether any/each of the treatment groups differ on the DV from the control group. I'm not interested in whether the treatment groups differ f...
According to my professor, Gradient Boosting can be done using the following algorithm: Now, I do not really understand the inference part of that algorithm. Why cannot we not simply return $F^{(K)}(x)$, which was returned in step $6$ of the algorithm? Moreover, does this method not imply that we have to keep track of...
What effect is estimated from the execution of IPW? When running IPW in R, I know that you specify the formula for the weight itself, i.e.: (treatment / propensity) + ((1 - treatment) / (1 - propensity)) To my knowledge, this weight helps generate the ATE. My question is this, is the ATE what you ideally should be esti...
I have hundreds of binary features, resulting in a large binary design matrix (though note that my response variable is not binary). I've tried typical models like logistic regression, KNN, and SVMs with specialized kernels (like the Hamming kernel, mentioned here). I've also tried reducing the dimensionality of the da...
For that regression: $$ y =X_1 \beta_1 +X_2 \beta_2 + u $$ with $u \sim N(0,\sigma^2 I)$ and I want to derive Wald for the hypothesis $\beta_2 = 0$ as you know, for the regression of $ y = y =X \beta + u$ and hypothesis $ H_0:R\beta =r$ Wald is equal to $W$ = $ \left( R\widehat{\beta }-r\right) ^{T} \left( R \cdot I^{...
Let $T$ be a compact set, and let $K \colon T \times T \to \mathbb{R}$ be a positive definite kernel. Consider the canonical pseudo-distance $$d_K(x,y) = \sqrt{K(x,x) + K(y,y) - 2 K(x,y)}.$$ Let $f$ be a function defined on a compact set $T$, and suppose that $f$ is $L$-Lipschitz with respect to $K$: $$|f(x) - f(y)| \...
I have to do a public policy evaluation (on R) based on an article where the authors use a quarterly survey to study the effect of a parental leave reform in 2015(reducing the length of leave) on the probability of a mother taking parental leave. In the article the authors use a combination of diff in diff with a regre...
I am building a structural equation model, attached in the figure. However, when trying to estimate its parameters I get an error indicating that the model is likely unidentified. The software I'm using outputs In order to achieve identifiability, it will probably be necessary to impose 2 additional constraints Unfor...
I have 4 predictive features and 4800 observations. I did PCA fit like this: pca = PCA(n_components=X_train_scaled.shape[1],whiten=True) pca.fit(X_train_scaled) and I got I have a few question regarding this: Does this mean that the first feature, which is age in this case, is the most important? I know that this is ...
I want to ask if it is possible to include a natural spline(as one predictor) in the lasso model. When I do that in glm model, I can use ns() function on the predictor side. I came across the following post mentioning adding the base function to the X matrix. Spline regression with many features in R I used the data fr...
If I have one sample with repeated measurements I can construct a 95% confidence interval on the standard deviation using the Chi-Square distribution. What if I have multiple samples, each with their own SD value and I want an average SD value with 95% confidence intervals? Do I still use the Chi-Square distribution wh...
Here is some context. Let $(T_{n})_{n\geq 1}$ be an i.i.d. sequence of random variables taking values in $\{1,2,\ldots\}\cup\{\infty\}$ with common distribution $(q_{k})_{k\geq 1}$. We call discrete (undelayed) renewal process the process $(Y_{n})_{n\geq 1}$ defined through $Y_{0} = 1$ and, for any $n\geq 1$, \begin{al...
We know that $\hat\beta^{ridge}= (X^TX+\lambda.I)^{-1}X^TY$ but I was wondering if there was a similar equation for $\hat\beta^{Lasso}$.
I recently heard one can detect collinearity between a factor (Species) and a continuous covariate (TL) simply by making a boxplot. If the plots don't overlap, there is evidence of collinearity. I'm not skeptical, just surprised I haven't heard this before and hoping someone can confirm this is a thing. How does this i...
Does the zeroth and 100-percentile exist and do the minimum and maximum of a set of data belong in those respective sets?
I have a probability estimate for an intractable underlying distribution. For a contemporary example, let's say it is the probability of a team $T$ making it to the postseason in American football. This probability has been estimated by running $n$ simulations and finding the proportions of the logistic output, where 1...
I've trained a logistic regression over my data. I checked feature importance: from matplotlib import pyplot features = X_train.columns importance = Model.best_estimator_.coef_[0] plt.bar(features, importance) plt.title("Feature Importance according to logistic regression") plt.ylabel("Improtance") plt.show() and t...
I am reading E. T. Jaynes' probability theory book, and I am at chapter 11 where he introduces the maximum entropy principle. I understand that Jaynes separates the notion of probability from that of frequency, which I like. But his arguments leading to the maximum entropy principle seem to mix up these two concepts: F...
My data has 75% of zeros in the target variable and represents a count of events with a mean of 0.62 and a variance of 2.52. Each observation comes from a geographical region (unit_region) and month; these regions are nested into two levels (as if unit_region were cities, region_lvl1 were states, and region_lvl2 were c...
coxMod <- coxph(Surv(time, DEATH_EVENT) ~ anaemia, data=HF) summary(coxMod) Call: coxph(formula = Surv(time, DEATH_EVENT) ~ anaemia, data = HF) n= 299, number of events= 96 coef exp(coef) se(coef) z Pr(>|z|) anaemia1 0.3374 1.4013 0.2050 1.646 0.0998 . --- Signif. codes: 0 ‘***’ 0.001 ‘**...
Ran an experiment whereby I had a factor of 5 different levels on a plant cultivar. A wide range of responses were recorded. Due to the layout of the room, I quickly realised that blocking was required as plants in one area had different growth rates compared to plants in another. I therefore had 2 blocks, A and B. How...
$$K(x_i, x_j) = \sigma(x_i)*\sigma(x_j),$$ where $\sigma: \mathbb{R}\to\mathbb{R}$ is a sigmoid function. Is this kernel positive definite? Thank you for your help.
We have been given a random variable having a Gamma distribution as shown below: Using the accept-reject algorithm, we are supposed to sample from the Gamma distribution using exponential as the proposal distribution. And using this sampler, we are supposed to estimate the following integral: I got the samples using ...
I am getting better results when I enter as inputs both Z-score standardization and Min-Max scaling. The only worry is when it comes to data selection the algorithm is some time selecting the same feature for both Z-score and Min-Max. Is it a problem? and How to justify that scientifically ??
I have come across a problem where a half normal distribution is based on a single number, namely the sum of all costs. The exact definition of the number is not important. The important think is that it is a single number. I also know how many individual costs have been used to get to the total. Ex. there were 200 obs...
Suppose there are three apples, two oranges, and one pear in a bag. I put my hand in a bag, and based on my tactile sense, I guessed what fruit I will grab out of the bag. My fruit predictions are the following: Fruit Prediction Apple Apple Apple Apple Apple Pear Orange Orange Orange Orange Pear Orang...
Given $X_1,X_2...X_n \sim F$ and $(\hat{F}_n(x))$ is an empirical CDF I need to prove that $$Var(\hat{F}_n(x)) = \frac{F(x)(1 - F(x))}{n}$$ So what I did is: The variance of an estimator $\hat{F}_n(x)$ of a population CDF $F(x)$ is this: (if I'm not mistaken) $$Var(\hat{F}_n(x)) = E[(\hat{F}_n(x) - E[\hat{F}_n(x)])^2]$...
I am having trouble interpreting my mixed-model results. I am a biologist and not really good at statistics yet. I have done a mixed-model using binomial family, as the dataset I am working on is proportional. I want to know if the proportion of diseased larvae is affected by the element type (C, H, W), the distance (D...
I am conducting a study where 3 raters assessed performance of two similar test in regards to classify a lesion as malignant vs. benign. I wish to calculate specificity and sensitivity of each test with regards to golden standard. For example, I was thinking of adding all raters true positives and dividing those by the...
I have a continuous independent variable ($x$) and binary dependent variable ($y$). I want to look at the relationship between them (I think I'd prefer regression to correlation) and I want to see how other variables (some continuous, some categorical) might confound the results? Separately I also want to run another t...
I am relatively new to using the MLTK app on Splunk. When trying a number of example, I ran a regression that uses "ac_power" to predict "total-cpu-utilization". I receive the following R squared and RMSE for both training and testing, respectively. Since the R squared > 0.9 and the RMSE is similar for both training a...
In some machine learning models there is a predict_proba function for the overall class probability based on all of the features in the model. Is there a way to find the individual probability contribution of each feature? For example, if there is a 85% chance of raining based on three features: cloud coverage, humidit...
I am trying to plot the Partial Dependence of built form against energy consumption (kwh/year) in python. As shown in the attached chart, so it returned a plot with huge partial dependence on the y-axis. The model was a gradient boosting model, and the input y is around the similar range of what is showing in the y-axi...
I aim to build for the first time an ordinal logistic regression between a dependent ordinal categorical variable (temperature sensation vote TSV, Y) coded on a bipolar ordered 6-point scale (from very cold to very hot) and a continuous independent variable, which represents the intensity of human body stress to heat (...
I am in the process of setting up my analysis using IPW with the R package WeightIt. My issue is that my weights seem off from the examples and reading materials I have reviewed in preparation for this analysis. In particular, for all treated units, the weights generated from IPW are equal to "1". Below is the syntax f...
You are developing a linear regression model that needs to rapidly process large volumes of data. Which of the following regularizers would you NOT want to use if you are primarily concerned with computational speed? The multiple choice options are: L0, L1, L2, L_infinity, Frobenius norm. Idea: I would lean toward L2, ...
Let's assume we are going to train a regression model (could be any ML tabular solution for regression. Ex.: LGBM, XGBoost, Perceptron, ...) to predict a customer profit in the next month. While setting up the training dataset, we observe that the same customer appears in the dataset 3 times like the following table: ...
I have a continuous variable and a binary variable. I am conducting logistic regression to see the relationship between them. Is it true that if I use the Stata command logistic rather than logit, Stata will exponentiate my coefficients for me into odds ratios? Does it also exponentiate the confidence intervals? How do...
I am executing coarsened exact matching (CEM) in R using the MatchIt package. Below is the syntax for my project: c_matched <- matchit(pko ~ lnatres + lgdppc + lpop + lmilper, data = merged, method = "cem", estimand = "ATT") c_matched <- match.data(c_match...
I have a dataset that has a binary dependent variable (choose 1=yes, 2=no) and the reasons given to choose each product. Independent variables include color (1=yes, 2=no), flavor (1=yes, 2=no), etc. Here is a simplified example. I actually have 10 independent variables and n=500. color flavor choose 1 0 1 1 ...
The MH algoithm is used to obtain samples from a probability distribution $f$ that is difficult to sample from directly. The process as described in this answer is: Pick a initial random state $x_0$. Generate a candidate $x^{\star}$ from $Q(\cdot\vert x_0)$. Calculate the ratio $\alpha=f(x^{\star})/f(x_0)$. Accept $x...
To analyze my ordinal (Liker scale ratings) I used the clmm function for the ordinal package. Since I have fixed and random effect, I try do backward model selection (of nested model) using the anova function. When there is a significant difference given by Chisq, I used that model. However, my understand was that in t...
I need some advice to understand the following code. We are working with lung data and usually we use LMS technique to calculate the reference curves. In order to calcualte the curves with LMS method from gamlss package we use the following code (forexample) library(gamlss) A<-lungFunction m1 <- gamlss(slf ~ log(heigh...
I have a dataset with a dependent binary variable and one independent variable (with five categories). When applying logistic regression I have a model that calculates the coefficients of each of these categories in accordance with a reference category (normally it is the first category). When changing the reference gr...
I have a total population size of $N$ (known). From the unique elements of the pool I draw samples $s_i, i=1 \ldots m$ without replacement. I also know that each sample $s_i$ appears $k_i$ times in the population pool. How can I calculate a confidence interval for the mean from this sample that makes use of the frequen...
This is related to Gelman's BDA 3rd Edition Chapter 11, Sec 3. The book says the following. "The Gibbs sampler is the simplest of the Markov chain simulation algorithms, and it is our first choice for conditionally conjugate models, where we can directly sample for each conditional posterior distributions. For example,...
I don't often engage in statistics, so please excuse incorrect terminology or if I've missed something obvious. Our team is working on animal morphological data. In summary, we have collected a bunch of "real world" morphological data (length and weight) from a population, and would like to compare it with the values t...
I'm using gratia_0.7.3 Edits with changes from Gavin Simpson's comments. Clarification: I am interested in knowing during which years CPUE changes significantly. I am running these models for 3 species in 3 rivers. I have 3 sets of models the first is changes in angler catch rate, the second is change in fisheries size...
I'm working on a project involving regression models with multiple interaction terms. An example regression would be: $Y$ ~ $A$ + $B$ + $C$ + $D$ + $AB$ + $CD$ where $AB$ = $A*B$ and $CD$ = $C*D$ All variables are continuous, normally distributed, and symmetric, with a mean of 0 and sd of 1. I know the correlations bet...
When generating weights using nearest-neighbor matching with Mahalanobis distance, all of my weights for each treated and non-treated unit are "1". Below is my syntax using the MatchIt package in R: m_matched <- matchit(pko ~ lnatres + lgdppc + lpop + lmilper, data = merged, me...
I'm modelling the number of schools in a given region, as a function of the population of that region. I've got something like 6000 different regions with populations ranging from something like 100 up to around 100,000 and the number of schools in a region ranging from 0 up to something like 25. What would the best di...
For generic propensity (purchase, churn etc.) modeling a lot of typical references / examples available use randomized splitting for train / eval / test sets. For propensity modeling in practice though is there much concern for temporal / seasonal factors and are most folks splitting data temporally as opposed to rando...
My dataset follows this structure: Variable_1 Variable_2 Variable_3 Variable_4 3 5 0 6 5 5 1 7 6 7 3 5 9 6 3 10 12 10 5 10 From this data, I generated a correlation mat...
I have mean sales data of a product, pre & post an event, for a list of countries. i.e I have 2 sales value for a product per country. My aim is to see if there is statistically significant increase in the sales (if post>pre) due to the event. When doing a t-test on the difference in mean ((post-pre)/max(post, pre)), I...