instruction
stringlengths
9
38.7k
I'm trying to understand the meaning of cut off and tails off in time series plot of ACF and PACF. What "Cut off after lag" mean? This about limit? What "Tails off" mean? In the example above, the book that I'm using to study, say that is an AR process. But I can't figure out the meanings of "cuts off" and "tails off"...
I'm new at this topic and I didnt understand how can I solve that kind of problem: A center which can call 0 or 1 may be reverted with prob. 0.01 as it travels btw 2 successive centers. Let Xn be the digit received by the n'th center on the communication system.
I have the posterior distribution P(a,b|c). I would like to find the marginal posteriors P(a|c) and P(b|c). I am not sure if a,b are conditionally independent given c. I know how to calculate the marginal probability when there is no conditioning. I am confused as to how to go about it when there is conditioning. Any...
I have a data frame which has non-aggregated data and the another dataframe which has the same information as the first one but in an aggregated manner. When I run the regression analysis for both of these models, I expected them to be same. But to my surprise they differed. Can you please explain why this is happening...
I am using ERGMs to test how different personality variables lead to conflict connections among group members. Specifically, I am assessing if differences in extraversion (Big Five) among team-member dyads make it more likely for conflict to occur. I have been using the absdiff function to test this as shown here: c<...
I have data gathered at two time points, T1 and T2, from the same individuals. I would like to see whether scores improved from T1 to T2, in other words to measure growth. Each individual's score at each time point is actually made up of performance on several tests (a,b,c,d) that are measured on different scales and f...
I am interested in making a time-dependent prediction model. The set up looks something like this: Given weather data from the days Monday-Saturday I would like to predict the high point on Sunday. Now, this unfeasible since we only have a small number of data points. But I do have Mon-Sat weather data from $M$ differe...
I have a dataset in which one side there are vectors of dimension 3 and other side is a real number corresponding to each vector. Now I need to find the correlation coefficient between the two set. Can anyone please suggest me some good method (preferably having a in built function in python) to calculate the correlati...
4) Make up three data sets with 6 numbers each that have: a) The same mean but different standard deviations. b) The same mean but different medians. c) The same median but different means. Can anyone tell me the procedure of finding the data sets which match the above mentioned criteria.
I have these two data sets: x1 = [0.97955,0.7177,0.2374,-0.4374,-1.1126,-0.9457,-0.5329,0.2991,0.9846,1.2218]; y1 = [-0.1727,0.6582,0.7419,0.6433,0.3406,-0.0354,-1.0199,-0.9105,-0.6879,0.2234]; and x2 = [1.7821,1.5386,0.4578,-0.7798,-1.5705,-1.8621,-1.2983,0.1988,1.3197,2.4700]; y2 = [-0.1231,1.4351,1.9311,1.9097,0....
From Held, et al., "Appplied Statistical Inference", ex. 1c). Let $X_{1:3}$ denote a random sample of size $n=3$ from a Cauchy $C(\theta, 1)$ distribution. $\theta \in \mathcal{R}$ is the location parameter of the Cauchy distribution with density $$ f(x) = \frac{1}{\pi} \frac{1}{1+ (x-\theta)^2}, $$ derive the lik...
I'm a bit confused. To my understanding, the standard logistic regression should be equivalent to a mixed effect logistic regression where the statistical unit is defined as random effect - but I found the results of the two analysis to be different. As example, let's say that I have an experiment with 20 participants....
Here is some data to play with set.seed(1e4) color = factor(c(rep("blue",20), rep("red",20), rep("yellow",150)), levels=c("red","blue","yellow")) x1 = rnorm(20+20+150,12,3) x2 = c(rnorm(20,5), rnorm(20,5), rnorm(150,7)) x3 = c(rnorm(20,7), rnorm(20,5), rnorm(150,5)) x4 = c(rnorm(20,5), rnorm(20,7), rnorm(150,5)) RedOr...
I am trying to make a criticism of the statement Of course the statistical models used for prediction don’t choose themselves. Someone has to imagine what factors might be relevant, and there is a great deal of expertise and work that goes into designing and calibrating a statistical model. (my emphasis) found in the...
A feature of the Bayesian approach to Gaussian processes is the fact that asymptotic behaviour far away from data is controlled by the prior mean function. In most cases covered in the literature the prior mean is either a function independent of the data (such as a constant, often zero) or a function in a low dimensio...
While doing logistic regression, it is common practice to use one-hot vectors as desired result. So, no of classes = no of nodes in output layer. We don't use index of word in vocabulary because that may falsely indicate closeness of two classes. But why can't we use binary numbers instead of one-hot vectors? i.e if th...
In the linear model where $Y=X\beta+e$ and $e\sim N(0,\sigma^2 I_n)$, I understand that the expected value of $RSS$ is $\sigma^2 (n-p)$, so we can estimate $\sigma$ with $\sqrt(RSS/(n-p))$, and this is what R calls "residual standard error" in the summary of a linear model. My first question is what the phrase residua...
I am conducting a meta-analysis on 20 studies. The outcome of interest in each study is represented by a proportion/percentage. The sample size n is known and is different for each study. I have three aims: To realize a pooled analysis in order to calculate a summary effect (a weighted proportion) To calculate hetero...
I have fitted a linear model and I am checking the assumptions for which I get this diagnostic plot: From this diagnostic plot there seems to be an increasing variance in the residuals for increasing predicted values, so the homoscedasticity assumption is not met. However, applying the gvlma function of the library gv...
I am taking an online course on regression modeling and came across the following (which is actually taken from a Minitab blog): R-squared as a Biased Estimate R-squared measures the strength of the relationship between the predictors and response. The R-squared in your regression output is a biased estimate based on ...
I have a database with two columns of interest, a weight $w_i$ and a proportion of something $p_i$. I want to create a new proportion, $p'_i$, that is derived from $p_i$, with two constraints : $p'_i$ must be at least 50% I have a target for the weighted average of $p'_i$ : $\sum w_ip'_i=\alpha$ By deriving them fro...
If I have: a=randn(100,1) [h,p] = kpsstest(a,'lags',0:10) why does the test fail to reject the nonstationarity hypothesis? It gives back h=0 while the process should be stationary by definition. Did I misunderstand the usage of function kpsstest? I guess it should give back 1, for stationarity.
I am running a negative binomial model without creating a glm object in R. I found an answer at StackExchange on how to get standard errors "by-hand" here, but it shows only how to get values on a linear scale, not in the scale of the response, just as by default for type argument in predict(). To go from a linear scal...
As described here, the variance components approach to quantitative genetic analysis assumes a mixed linear model, $$ \textbf{y}=\textbf{X}\beta{}+\textbf{g}+\textbf{e}\textrm{,} $$where $\textbf{y}$ is the trait vector, $\textbf{X}$ is a matrix of nuisance covariates (age, sex, and so on), $\beta{}$ is a vector of cov...
Given a birth-death process which ends up with a given population size $m$ after a certain time $t$, I am estimating the size of the population n before this by exponentiating the $Q$ matrix of the corresponding Continuous Time Markov Chain (CTMC) to find the probabilities of reaching $m$ after time $t$ from various st...
I am working on this problem of income distribution. I am assuming that my income data $X_i$ is Pareto : $f(x_i;\alpha) = {\alpha \over x_0}({x_i \over x_0})^{-(\alpha + 1)}$ I found my MLE estimator for $\alpha$ st: $\hat{\alpha} = ({1\over n}\sum_{i = 1}^n ln(X_i/x_0)^{-1}$ and with fisher information that its standa...
I am trying to model ROC curves for a longitudinal dataset where participants were measured between 1-13 times. Time is not of interest but the fact that the measurements are autocorrelated an issue. I have a continuous variable and a y/n designation of disease or no disease and I want to subset my data and create diff...
I apply epsilon Support Vector Machine (e-SVM) to a regression problem via Weka. I have about 6000 features and 2000 samples. I order the feature respect to minimal-redundancy-maximal-relevance criterion and feed SVM with different number of feature size. I think that the performance for more informative feature sets ...
Is it possible to compare likelihoods for two separate models, compared to a single model? An LRT like... $\chi^2 \sim \frac{\text{loglik}_{\text{model1}} + \text{loglik}_{\text{model2}}}{\text{loglik}_{\text{combined model}}}$ I'm trying to compare spatial distributions of events for two groups in relation to a covari...
My response variable is a proportion. Is there a difference or it is valid to use directly proportions instead of cbind(Successes, Failures)? For example: glm(proportion ~ other variables, family=binomial) where, proportion is porportion of successes instead of: glm (cbind(successes, failures) ~ other variables, fa...
I have been studying LSTMs for a while. I understand at a high level how everything works. However, going to implement them using Tensorflow I've noticed that BasicLSTMCell requires a number of units (i.e. num_units) parameter. From this very thorough explanation of LSTMs, I've gathered that a single LSTM unit is one ...
A question was posted here (now deleted) in relation to estimating the parameters of the triangular distribution, which has density $$f(x;a,b,c)=\begin{cases} \quad 0 & \text{for } x < a, \\ \frac{2(x-a)}{(b-a)(c-a)} & \text{for } a \le x \le c, \\ \frac{2(b-x)}{(b-a)(b-c)} & \text{for } c < x \le b, \\\quad ...
I'm a bit confused on some of the terminology involved in my assignment, which is shown in the following image: I understand the main idea behind residual analysis is checking if the main assumptions are in line. This usually involves plotting residuals against fitted values and getting a normal probability plot for g...
I'm looking at the appropriateness of using the mean to summarize some Likert-type items, as opposed to taking some factor analysis approach. Ideally I'd like to use the mean, since it would be the easiest solution. There are several (1,2,3) threads on related topics, and the general message I got from them was that re...
I want find the PDF of $Y = - \log(X)$ and $X$ has a beta distribution. I found the below formula as the answer but i think there should be (1-ey)b-1 part should added to this. Is that correct ? I also wanna know how to calculate $\text{E}(Y)$. $f_Y(y) = e^y$, $f_X(e^{−y})=e^{−y} 1 B(a,1)(e^{−y})^{a−1}=ae^{−ay}$, $0...
If we have a markov chain with the aim of generating a sample from some distribution $f(x)$, how can we diagnose whether the mixing of the chain is 'good' or 'bad'. As I understand it, mixing is how fast the chain explores the support of $f(x)$. So I think the time it takes for the chain to reach some stationary distr...
I'm trying to teach myself about neural networks. I've been reading through the "Efficient BackProp" paper that's highly sited and it's brought me this question; Since stochastic learning converges significantly faster than batch learning, but has a higher level of noise (doesn't converge to the global minimum) should ...
I have the following lmer model: ball6lmer=lmer(Width_mm~Buried+(Buried|Chamber), data=ballData,control=lmerControl(optimizer="optimx",optCtrl=list(method="nlminb")), REML=FALSE) Width_mm is the diameter of dung balls made by dung beetles Buried is whether or not a dung ball was buried by a beetle (0=no, 1= yes). ...
In an ANOVA framework, is it possible to test the hypothesis that $\beta_0 = 0$ given a "full" model of $\hat y_i = \beta_0 + \beta_1 x_i$? Or does the "full" model not contain the "small" model $\hat y_i = \beta_1 x_i$ (and are there bias-related issues)?
An epoch in stochastic gradient descent is defined as a single pass through the data. For each SGD minibatch, $k$ samples are drawn, the gradient computed and parameters are updated. In the epoch setting, the samples are drawn without replacement. But this seems unnecessary. Why not draw each SGD minibatch as $k$ rando...
I have a population size of about 600 people whom I need to survey(online) for career options they chose after college and was trying to see what my options for sampling were? Option 1: Complete survey with all people(census). Option 2: Pick a random sample, but assuming a response rate of about 20%, it seems like the...
I refer to the Wikipedia and other tutorials on topic modeling, which said although PLSA is a generative model of the documents in the collection it is estimated on, it is not a generative model of new documents. while another tutorial page 15 that illustrates pLSA and LDA in geometric way said The pLSI model allo...
Assume A and B are two independent Poisson random numbers with means a and b. What is the conditional distribution of A given that A>B, A=B and A<B respectively, i.e. out of all the samples, what is the distribution of A when its larger, equal or smaller than B? Note that I am not asking for the distribution of the lar...
Let $\Lambda \sim \mathcal W(\nu, \Psi)$, i.e., following a $n \times n$ dimensional Wishart distribution with mean $\nu \Psi$ and degrees of freedom $\nu$. The expectation of the log determinant of $\Lambda$ is $$ E(\log|\Lambda|) = n \log 2 + \log |\Psi| + \sum_{i = 1} ^ n \psi\left(\frac{\nu - i + 1} 2\right), $$ w...
I am running a linear regression with multiple independent variables, and I would like to include a lagged predictor variable. My predictor variable is called Duration and I have plotted it against the lagged variable lag1_duration. My first question is, does the relationship shown in the picture follow an inverse fun...
I am an agriculturist and going to conduct my research on grape in order to determine the ripeness level in a grape bunch. For your information, a grape bunch contains around 50-80 individual grapes. My question, how to determine minimal number of sample to be taken and sampling technique (cluster/stratified/random?)on...
I'm working on some sample level QC for a large genome wide association study and while reading through the QC documentation for the UK Biobank project, I came across this part, discussing a technique to account for population substructure before flagging samples with unusual heterozygosity. A4 Accounting for the he...
What is the Dirichlet distribution and what are its applications?
I am a newbie to this Time series analysis problem, but want to explore more and learn about it. I have a question in which I would like some experts to help me out. I have a value called as "airflow" which is measured every 5 minutes continously for 24 hours, and I have the data for the last 15 days. I want to predict...
I am trying to implement a text summary using Log-Likelihood Ratio. As explained in https://www.cs.bgu.ac.il/~elhadad/nlp16/nenkova-mckeown.pdf under section 2.1 I do not understand what do they really mean by background and foreground corpus. In case of having just one document does the foreground corpus mean the sent...
Let $X_i$ be a collection of $n$ independent identically distributed Gaussian random variables with shared mean and variance $(\mu,\sigma^2)$. Let $\bar X$ and $\tilde \sigma$ be their empirical mean and standard deviation: $$ \bar X = \frac{1}{n} \sum_{i=1}^{n} X_i $$ $$ (\tilde \sigma)^2 = \frac{1}{n-1} \sum_{i=1}^{n...
I am modelling a set of data coming from an instrument read-out, which can range across the following values less than the instrument low-end read-out limit continuous value when in the range the instrument can read greater than the instrument upper-end read-out limit I would need to build a model that, for a set of...
I'm trying to do a MANOVA, checking the distribution to a dataset of multiple species to three different variables. Please see https://stackoverflow.com/questions/40196781/did-i-just-do-an-ancova-or-manova for original post. I got a reply there, recommending using the mvabun package in R. - Did I do it correctly? - H...
I am looking for help with statistical confidence levels. I have asked a court appointed company valuer a question, see below, in regard to factual information on multiples applied to a company's EBITDA (adjusted profits) to arrive at its value. He claims there is an error but as the group that publish the multipl...
I have some relatively larga data set (12 million obs.) and I wanted to fit a GLMM in R using the glmer function from the lme4 package. My data are requests (each observation is a single request) received by a bunch (30) of different operators in different regions (20), over the course of several years (10). So in my d...
I'm trying to analyze the results of an A/B test, specifically around losses. We had two groups, who had bought something, and then were put into our A/B test to minimize potential losses from their purchases. So our treatment did not affect their purchase volume, but potentially the subsequent losses. Say we have tw...
I am trying to analyze and forecast the European Emission Allowance (EUA) prices by using the data from January 2008 to March, 2016 and also using other series that might be related to that price, as Brent or IBEX35 prices (I will use correlations or divergences between those series). The problem is that, in my case, ...
I am new to topic modelling, so kindly bear me if my question is silly. I am trying to calculate perplexity after applying LSA. i am aware that LSA returns negative values, so i followed the steps stated in coccaro to find the propability of each word in the vocabulary(which i am still not clear whether must i calculat...
My question is a theoretical one. In my research I am interested in the (functional form of) time-dependency of a specific covariate effect on the hazard rate. Next to that I have no real interest in prediction. Whereas I don't want to limit myself to a linear interaction term with time, or log(time) I am looking for a...
What is the exact difference between an autoregressive (AR) and vector autoregressive model (VAR)? I always thought that VAR would just be for more than two variables, until I learned that AR can also have more than two variables. I.e. I had a misunderstanding(?) that AR models are not always bivariate. Before I write ...
I have to perform a Shapiro-Wilk normality test. My dataset is build like this: Condition0 <- c(0.9201584, 0.8386860, 0.8092635, 0.8166590, 0.8653545) Condition1 <- c(0.9905397, 0.9498400, 1.0378111, 0.9740314, 1.0355568) Condition2 <- c(0.9529179, 1.0919274, 1.0089470, 1.0067670, 0.9686904) Condition3 <- c(0.7402958, ...
Firstly, a (feed forward) neural network can be thought as a lookup table. $f(x) = y$. So it is certainly storing some data. The theoretical limit of data compression is -$\sum$ p $ln(p)$. The data in a neural network however is stored as weights and biases and not variable length coding, so does this equation even app...
Reading a paper "Cause-Specific Cumulative Incidence Estimation and the Fine and Gray Model Under Both Left Truncation and Right Censoring" Geskus (2011). I'm trying to implement the method and was wondering if anyone had any experience with it. I was wondering how the weight values in Table 1 were calculated? I can't ...
I have run 5 variations for my email campaign with small changes in the subject line for each variation. What statistical method can I use to determine the winner among these 5 variations? Each variation has 500 recipients and the open rates for each of the variation is as follows: 1 (10.2%), 2 (14%), 3 (7%), 4 (14.2%)...
For each $n \in N $, let $X_n$ a random variable with probability distribution: $$P(X_n = j) = \frac{2j}{n(n+1)}$$ With $j = 1,\dots,n$ I need to find: a) Cumulative distribution Function of the random variable $Yn = X_n/n$ b) Limit, in distribution, of the sequence $(Y_n)_{n \ge 1}$ For a) I was trying just integratin...
Consider a training dataset $X$, a probabilistic model parameterized by $\theta$, and a prior $P(\theta)$. For a new data point $x^*$, we can compute $P(x^*)$ using: a fully bayesian approach: the posterior predictive distribution $P(x^* | X) = \int P(\theta|X) P(x^*|\theta) d\theta$ the likelihood parameterized by th...
I wonder what is the best statistical method to validate/score/evaluate a regression Neural Network used to predict probabilities (an example would be using a Regression NN to predict the probability of raining tomorrow or not - this is just an example). The R Caret package uses RMSE and $R^2$ by default. However, is t...
I am struggling to manually select the Box-Cox transformation in my TBATS function. I have a time series with multiple seasonality called belpex. I have tried the following pieces of code: belpex_Model <- tbats(belpex,use.box.cox=TRUE,bc.lower=0,bc.upper=0.2) As well as this: belpex_Model <- tbats(belpex,use.box.cox...
I am new to survival analysis and have a very basic question regarding some preliminary results I have produced. Using a dataset with a binary outcome, time to that outcome, as well as a continuous variable of interest I find that the variable of interest is strongly associated with the outcome using logistic regressio...
It may be a rather silly question that a first-year econometrics student could answer, but I got my brain stuck with it. Assume that I run a regression of log(wages) on education, i.e. lm(lwage) ~ education), where education is a dummy variable with "0" representing High School, and "1" standing for the Bachelor's degr...
I've been reading about random variables and I don't get as to what is the importance of a random variable in statistics? I mean why is it a useful concept?
I am generating 2D kernel density distributions for every pair of numeric columns in a data set, using kde2d function in the MASS package in R. This takes the following parameters: kde2d(x, y, h, n=25, lims = c(range(x), range(y))) where n is the "Number of grid points in each direction. Can be scalar or a length-2 in...
I have an experiment with 6 groups (Control and 5 groups for testing) and measure a Parameter (A) for 4 times. Now I want to know at which time point each of the 5 groups start to significantly behave different from the control. So I did a one way repeated measures ANOVA for every group combination (Control and group ...
In linear regression : $$ y_i = \beta_1 + \beta_2x_i + \epsilon_i $$ I don't understand why Var$(y_i)= \sigma^2$ Because \begin{align} \text{Var}(Y_i) &= \text{Var}(\beta_1 + \beta_2 x_i + \epsilon_i) \\ &= \beta_2^2 \text{Var}(x_i) + \sigma^2 \end{align}
I currently apply a VAR models with the vars package in R. There are the options to select "both", "none", "trend", or "constant". I searched a little but I didn't find conclusive evidence to know what "const" exactly means. I found this plot and I'm curious, whether "const" means "cycle", also sometimes described as ...
I understand that to many this will be a frustratingly basic question which will not require much thought, but hopefully there are a few who can answer it anyway. I have various sets of data on spreadsheets. Some worksheets have 900 rows of data and some have 15,000. There are many columns to each row, but essentially ...
I am fitting a GBM based regression model in R with a Gaussian loss function. The problem I face is that after fitting the model, the predicted values generated on the training dataset do not exhibit a lot of variation i.e. Q1,Q2 and Q3 are almost the same. However, the predictions generated by the same model on the t...
With the following dataset, I wanted to see if the response (effect) changes with regard to sites, season, duration, and their interactions. Some online forums on statistics suggested me to go on with Linear Mixed-Effects Models, but the problem is that since replicates are randomised within each station, I have little...
The dataset is ecological (species abundance), where I am calculating distances between 51 sampling sites, based on abundances of 3200 species. The species abundance values go up to 2700, and the rest of the abundance matrix is pretty sparse with many zeros. I am calculating distance matrices using the vegan package in...
Assuming there is enough data, and all predictors and independent variable are positively correlated, in other words, every possible pairwise correlation is positive. Is it possible to end up with some negative coefficients in a multi-linear model fit? All variables are defined on a continuous scale. $$ y = \alpha x_1 ...
Let's say I have a time series of retail clothing sales. I want to see the sales data adjusted for several factors - overall economic trend and seasonality. I can do a seasonal decomposition with the assumption of an annual seasonality and linear trend, and use the residuals to see my time series adjusted for those fac...
I fail to understand how to define the prior distribution for a multinomial regression. In what unit the prior probability should be set given that the response don't really have units (but just categories)? Should it be a probability, or maybe a log of odds? Does the dimensions of the prior depend on the number of l...
I have a data set of gas prices. They are not evenly spaced in time, and have quite a few days missing. Here is a sample of the data Date Price 2016-05-18 0.9931994220059637 2016-05-19 0.9484317771304708 2016-05-20 0.93686097538978 2016-05-21 2016-05-22 2016-05-23 2016-05-24 2016-05-25 2016-...
There are many variants of types of solver in liblinear. But, I am kind of wondering whether there will be any difference for primal and dual for L2-loss. They suppose to be different forms of the optimization. Will they give different results? -s type : set type of solver (default 1) for multi-class classification ...
I'm trying to use a neural net for classification and I am getting stumped on how to use it for noisy data. My problem seems simple; I have 1000's of experiments that have features and these features either hit a threshold or don't. I know if the experiments are success' or not, but since the data is noisy I can have t...
I hope someone can help! I've been trying to teach myself to use the Process tool for SPSS with a multiple mediation model (model 6), and I think I've cracked most of it and have established a model. The one problem I'm stuck on is the intercept significance for the model without mediators (direct effect). The overall ...
I have an uneven data set as shown in the image below containing x (2 thru 7.5) and y (0 to 200) predictors. The circles represent values from 0 (light) to 1 (dark). I also have a value n for each point, representing the number of observations. This should likely be used to weight the samples. My csv only has a rec...
Do any of you know if there is an R implementation of logistic regression trees? Specifically, I am looking for a logistic regression tree implementation in R based on a specific algorithm (LOTUS - Logistic regression Tree with Unbiased Splits) developed by Kin-Yee Chan and Wei-Yin Loh. P.S: I am familiar with LMT (L...
For a Linear Regression $\mathbf{y} = \mathbf{X}\boldsymbol{\beta} + \epsilon$ with $\epsilon \sim \mathcal{N}(0, \sigma^2\mathbb{I})$, suppose the prior set on $\beta_k$ is $\sim \mathcal{N}(0, l_k)$ and prior on $l_k$ is $\mathbb{G}(\alpha_k, \beta_k)$ which is a Gamma Distribution. Suppose the approximate posterior...
I need to sample from a non-standard density which is more tractable on the log-scale. Now I was wondering, how the decision rule is restated: $$ \alpha (x' | x ) = min(1,\frac{\pi(x')}{\pi(x)}) $$ with $x'$ being a candidate draw from a symmetric proposal distribution. Is it correct to infer the following decision ru...
I am confused due to weak mathematical background: Class 1 : $$x_1=(1,2),y=[+1] , x_2=(3,4),y=[+1]$$ Class 2 : $$x_3=(2,3),y=[-1] , x_4=(1,5),y=[-1]$$ I want to solve this mathematically with Polynomial kernel of d=2. Any help with real numbers? Thanks
I am looking to find out ways in which I can check if there exists any kind of relationship between the various independent variables in a model. I understand that checking for correlations is a good starting point but correlation analysis is unable to capture any statistically significant non linear relationships betw...
This is more of a soft question, but communication is part of statistician's job. The background: I am trained as a statistician. My boss knows little about statistics. The problem: He wants to fit a regression model with positive coefficients only. The reason is it is good for explanation. In other words, only positiv...
I have a application where a logistic regression model is used to make a decision. Each time a user enters the application the model is fed inputs, and it outputs some decision. The first model was trained on data obtained by selecting a decision at random and displaying it to the user. The resulting model performs bet...
I'm trying to understand the implementation of scikit-learn's Logistic Regression. I am new to the framework, and have only a basic understanding of logistic regression. http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html Specifically, I wish to understand the Solver parameter....
Consider this outcome <- c(1,0,0,1,1) string <- c('I love pasta','hello world', '1+1 = 2','pasta madness', 'pizza madness') df = df=data.frame(outcome,string) > df outcome string 1 1 I love pasta 2 0 hello world 3 0 1+1 = 2 4 1 pasta madness 5 1 pizza madness Here I w...
My aim is to build a value predictor of an individual’s pension pot using customer data (based in the UK). It is to be used for reporting purposes and prioritising/targeting customers. Data is: Current pension size (size) [RESPONSE VARIABLE] Age (age) Year Employment started (yrstart) Year Employment ended (yrend)...
The source is Nate Silver's blog FiveThirtyEight, and appropriately labeled, "The winding path to 270 electoral votes:" I looked up... predictably, "snake plot", returning a lot of DNA pictures... I think @jwimberley nailed it: Join, or Die
I'm trying to find a way to quantify the homogeneity of a group. An example dataset is below, where group D, for example, has 5 members of type1, 1 member of type2, and 1 member of type3. Groups A and B should be considered more pure than group C. "group" "type1" "type2" "type3" "type4" "type5" "A" 1 0 ...
I have a dataset with several hundred subjects, with rankings in 3 different categories. These rankings are integer values 1-5. My question is whether, for a given subject are these rankings related? I'm not sure the best way to go about answering this question. Certainly if one particular subject has rankings of 1,1,...