instruction
stringlengths
9
38.7k
For OLS, $\hat{\beta} = (X'X)^{-1}X'y$, and $\text{var}(\hat{\beta}) = (X'X)^{-1} X' \sigma^2 I X (X'X)^{-1}$. I can reproduce these "by hand". For WLS, with heteroskedastic errors and weights in diagonal $W$, $\hat{\beta} = (X'WX)^{-1}X'Wy$, and $\text{var}(\hat{\beta}) = (X'WX)^{-1} \hspace{2 pt} X'W \hspace{2 pt} \t...
I have $(X_i, Y_i)$ as random vectors for $i=1,2,3,\dotsc, 10$. All $X_i$'s and $Y_i$'s are uniformly distributed. My question is about the definition of $R$ which is a random variable such that $R=1(X_i, Y_i)$. $(X_i, Y_i)$ here is a subscript of 1. I just do not know what 1 means. Thanks.
In a GLM, how should I interpret the difference between using sum of the model's Pearson residuals model's Deviance to assess the fit of my model? Is the former more "flexible" since I can estimate a dispersion parameter? I feel like the Deviance provide a more parametric assessment since it takes the form of the ML ...
So I have a large data set regarding honeybees. I have three measurements, activity count, internal temperature of a hive and external temperature outside a hive (also the time when measurements were taken, but that isn't important at this stage). Activity count is a pure count of bees. Data set looks like: Activity |...
Background and Problem I recently ran a Bayesian multivariate epidemiological meta-analysis on prevalence estimates for several disorders. This analysis included a probit-based model to deal with the individual patient data (N ~ 1600) I was able to dig up. In addition to providing an estimate of the individual prevalen...
Let's say that you have a fair coin, and someone offers to pay you a fixed amount for every time the coin shows heads, and you will lose the same amount if the coin shows tails. Once you have the coin, you're allowed to toss it as many times as you want. When you stop, the amount you receive or owe is determined based ...
I am currently learning about conditional probability from "The Book of R" by Tilman Davies and I'm having trouble understanding a conditional probability problem. The problem is as follows: You randomly draw a card, and after replacing it, you draw another. Let A be the event that the card is a club; let B be the even...
I have been trying to construct a Correlogram in R for which I have installed the corrplot package. I have been trying to combine the correlations along with the significance test so that I can visualize which of the correlations are insignificant. I have taken the mtcars dataset and have typed the following commands: ...
Suppose I have two temperatures in an experiment, $\theta_a$ and $\theta_b$, which theory predicts should be equal up to an offset. Is there a simple word to describe this relationship? I have considered the following: $\theta_a$ and $\theta_b$ are separated by a constant offset $\theta_a-\theta_b$ is constant $\theta...
I am working on a high profile manuscript which will go into a journal oriented on translational or medical science. In the paper, several ROC curves have been presented to show the performance of machine learning models in detecting a particular disease. As estimates of the performance, I have given AUC values and con...
I have solar panels and have been logging their output in a Google spreadsheet. The only data I collect is the following: Reading Date kWh Where kWh is the cumulative reading on the meter. I don't perform a reading every day, sometimes weeks or months can pass without me taking a reading. In total I have 144 readin...
Does structural equation modelling inherently test the significance of the indirect effect (i.e. the mediator)? For example, other methods of mediation such as regression use bootstrapping to test the significance of the indirect effect. I do not know much about SEM so I'm wondering whether this is tested inherently in...
I have a sample of observations (n) representing individual evaluations (positive/negative) of pieces of text (n texts). Each individual can evaluate more texts (thus there are m individuals with m < n). I would like to test if the population mean (ratio of positive evaluations) is $>0.5$. My initial idea is to comput...
In our introduction to statistical inference, the lecturer said In statistics we assume a certain type of probability model generates observed data and we use a collection of observations to estimate which particular model is most plausible, ... This does not seem sensible to me. How can one just "assume" a certa...
let $\{X_n\}$ be a sequence of random variables does having finite limit for $\operatorname{E}(X_n )$ is equivalent to convergence of sample mean $\mu_n = (x_1 +x_2 + \cdots+ x_n)/n$ ? my approach is intuitive : if a sequence converges in probability so should its mean ? m i correct ? $\lim_{n\to\infty} \operatornam...
I mean: the Huber/White/sandwich estimator of standard errors. It seems to me that, in the case of continuous outcomes, robust estimators of standard errors are rather simple, given that variance of residuals for each observation is calculated as the squared (estimated) residuals from the regression. But I can't figure...
Basically what the title says. I have run a logistic regression with an ordinal independent variable (scale from 1-7) and get an odds-ratio of 2. I am unsure of how I interpret this? Do I find the odds of being in the "yes category" of the binary dependent variable given that the independent variable is 1 and then repo...
I am using a multilevel regression model with a multinomial outcome (i.e., three unordered categories) as dependent variable, assigned the numeric values 0, 1, and 2. 0 being the reference category. The model can be seen below: My question is: Is it possible to compare the odds ratio effect size for Variable 1 on b...
Let's consider $N$ different musical instruments. For each instruments, $k$ notes have been recorded at different frequencies. $M$ audio descriptors have been extracted from every instrument and every frequency. Therefore, for each frequency we have an $N\times M$ matrix: $ A_1 = \begin{bmatrix} s_{11}^1 & s_{12}^1 &...
I have binomial outcome data with predictors that are binary factors (presence/absence) and predictors that are continuous variables. I know to scale continuous variables, but what is proper way to present the continuous variable effects beyond saying that, for every standard deviation of the variable, the log-odds rat...
I have two time series; (1) with average daily temperature (which is negative in Q1 and Q4 on some days) and (2) gas consumption of a client: A part of the process I am trying to achieve is to calculate the relationship between gas consumption and temperature. I expect the consumption to be higher on average when it'...
I have aggregated(total) youtube videos views. I have take log of that views. And calculated autoregressive koefs that can be used for the video views predictibility tests. Let say I have aggregated daily views array for each video. Koef for each video is calculated as: koef = aggregatedViews[60] / aggregatedViews[3...
Consider the generalized regression model (in my case a probit, but I'll leave it more generally): $$ E[y|X] = F(x'\beta) $$ where both $x$ and $\beta$ are ($K \times 1$) column vectors and $F$ is some function (in my case a c.d.f, and we call its derivative $f$). We can easily derivate the marginal effects as: $$ \fra...
Assume I have two points in $R^2$: $P_{t=0} = (x_1, y_1)$ and $P_{t=1} = (x_2, y_2)$ at $t=1$ I want to calculate the heading angle/orientation of the particle. Both points have measurement noise of N, and the noise is constant. To calculate the orientation: $\theta = arctan2((x_{1} - x_{2}), (y_{1} - y_{2}))$ However,...
I have an experimental treatment with 16 conditions. In each condition, subjects are given $2 and asked to divide it (in 1 cent increments) between themselves and another entity. The entity is different across conditions (sometimes it is another subject, sometimes it is a charity, etc). The objective is to find how the...
I have a study where schools' 4th graders are randomized into treated and controls (at the school level, i.e. there are treatment and control schools). Within each treated school, treatment follows a sharp cut-off rule which also allows for a sharp regression discontinuity (RD) approach. In contrast, among 3rd graders,...
I would like to make a predictive model to classify some test data set. So I'm thinking of utilizing several different models and find out the best one(by misclassification or other measures). I know that validation is an important step in the process to give us an accurate, out of sample performance. My question is, i...
Consider vector $y_t$: $$y_t = \mu_0 + \delta d_t + x_t,$$ where $x_t$ is a zero mean stationary process and $d_t = I(t \geq T_B)$ with $1 < T_B < T$ and $I(\cdot)$ being an indicator function. I have to derive mean of $y_t$ and argue whether it is weakly stationary or not. Since mean of $x_t$ is zero, we have that ...
The problem is the following: Buses arrives according to a Homogeneous Poisson with arrival tax of 5 per hour. Each bus can contain 20, 21, 22... 40 passengers with eaqual probability. Write an algorithm to simulate the number of passengers in 1 hour. Write an algorithm to obtain 500 values of passengers. I kno...
I have noticed a difference in post-hoc results produced from a repeated-measures ANOVA and a linear mixed model. Here is reproducible code: library(lme4) library(lmerTest) library(multcomp) library(agricolae) data(ham) #LINEAR MIXED MODEL WITH RESTRICTED MAXIMUM LIKELIHOOD model <- lmer(Informed.liking ~ Gender * Pr...
I have been recommended the logit link for data in (0,1) since it's interpretable... how? I am using the logit link function for data which is continuous (i.e., this is not logistic regression ... think beta regression.) That is, I have the following model$$EY_i = \mu\\ g(\mu) = X\beta \\g(x) = \text{logit}(x)$$ and $Y...
I was experimenting with the relationship between the errors and the residuals using some simple simulations in R. One thing I've found is that, regardless of the sample size or error variance, I always get exactly $1$ for the slope when you fit the model $$ {\rm errors} \sim \beta_0 + \beta_1 \times {\rm residuals} $...
While reading this awesome paper I got stuck to understand the SCST model as depicted bellow: My questions are: Are $h'_0$ and $h_0$ the same? The same to $c'_0$ and $c_o$. If not what are they respectively? By "current model" and "reference algorithm"(the second one as depicted) do you mean the same model as the s...
I am using this forum for the first time and hope to get comments on my question that I have been struggling to answer for quite some time now. My dependent variable is a bounded variable Y [0 to 1] and I am using a GLM with a probit link. This variable is measured at time t. The main independent variable is a binary ...
I have one concern regarding a time series forecast. I have panel data from which I computed the monthly mean. These monthly variables are now itself random and have a relatively high standard error and weird distrubtion (basically uniform) Now I'm wondering, what method I could apply in order to predict the macroeco...
This is supposed to be a rather rudimentary combinatorics problem, however, I can't seem to wrap my head around it. The Problem There are 40 distinct items, one person can pick (up to) 3 items. To reduce complexity, one could also assume that each person will pick exactly 3 items. For any single pair of items, I would ...
Suppose I have 3 columns and n rows. Each row represents a school and the columns represent variables of interest and have ordinal ranks (1,2,3,4....n; 1 being the best and n being the worst). Furthermore, the weight (significance) of each column is known - e.g. 0.25, 0.5, 0.25. The question is: for a given school, can...
I have some SNP data, and wanted to investigate the association between mother's SNPs and a phenotype in their children. In my model, the child's phenotype is the response variable; mother's SNP is the predictor variable. I also adjust for multiple confounders, such as mother's nutrition status during pregnancy etc. Mo...
The imputed data I have from imputedata <- mice(data, m=2, seed = 12345, maxit = 10) are different from the first 2 imputed data sets obtained from imputedata <- mice(data, m=5, seed = 12345, maxit = 10) I was not expecting this difference and was unable to find details explaining it in https://www.jstatsoft.org...
I plotted the learning curve using the false-positive rate (FPR) as the scoring function. The function was of course adjusted to reflect the lower FPR as the higher score. The resulting learning curve looks something like this: What do I make of this curve? More samples is bad? But less samples would also mean over-fi...
I have two computational methods (A and B) that have a random behavior each, i.e., if you run the same methods 10 times, you get 10 different results (usually with a small variance). To compare both methods, we selected 5 different databases (its hard to get more) and ran method A and method B, 10 times each, on each o...
I have a logistic model where I modeled an independent variable at both first order only and then as a second order polynomial (via the poly function in R). I noticed that the p-value for the IV decreased significantly from 10^-4 to 10^-77. However, when I look at the summary output for both first and second order term...
So I was asked by a reviewer to provide the "P-value" for my random forest regression model. I tried to do some research on this, and only found methods to produce p values for each split condition (like in 'party' package), and p-values for variable importance (like in 'rfPermute' package). I find it hard to trust th...
As far as I studied, the Bayesian approach is the most correct in Machine Learning. Thought, I solved an exercise where it was required to find out the decision boundary in predicting two different classes, assumed to be generated with a 2D Gaussian distibution. Here is is the Bayesian approach. The boundary is: $$C_1 ...
I have a binary feature that i want to use it with textual features i.e. one grams. I use logistic regression and TF/IDF for representing text. So i simply add a unique feature, say ss or oo, to text of each instances. But in practice, i see adding more number of these features to instances, say two oo or ss or more ge...
reading a sociology paper (https://link.springer.com/article/10.1007/s11577-015-0343-4, german) for a course today, I stumbled upon the following equation: It's supposed to describe a 2-level "random intercept" (intercept-as-outcome) regression model where j denotes a level 2 group and i denotes level 1 case within a...
I would be grateful for some input on an analysis I am doing. I am looking at medical data set. I have to main outcome variables, organ failure and mortality. I have multiple predictor variables. I have generated a cox model. I want to look at mortality and organ failure during the entire length of admission and at 3...
Can someone please give me a reference where I can find more info on the method of Poisson maximum likelihood maximization with smoothing hyperparameters Here we want to find the parameters Ws and βs are called the smoothing hyperparameter. Does anybody know what's the name of this method?
I have a dataset of about 26,000 words along with their gender tags [m, f or any]. Which ML algorithm should I use for Gender Tagging/Classification purpose. How should I go about it? What should be the input features? Given a word , it's POS tags and in some cases the singularity I am trying to predict the gender of...
I have a model that is trained on n classes and has more than 95% accuracy on the test set. The model is going to receive a mixture of images that are either from one of the n classes or from unknown classes. My guess / expectation was that in the latter case, the distribution of values on the last layer (softmax) woul...
I'm using Keras with Theano backend (for results reproducibility) which aims to give a one step ahead of a time series. It takes lagged sequences from 16 different time series (one of which is the target time series) and fits a network with an initial Dense Layer, then a GRU layer and finally a Dense Layer too receive ...
I've always had trouble understanding ANOVA (regressions make much more sense to me, and are more powerful, so why bother with ANOVA?). But I've been reading a book on the history of the gene-environment interaction debate, and I wanted to make sure I understand how ANOVA works. So let's construct some simulated dat...
What is the procedure for estimating the population covariance matrix from many incomplete sample covariance matrices? For example, say my data consist of 7 flavors of time series, A-G. My goal is to estimate the population covariance among all 7 flavors. However, each of my (many) observations and thus my sample covar...
I've fitted a regression model $$y_i = \beta_1x_i + \beta_2z_i.$$ Both $x_i$ and $z_i$ are known to have a positive effect on $y_i$. So, one would expect $\beta_1, \beta_2$ to both be positive. However, in my case, $\beta_1 > 0$, and $\beta_2 < 0$. Is this caused by colinearity? $x_i$ and $z_i$ are kind of correlated....
I have three distributions of topic obtained by Latent Dirichlet allocation: theme_1 = {cat*0.7, dog*0.2, pet*0.1}, theme_2 = {salad*0.5, fish*0.3, chicken*0.2}, theme_3 = {cuisine*0.4, food*0.3, tomato*0.3}, I need to calculate the coverage of each item in a document having a word count vector for example: d1 = {D...
I have lots of photo diodes of the same type and I want to investigate them with the help of a mixed model with R (I just made my first steps via some tutorials). First of all I would like to know how I start respectively how I specify the model. For each photo diode I have about ten measurement data points (current/am...
Suppose a sample from the normal distribution, the canonical statistic is: $\boldsymbol{t(y)} = (\sum y_i, \sum y_i^2) = (v,u)$. The distribution $f(u|v;\theta)$ forms an exponential family. In my book the explanation to this is: Given $\sum y_i = n\bar{y}$, $u$ differs only by a constant from $\sum(y_i - \bar{y})^...
I want to fit the nested linear-nonlinear Poisson models to the spike train of a neuron. How can I test the model performance by computing how much the log likelihood increase from a fixed mean firing rate model? i.e., what test can I use to see if the increase was significant? Is it possible to use the one-sided sign...
I have been doing AB tests for quite a while. I use either a Fisher Exact Test or a Welch t-test depending on if my data is expected to be binomial or Gaussian, respectively. These produce p-values which I am happy with. I also include the difference in the statistical means which is essentially the expected size of ef...
I am trying to choose which statistical test(s) to use for my study. It is a retrospective cohort study comparing the outcomes of 2 different surgical oncology techniques (Let's call them Treatment X and Treatment Y). The primary outcomes are local recurrence, metastasis, and mortality. Note that these are all dichotom...
Assume I have a dataset split into train/val/test and I want to compute the optimal threshold value for an F1 score. This threshold value is in [0, 0.5] as described in What is F1 Optimal Threshold? How to calculate it?. For a classifier that outputs a probability I would select the optimal F1 threshold on the validati...
When using a parametric bootstrap, we use MLEs to parameterize the model. When working on a normal distribution, I assume that we use MLEs for both the mean and variance. But the MLE of variance parameter is biased, and this makes me confused. I think that the idea of bootstrap is to generate samples from a distributio...
I'm working on a project that generates a list of decimal numbers every hour. The amount of values in the list can range between 1 - 6000 depending on the some variables (time of day etc). Each of the values will range between -1.0 and 1.0. Anything below -0.1 is considering a negative result and anything greater than ...
Suppose I want to estimate the area of a circle by getting 10 measurements of its diameter. I assume that the measurements are Normal (D,1). I want to get an estimate of the area, A using the method of moments. My question is, will this work if I used the method of moments to get an estimate for D and just get an estim...
I just started learning about ANNs about a week ago with no classical training. Just by watching videos and reading blogs/white papers, I've gotten this far. I have a question about the final output of the ANN. Say for instance I was building a XOR with two input node, 3 nodes in one hidden layer and one node in the ou...
Is there a way to use LASSO for dimension reduction by choosing only relevant attributes? Is there a defined procedure for doing it optimally? Is there a example dataset that can be used for it?
I am reading the book "Time series analysis by state space methods" by J.Durbin and S.J. Koopman (second edition). On page 17, the book says, for local level models, the probability of one-step prediction error (of Kalman filter) $v_t$ at time $t$ is equal to the probability of observation $y_t$ at time $t$ conditioned...
I'm trying to understand how to perform meta-regression treating each arm of studies in my data as an individual study with a single proportion as the outcome. I have read through the documentation for the R package metafor, but have only found the option to estimate using relative risk, odds ratio or other si...
Can someone give me a counter example of when we should not use standardization on variables? I understand what standardization is but i am not getting the point why we need to standardize variables? I seached for many sites but can't find an answer, On many sites i found that we should use it when variables are measur...
The Scikit-Learn package in Python has two metrics: f1_score and fbeta_score. Each of these has a 'weighted' option, where the classwise F1-scores are multiplied by the "support", i.e. the number of examples in that class. Is there any existing literature on this metric (papers, publications, etc.)? I can't seem to fi...
I have some indipendent variables stationary at level, some stationary in first difference and one stationary in log first difference. Is it possible to run a regression with variables with different transformation? My dependent variable is stationary both in first difference and log first difference. Thank you very mu...
we perform a two-tailed two sample t test in each dataset and obtained P values. then we use weighted stouffer's Z score method to transform each Pi to Zi (Zi=Φ−1(1−pi/2)) and the combining Z . Now, I don't know how to transform the combining Z score to stouffer's adjusted P value, whether P'=2Φ(Z) or P'=Φ(Z) ?
I am reading Section $2.4$ of The Elements of Statistical Learning (page $18$). The authors are looking for a function $f$ for predicting output variable $Y$ given values of the input $X$. Starting from the squared error loss, they derive the regression function $$ f(x) = E(Y|X=x) $$ as a solution to an optimization pr...
I have trained two different models (an ANN and an SVR) on the same training set, using K-fold CV. I would like to know if I have to evaluate their performance exactly on the same test set.
$\sigma(x)$ is the sigmoid function, that is, $\sigma(x)=\frac{1}{1+e^{-x}}$. And $x$ is from a Normal distribution of 0 mean and 1 variance. Now I'd like to calculate the expectation of the derivative value of the sigmoid function, i.e, $\int_{-\infty}^{\infty}\sigma(x)(1-\sigma(x))\mathcal{N}(x|0,1)dx$ Thanks in adva...
I am working with firm-level panel dataset spanning multiple industries. I normalized the independent variables (e.g. inventory) by firm size (measured using firm assets) in order to control for firm size. My dependent variables (DV) are Sales and Profit. Do I need to normalize DVs as well just because I normalized my ...
I know that from Hastie et. al's paper, that in the single response $y$ LASSO, the $\lambda$ values are chosen such that: $N\alpha\lambda_{max} = \max_l |< x_l, y_l > |$ Also, $y$ is by default standardised before forming the grid of $\lambda$ values on log-scale. Then, the grid is de-standardized by multiplying back b...
Lets say that i have linear regression $Y= a +XB$, and in my $X$ matrix i have a dummy for the gender, lets call it $d_{g}$ which is 1 for male and 0 for female. The coefficient $b$ of $d_{g}$ shows the effect of being male relative to the effect for being female. How can i get the effect of being female ? Or the effec...
I am getting some very weird results. I have created a density plot for various continuous response variables, which are independent of each other. I have noticed that the Density value seems to be very small. I know the height is meaningless and what needs to be interpreted is the area under the curve. Therefore I ha...
I'm calculating Pearson's r for a set of dichotomous values. For one item in my data set, all values are identical. Since the variance in y will be 0, I will ultimately end up with a division by 0. I guess I have two questions: Is it fair to say that the correlation coefficient is 0, or is it more valid to say that i...
I was reading a research paper in a reputable journal. They mention the following: The balance sheet ratios are demeaned within quarter and normalized within quarter by dividing them by one standard deviation. First of all, why would someone do that? Second, if i want to replicate the output this standard deviation is ...
So say the predictor variable is coded 1,2,3,4 for 4 different cities. Is this bad? I've heard that it only makes sense for things that have a natural ordering. Like number of stars for a movie or something. But in R, if you do factor(city), it basically splits it up into 3 different dummy variables. So why does the di...
I've analyzed effects of temperature and sample thickness on drying process via response surface methodology. I've faced to four high leverage points (my four axial runs) that stick together on normal probability plot. these points aren't the outlier (on residual versus run plot).
I am performing a meta analysis on longitudinal cohort studies reporting outcomes in cognitive performance as a function of adherence to a nutritional variable. Most of them provide "standardized means differences" or "standardized beta regression coefficients" which I can easily convert to a correlation coefficient. ...
I have a problem with my co-author, we do not agree on the inerpretation of the regression coeffcients. In our regression (part of a more complicated model, which does not matter here) we defined the dependent variable as log difference, that is, ln(Gt) - ln(Gt-1), where G are local investment. The most relevant indepe...
In a binary classification problem, in the training data set, how many rare events should i have. I know that is difficult to say e.g. 100 but at least what factors should i take into accoun to determine the number of rare events?
Square of number < 1.0 makes that number smaller. So the gradient became smaller and learning very slow. So for me, it looks naturally to use L2 loss when the difference between target and output is more than one and use L1 when it is < 1.0. The same is true for example for Mean Relative Squared Error there we don't ne...
I have two groups as control and study. I measured blood stem cell levels in each groups. I compared the levels with t-test between two groups and found statistical significance between two groups. However, i got a critique by a reviewer that age and sex may be a confounding factor effecting stem cell levels. So, how c...
Does anyone know why when I perform a lmer analysis (here using the builtin sleepstudy dataset) the estimated variance matrix of the random effects from VarCorr are so different from the variance of the estimated random effects (by applying cov to the ranef that extracts random effect) thanks (fm1 <- lmer(Reaction ~ Da...
I am trying to get a grasp on what is the purpose of the loss function and I can't quite understand it. So, as far as I understand loss function is for introducing some kind of metric that we can measure the "cost" of an incorrect decision with. So let's say I have a dataset of 30 objects, I divided them to training / ...
My project is to set a distribution loss of PNL in CHF into a distribution loss in USD. To do this I will need to have a distribution loss of the spot rate CHF/USD. I have simulated this distribution. So have 2 distributions: A: One is the simulated spot rate of USD/CHF B: The other is the loss distribution of the PNL...
In R, I have a sample of 348 measures, and want to know if I can assume it is normally distributed for future tests. Essentially following another Stack answer, I am looking at the density plot and the QQ plot with: plot(density(Clinical$cancer_age)) qqnorm(Clinical$cancer_age);qqline(Clinical$cancer_age, col = 2) ...
Currently I'm trying to analyze data using a mixed model in R. The data is structured as follows: There are 2 conditions, A and B. For each condition, there are 3 treatments, 1-3. These treatments were done in triplicate, i.e. there are 3 samples per treatment per condition. For each sample, the percentual abundance o...
I am currently doing a study on bankruptcies in Europe. I am using the Cox proportional hazards model (time-constant version) in R (coxph). I have analyzed covariates such as GDP growth, return on assets, etc., in order to determine which covariates are statistically significant (p < 0.05). Now I want to combine cova...
I'm looking at a question for association rule mining and this comes up: What is the confidence for $\emptyset \implies A $? What is the confidence for $ A \implies \emptyset $? Given: $$\newcommand{\Conf}{{\rm Conf}}\newcommand{\Support}{{\rm Support}}\Conf(A \implies B) = \frac {\Support(A \cup B)} {\Support(A)}$$...
I have a categorical variable (e.g., office locations) with about 500 values. The frequency of the values follow a power-law distribution (if you sort the categorical values by frequency descendingly), where a few values have the highest frequencies, and the other ones fall off in frequency (long-tail, to the right). ...
I'm currently analyzing some microarray data (gene expression) and I'm running the kNN classification algorithm on them. Data consisted from 920 different genes and 8 different observations (with 5 replications each). At the beginning I just ran the kNN algorithm on the training data and then in order to improve the re...
193 participants in 19 groups of varying sizes tasted 6 wines. Each participant then distributed 6 points among the wines in any way she or he liked, e.g., $(0,0,6,0,0,0)$ or $(1,1,1,1,1,1)$ or $(0,3,0,2,0,1)$. Point totals in groups a-s for wines A-F are as follows (N denotes each group's size): N A B C D E F...
I got stuck in my econometrics problem, any idea/thought/help is highly appreciated. I have 2 data sources, GVAR (noted with "Smith") and Macrobond. Both data cover almost the same time framework. If you have a look at the picture, you will see that graphs of the same variable from these two sources are almost identica...
I found that, in examining the gender wage gap, there are cases where direct regression shows that men earn more than women with the same educational level (or qualification measured whatsoever) but men are more educated (or qualified) than women earning the same wage. Formally, if: $Y$ is wage, $E$ education and $G$ a...