instruction stringlengths 9 38.7k |
|---|
What is the best way to prepare interactions of categorical features before fitting with scikit-learn?
With statsmodels I could conveniently say in R-style smf.ols(formula = 'depvar ~ C(var1)*C(var2)', data=df).fit() (same in Stata with regress depvar i.var1##i.var2).
Can sklearn.preprocessing.PolynomialFeatures (in v0... |
This isn't my original problem, but I'm posting a simplified version and then I'll try to see if I can apply it myself to my original problem. (yay for self-learning)
Suppose I have a sample and I want to test if the data has been drawn from a normal distribution, but $\mu$ and $\sigma$ are unknown. How am I supposed t... |
Suppose we have a sequence of items, from an alphabet of 2: {0,1}. For example, this 8-bit sequence: 10001010
You generate a random 8-bit string. The probability of you matching the first bit is $1/2$ or 50%, the last bit also $1/2$ or 50%, and of matching both: $1/2 * 1/2$ or 25%.
Part 1 concerns how many attempts ... |
Let's say that I have two samples:
A B C D
100 5 17 12 #<- Method 1
90 2 4 15 #<- Method 2
And want to compare to test whether method 1 is different from method 2. However, that observations in the samples are tied together, say 100 and 90 come from the same market A. What is the proper way to test ... |
Suppose that $X_1,X_2,\ldots,X_n$ is a random sample from a distribution with probability function:
$$p_X(x)=\begin{cases} 1/2 &x=-1,1 \\ 0 & \text{otherwise} \end{cases}$$
Now if we define the average
$\bar{X}= \frac{1}{n} \sum X_i$, I need to show that that for an odd $n$ the probability function for $\bar{X}$ is:
$... |
i have multiple sequences for each of two states. I'd like to train a HMM with these to predict the state for unkown sequences.
Here is an example for this problem:
states <- c("good", "bad")
good_obs<- list(
c("a","b","c")
,c("a","b","c","c")
,c("a","c","c")
)
bad_obs<- list(
c("d","b","c")
,c("b","c","c","a... |
While there are far superior methods for solving deterministic LP problems (e.g. interior point algorithms), can MCMC be used to solve their stochastic variants?
By stochastic, I mean, for example, with distributions on coefficients and or constraints, and getting a posterior probability on the solution representing:
... |
In order to make some predictions for my work I have modeled a process using a binomial distribution, but in my case every single experiment must be a success and I am just changing the probability that each individual trial is a success. Effectively what I am looking at is:
$$
P({\rm success}) = p^m
$$
Where $m$ is th... |
This question stems from Pedro Domingos' excellent paper "A Few Useful Things to Know About Machine Learning." The paper is extremely clear and well-written, but I still have a clarification question. Namely, what is the difference between what Domingos describes on page 1 as a "learner" and a "classifier"? I have larg... |
I'm aware of the fact that first differences and fixed effects are both designed for the same solution -- removing unobserved unit-level effects.
However, I'm unclear on what happens when you include a unit-level dummy in a first differences model (I've seen this done for error-correction models as well as elsewhere). ... |
I am working in SPSS on a repeated measures linear mixed model and I am having a really hard time wrapping my head around how to select a "repeated covariance type". The options are:
Ante-Dependence:First Order
AR1
AR1 Heterogenous
ARMA
Compound Symmetry
Compound Symmetry: Correlation Metric
Compound Symmetry: Heterog... |
I have a database with different variables which contains information such as age, date of vaccination, number of doses as well as the number of antibodies (which is my target variable). If the number of antibodies is under 100 and 10, the patient's antibodies level is regarded as low and very low accordingly. My goal ... |
Suppose we have a training data set with variables $a,b$ and $c$ and binary outcome variable $y$. We fit a logistic regression model to this data set:
$$\text{logit}(p) = \hat{\beta_0}+ \hat{\beta_{1}}a + \hat{\beta_{2}}b + \hat{\beta_{3}}c$$
When we get the predicted probabilities from the training data set using the ... |
Assume following data set representing each month of the year 2013 with the corresponding consumption of natrual gas to heat my flat and the respective mean temperature.
How can I seasonal adjust/normalize this time series?
1 156 m³ 1,4 °C
2 199 m³ 0,3 °C
3 173 m³ 2,3 °C
4 69 m³ 9,6 °C
5 63 m³ 12,2 °C... |
What is the skew normal approximation to Poisson($\lambda$)?
Am I doing this wrong?
|
I have a Q-learning algorithm with a finite number of states. Each state, however, is represented by the usual 32 bit Q-value. These Q-values allow to carry information about the previous experience far beyond the state of the Q-learner (in my case the state of the Q-learner is the sequence of his own choices and rewar... |
I have a set of data from two nights worth of monitoring.
The monitoring picks up how busy a server is in terms of the number of threads processing.
A change has been made and we want to analyse if this has had an impact of reducing the threads.
How can I compare the two data sets given that the load on the server is g... |
I have to do some feature selection for a classification problem with numeric features. I am not sure which feature selection method to use. Chisquared test or Spearmann's rank correlation coefficient, which one would be the best. Any suggestion guys?
|
My psychology dissertation will be a cluster analysis with one grouping variable. How do I know how many participants I need? I imagine there should not be more than 5 clusters. 79 items make up 9 attributes that the participants will be clustered on. I realize that power analysis is moot since cluster analysis is ... |
I am using the plm package to estimate pooled OLS and fixed effect models. My data set has 130 countries over 33 years with lots of missing values. My model has 9 independent variables. When I estimate my models I get the following output:
Unbalanced Panel: n=34, T=1-6, N=61
Can any body explain this? Does it mean tha... |
I have data on prices of houses in different districts, and would like to determine how expensive different districts are when it comes to buying a house. However, houses vary with respect to amenities. For example, some have swimming pools and others don't. In order to remove any between-house variation in price per s... |
I normalized my dataset then ran 3 component PCA to get small explained variance ratios ([0.50, 0.1, 0.05]).
When I didn't normalize but whitened my dataset then ran 3 component PCA, I got high explained variance ratios ([0.86, 0.06,0.01]).
Since I want to retain as much data into 3 components, should I NOT normalize ... |
I'm a social scientist working on a research project where I try to estimate the prevalence of lying in responding to a certain sensitive question. The way I estimate it is to rely on a quasi-experimental setting where a major event happen in the middle of a public opinion survey and compare the people's responses to c... |
I want to determine (in an algorithm) the approximate surprisal of getting an outcome "as extreme as $k$" from the $Poisson(\lambda)$ distribution.
My original plan was to use $-log_2(1/2-|1/2-F_{Poisson(\lambda)}(k)|)$ but calculating $F_{Poisson(\lambda)}(k)$ requires the incomplete Gamma function which uses an itera... |
Suppose $X_1, \cdots, X_n$ are independent, nonnegative continuous functions, each $X_i$ has hazard function $\lambda_i(x)$.
If $V=\max\{X_1, \cdots, X_n\}$, I need to show that $\lambda_V(x)\leq \min\{\lambda_1(x),\cdots, \lambda_n(x)\}$.
I know that $\displaystyle\lambda_V(x)=\frac{f_V(x)}{1-F_V(x)}=\frac{\sum_j f_... |
I recently boldly claimed in front of a group of fairly smart eighth grade students that astronomy contributed greatly to the foundations of statistics and many statistical concepts were invented for use in astronomy. However, looking to back that up, I was fairly disappointed. Errors, the mean and the median deviation... |
I have read about the log-sum-exp trick in many places (e.g. here, and here) but have never seen an example of how it is applied specifically to the Naive Bayes classifier (e.g. with discrete features and two classes)
How exactly would one avoid the problem of numerical underflow using this trick?
|
I'd like to forecast (or predict) a time series with weights.
The following works using the regular linear modelling techniques of lm by applying a (sigmoidal) weight distribution to the input data, essentially weighing the latter data points more heavily than the former:
library("stats")
lm.weight.function <- function... |
I have a training dataset with a binary response variable, 6 independent variables, and 21,000 observations.
I've fit both an ordinary regression tree and a random forest (mtry = 2, ntree = 2000) and there is almost no difference between the two when each model is validated, using RMSE and predicted to actual ratio as ... |
Apologies from the go as this question comes from an absolute newbie and will definitely not satisfy a lot of the detail required. Hence, your guidance in providing you the right information to allow for the adequate answering of my question may be inevitable.
A brief summary of what's nagging at my mind currently. I ... |
I am using R in RStudio on OS X ver. 10.9.2 on 1.7 GHz Intel Core i7 with 8 GB RAM. I am trying to run a PCA command (prcomp) and plots on a dataset with approximately 200,000 rows and 8 columns. The prompt doesn't return, and most plots don't display (they do work on small ~300 rows datasets).
Am I using the wrong too... |
Background
A couple of days ago I asked here about: How to reduce number of points for clustering . Instead of reducing number of points, a method "Kernel Density Estimation" (KDE) was suggested to me, it gives right solutions and it is faster then my previous approach.
Question
What I am curious about now is complexit... |
I've struck an unpleasant problem with the noncentral $\chi^2$ distribution.
I work with random variables, distributed as $\chi^2_{\nu}(\lambda)$, where $\nu$ is the degree of freedom and $\lambda$ is non-centrality parameter (which should be somehow estimated).
In "Continuous Multivariate Distributions Vol.2 by S. Kot... |
There are times when one might want to estimate a prevalence ratio or relative risk, in preference to an odds ratio, for data with binary outcomes - say, if the outcome in question isn't rare, so the RR ~ OR relationship doesn't hold.
I've implemented a model in R to do that, as follows:
uni.out <- glm(Death ~ onset, f... |
I have the following data:
2 conditions - experimental & control.
20 participants, each having 3 results for each condition.
Like in the following table:
| Condition | PARTICIPANT #1 | PARTICIPANT #2 | PARTICIPANT #3 |
|--------------|----------------|----------------|----------------|
| EXPERIMENTAL | Result #1... |
This question is in relation to a dataset I've previously discussed here.
I'm trying to determine whether a treatment affects not only the number of visits a patient has to the doctor, but also how long it takes for the injury to heal. The two are inherently interlinked.
Now the structure of the cohort changes over ti... |
As it well known, we can calculate Relative Information gain (RIG) as follows: $RIG = \frac{H(x) - H(x|a)}{H(x)}$.
In binary decision trees we calculate $H(x|a)$ for univariate split for variable $x_i$ as follows: $-(p(x_i>a)H(x|x_i>a) + p(x_i>a)H(x|x_i>a))$. So that means that for each point we look whether this point... |
I am analysing annual behavioural patterns and am currently scratching my head over how to best transform data to test for correlation where my independent variable is the moon phase (given as perecentual moon illumination, i.e. 0% new moon, 100% full moon).
May be a rather trivial question, but I haven't come across t... |
I would like to update my previous question "Methods to determine reliability of measurements using median and median absolute deviation".
I have data from biological experiments, that look like this:
v1 2 1.8 1.5 1.9 2.1 1.78 1.95 2.0 2.1
v2 2 100 -5.2
v3 1 -1.3 -2 2.3
v4 1 1.5 1.6 1.9 2.1 2.0 2.4 -1.1 2.3 1.5 1... |
I have seen a similar question but thought I'd ask my own to hopefully garner some usefull feedback.
Basically, I have a large temporal dataset, consisting of domestic smart energy meter use collected at 30 minute intervals for three months. I have data for about 120,000 households and I'm looking to apply an appropri... |
Suppose I have four basal forms of signal (blue, purple, red, green). I also have created transition forms between each other. If you carefully look on the picture below, you can see that for example blue signal (A1) slowly transforms into purple (A5) - horizontally, or into red (E1) - vertically. Taken in general, t... |
My shop has 20-items with a recommender system on top which analyses history of purchases and recommends items to buy each time customer returns.
Now I want to add an additional item to choose from, which I have no history about previous purchases (let's say customers purchased it from my competitor). In a while, I wi... |
I read somewhere that Variational Bayes method is a generalization of the EM algorithm. Indeed, the iterative parts of the algorithms are very similar. In order to test whether the EM algorithm is a special version of the Variational Bayes, I tried the following:
$Y$ is data, $X$ is the collection of latent variables ... |
I am trying to assess the goodness-of-fit or accuracy of 6 generalised linear models. I first assessed this using AUC (calculated from function auc1 described here), and got results ranging from 0.65 to 0.82, and therefore concluded that my models explain a reasonable amount of the variation in my datasets.
However, I ... |
I have data with some factors, say, a list of music albums by different artists which are owned by me. I counted the unique factors to arrive at a list of artist names with an associated count of albums, like this:
name count
Johnny Cash 10
The Beatles ... |
I have a couple of questions regarding performance of nonlinear regression models.
Are the residuals from a nonlinear regression model supposed to be randomly distributed too (as in linear regression)?
I am comparing two nonlinear regression models (non-nested). What model performance indicators can I use for the pu... |
An older question gives an intuitive explanation of how penalized linear regression works, using two separate contours: one for the least square objective, one for the penalty term (i.e. regularization).
It also says that the sum of the least squares and regularization objectives is minimized when the contours meet fo... |
I want to perform a power analysis for a 2 sample t-test for the difference in means. However, instead of computing the required sample size, I would like to compute the required difference in the means given the sample size.
The sample size is fixed at $n=34$ (i.e. 17 per group). Due to different reasons, it is not po... |
I fit a GLM to a dataset. Now I want to see where the difference between my groups is, so I tried to run a Tukey HSD as a post-hoc test.
Because of it is a GLM, I can't use TukeyHSD(). So I tried to run a Tukey test with:
summary(glht(my.mod, mcp(treatment="Tukey")))
When I tried this, I get the following error:
... |
Say I have a list of numbers $X = \{x_1, x_2, \dots, x_n\}$, and I expect them to be drawn from a certain distribution. For my case it is the Binomial distribution $P(x) = \binom{n}{x}p^x(1-p)^{n-x}$, but I think I general answer would be the most helpful. What is the standard and most rigorous way I could determine if... |
I am trying to analyze data based on a sample size of around 50 and would appreciate advice on which statistical test would be most appropriate. Participants, on a single questionnaire, were asked to complete two different sections. Variable 1: rating Likert items on a scale from 1-5 (strongly agree to disagree). Varia... |
I am totally new to statistics, so this may be obvious, but I don't get it.
Basicly, I fit a special kind of tree-model to a subset of data (one half), and now I want to cross-validate my model (against the other half of the data). For every exit-structure in the tree, I saved the odds-ratio of the leaf being correct. ... |
I have a binary variable, $X=\{0,1\}$ and I want to use this variable to predict a continuous outcome variable $y$
What regression model ought I use to estimate the predictive ability of $X$ of $y$?
I know that switching them the other way around, would allow me to use a logistic regression model but that doesn't seem ... |
I have 3 neural networks processing 3 different vectors of values. Each NN processes a sample of it's vector and gives binary result (y/n) that is correct with given probability. All 3 NNs give answer to the same question. The task is to combine this results into single one (y/n) and figure out probability that it is c... |
I have a question: how do I use rolling window forecasts in R:
I have 2 datasets:
monthly data which I downloaded from Google.
monthly data I downloaded from the CBS (central bureau of statistics in Holland)
I want to test whether I can build a valid forecasting model, based on say 6years of Google Data, by using r... |
My research design looks as follows: an experimental game with 4 participants (human subjects), repeated for 20 rounds. During each round, participants are allowed to form bilateral coalitions which are “frozen” until the end of a round. Hence, six different possible coalitions exist, but maximum two coalitions can eme... |
In the book “OpenIntro Statistics” it is specified that samples of voluntary patients cannot be generalized.
Why cannot a sample of voluntary patients be generalized?
|
I would like to know why 1/N * Summation of(y/x) is a worse estimator than average of y divided by average of x.
This is in the context of constructing an estimator of a ratio where the ratio would be something like cost per person etc.
I'm drawing from sample data as well.
|
Suppose we have a training data set. We want to learn some hypothesis using some algorithm. Would we divide up the training set differently if we used, for example, logistic regression as opposed to support vector machines?
So if we divide the training data set into: $70 \%$ in-sample data and $30 \%$ out-of-sample dat... |
I collected data on the growth of juvenile fish from 4 different types of crosses using multiple distinct family blocks and I am trying to see if cross type has an effect on growth using linear mixed effects models. I have one fixed factor (Length), 3 categorical random factors (sire, dam and sire/dam interaction) and ... |
I know about glmmLasso but would prefer to use elastic net. I wonder if there are any glmm analogues of glmnet out there, or if anyone is working on any. I couldn't find any in my searches. Thanks
|
Before posting this question, I searched CV for a similar question that could helped me, but I didn't find one. So, I'm sorry if this has already been asked before.
So, I'm self-studying from Keith Knight's Mathematical Statistics. At first, and by the table of contents, it seemed a good choice. It covers point estimat... |
How can I fit this ARMA model having specific lags using R?
|
I have been tasked to program functions from some Excel sheet into a asp.net app so it can be shared to my colleagues via a web interface. However, I am stuck on one thing.
I have a set of variables $X = \{0.043, 0.236, 0.057, 0.016\}$ and I have been able to calculate all the descriptive statistics and plot a lognorma... |
I have observations X along with their labels Y. I then create a histogram of Y. I then remove observations such that the histogram still retains the same distinct shape.
Does anyone know what data reduction technique this is called?
|
Is mean or mode better for replacing missing data for an ordinal scale? I'm thinking mode is better because the respondent has to choose between integer values (1, 2 and so on) bu I am wondering is mode imputation doesn't create bias by favoring the value that appears most often. Thank you!
|
I am working on a prediction problem. I have a programming background and a small statistics one. If I have two dependent variables and one independent one, how do I work out if the two are co-related?
For example, x1 has a correlation coefficient of .6 and x2 has one of .4. I hypothesize that x1 and x2 are not totally... |
Can anyone give me some ideas on possible techniques to speed up the training process of multilayer artificial neural network if the training involves mini-batch?
So far, I understand that stochastic training probably leads to a faster convergence, but if we have to use mini-batch training, is there any way to make the... |
Suppose $\textbf{Y} = (Y_{1}, ... , Y_{n})$ is a random sample from the $N(\mu, \sigma_{0}^{2})$ distribution where $\mathrm{E}(Y_{i}) = \mu$ is unknown but $\mathrm{SD}(Y_{i}) = \sigma_{0}$ is known.
It's possible to construct a confidence interval for the mean of a Normal distribution with known standard deviation us... |
Suppose I have $n$ independent normal random variables
$$X_1 \sim \mathrm{N}(\mu_1, \sigma_1^2)\\X_2 \sim \mathrm{N}(\mu_2, \sigma_2^2)\\\vdots\\X_n \sim \mathrm{N}(\mu_n, \sigma_n^2)$$
and $Y=X_1+X_2+\dotsm+X_n$. How would I characterize the density of $Y$ if the distribution of each $X_i$ is each truncated to within ... |
I couldn't think of an example but it would be great if someone could give one.
|
Consider an outcome variable that has four clear, ordered categories to it. This seems like a good use of ordinal logistic regression to estimate Odds Ratios for the effect of covariates on moving a subject one "step" up the ladder.
But the subjects are particularly evenly spread throughout the categories, so a questio... |
I'm interested in a changepoint detection problem of the following scenario:
Consider two Poisson processes for which we have the event times. I'm interested in detecting a change in the relative intensities of the processes, normalizing out fluctuations in the combined/joint intensity.
Furthermore, one class is much ... |
I'm using k-fold cross-validation to compare different models.
I splitted my dataset in 6 chunks and used 4 random chunks as training set and the remaining 2 as a test set.
Now I fitted n-different models to the training set and calculated the RMSE on both the training and the test sets. From what I understand, the mod... |
Does is exist counterpart of Chow test for Least absolute deviations method in analytical or not version ? In least absolute deviations we minimize sum of absolute values of errors.
|
The study: Comparing two groups (intervention vs control) across time using a behavioral measure as the outcome variable of interest. I will have baseline behavioral measurements as well as more than 2 time points throughout treatment. I'm interested in finding any significant improvements from baseline across time (... |
I was given a dataset to analyze with two factors, time and treatment, and one continuous dependent variable. Since the same individuals were measured at multiple times, technically it probably could be done as repeated measures, but the measured values I was given already represent the average of multiple measurements... |
I was trying to model the relationship between utilization of service (from 0 to 1) and travel distance. First I binned travel distance by each 20 km and then calculate utilization for each bin (count of people utilized service/total count of people in this bin). Hypothesis is that utilization would decrease as travel ... |
The Maximum of $X_1,\dots,X_n. \sim$ i.i.d. Standardnormals converges to the Standard Gumbel Distribution according to Extreme Value Theory.
How can we show that?
We have
$$P(\max X_i \leq x) = P(X_1 \leq x, \dots, X_n \leq x)
= P(X_1 \leq x) \cdots P(X_n \leq x) = F(x)^n
$$
We need to find/choose $a_n>0,b_n\in\mat... |
In http://surveyanalysis.org/wiki/Multiple_Comparisons_(Post_Hoc_Testing) it states
For example, if we have a p-value of 0.05 and we conclude it is significant the probability of a false discovery is, by definition, 0.05.
My question: I always thought false discovery is Type I error, which is equal to the chosen sign... |
I'm looking at the difference in demographics of people with a disease pre-outbreak and post-outbreak (e.g. age, sex, location etc).
I know how to use $t$ tests and $\chi^{2}$-tests for comparison (e.g. difference of means for age), and I'm getting ridiculous statistical significance, but what I would like to know is t... |
Normally we cannot draw an ROC curve for the discrete classifiers like decision trees.
Am I right?
Is there any way to draw an ROC curve for Dtrees?
|
Can one just fit a linear model between $Y$ and $X$, and then take the p-values of the $t$-test done on the slope (or beta) of the linear model? Since presumably correlation would be in the same direction as the slope/beta of the linear regression model?
|
I have one group of six raters who scored recordings of two separate six-person groups of participants, each group under separate conditions. While the participants were divided into two independent groups, the ordinal data came from the same group of raters. Due to the small sample size (i.e. 12 ordinal scores to co... |
In my PhD thesis I am working on spatial modeling of different chemical parameters in groundwater, and for spatial modeling I am also using the multiple statistical approach.
I have a question about multiple regression analysis. (Or it is better to use polynomial regression?)
The equation for spatial regression modelin... |
How can I create a training data set for document classification using LSA? I have created a term-to-document matrix and have class labels also. I don't know whether to add these class labels in a term-document matrix or to create anther matrix. I don't know the exact steps to follow to create training data.
|
I have a data matrix on GDP growth for particular countries for a particular period of time. From this matrix I get the correlation matrix. After that I use a nonlinear tranformation to obtain a distance matrix. From this matrix I construct a MST.
Now my task is to determine the stability of the links in the MST. For t... |
In below example, Is it possible to calculate new SD for one additional observation?
In a class of 25 students, 24 of them took an exam in class and 1
student took a make-up exam the following day. The professor graded
the first batch of 24 exams and found an average score of 74 points
with a standard deviation ... |
In factorial designs with one random factor and one fixed factor, the expected mean square for the fixed factor does contain three sources:
the main effect, the interaction, and error
Therefore, to test for the main effect of the fixed factor, the denominator of the resulting F-ratio is not the error but the interactio... |
If you have a function that you want a neural network to learn, and you have sufficient examples of data with the right coverage, and there is no noise in the data, then is it reasonable to expect to achieve a (nearly) zero error rate, i.e. 100% accuracy, with a neural network?
|
I want to train a logistic regression dataset. I have a quite big training data set ( >100 000) and have around 10 features I can train on. Half of my training data is negative training data and I know for sure that almost all these observations are true negative. But I know for sure that in my positive dataset half of... |
I have a data set having year-wise monthly average of minimum and maximum temperatures of 32 stations around the country since 1948. The latitude and longitude of the stations are given as well. I have been asked to dig deep into the data set and analyze the much I can. The main objective is to understand the trend and... |
Consider the estimator $b_1=\frac{\sum y_i}{\sum x_i}$. Suppose that $y_i = \beta x_i + \epsilon_i$, $E[\epsilon_i]=0$, $E[\epsilon_i \epsilon_j] (i \neq j)$ and $E[\epsilon_i^2]=\sigma_i^2$. Find a model for the variance of $b_1$ for which th estimator is BLUE.
The answer is supposed to be:
$v_i=x_i$ and $\sigma_i^... |
Lognormal distribution belongs to the Gumbel maximum domain of attraction, where:
$F^{logN}(x; \mu,\sigma)=\Phi\left(\frac{\ln x - \mu}{\sigma}\right)$,
$F^{Gum}(x;\mu,\beta) = e^{-\exp\left({-\frac{x-\mu}{\beta}}\right)}$
My question: Do we have $\mu=\mu$ and $\sigma=\beta$ ?
The Generalized Extreme Value distribution... |
I have two groups of buyers, A and B, and I want to test whether the difference between the percentage of them who would buy a product is significant.
Group A: 271 out of 2520 bought the product (10.8%) and 2,249 didn't buy.
Group B: 1,073,839 out of 41,873,457 bought the product (2.6%) and 40,799,618 didn't buy.
I h... |
Im calculating a Structural Equation model with Partial Least Squares (with R).
Lets say a simple example:
two Response values (R1, R2) are combined to a latent variable RespLV = weight1*R1 + weight2*R2
And a few covariates are also combined into latent variables (CoefLV1, CoefLV2, ...)
All latent Variables are standa... |
My data has 13,000 rows, 7% belong to the minority class. I used SMOTE (Synthetic Minority Oversampling TEchnique) for class balancing such that I raised the ratio of minority class to 42 % and number of rows became 12,655. Now to fit a logistic regression I need to divide the sample for cross validation and testing. I... |
I'm stuck with this problem on quality control and p-charts.
There is a given process, monitored periodically taking samples of 100 items each and counting the number that are defective. In the last 50 samples we found a total of 622 defective items.
I'm OK for the 3-sigma limits of the p-chart and in particular: $$\b... |
I have dependent variable matrix $Y_{i,j}$ and feature matrix $X_{i,k}$. My objective is to predict each element of the vector $[y_{i,0},...,y_{i,J}]$ by using new observations of the features, $[x_{i,0},...,x_{i,K}]$, i.e. to estimate $Y_{i,j} = f(X_{i,k})$.
In my problem, all the dependent variables are closely relat... |
Brief intro: I'm not really sure how to appropriately treat the dependent variables in a set of hierarchical linear models that I'm trying to run. In my models, Level 1 units are children and Level 2 units are schools (we don't have classroom info so there is no nesting level for this).
Background: There are five sets ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.