instruction
stringlengths
9
38.7k
I am working to build a model using logistic regression. There is one variable which has strong predictive power. But based on business rule, I cannot include this variable in the model. On the other hand, there are some variables which are insignificant in the model. But from business decision, they are added in the ...
We have longitudinal data on children(n<20) in which we measure different quantities A,B,C,D (like distance walked, time spent in school etc.). These are all continuous variables. We measure these variables daily and we have been measuring them for more than one and half years. Now, based on these variables (A,B,C,D)...
I have multiple GEE models predicting learning scores from the interactions of psychophysiological data of subjects, e.g. features of Electroencephalograph (EEG), respiration, etc., in a 2 condition design. Thus for example one model is specified (in SPSS syntax) as follows (covariates are EEG delta power, delta baseli...
Are there terms for measures of variation around the median? I know that we use "variance" for means of data but how can variance be defined for the median? Is there a similar statistic for median?
Hi I am trying to figure out how to obtain the coefficients for the linear combination of variables determined by a Hotelling $T^2$ test. I know that for the one sample case it is $a = S^{-1} \Delta $ where $\Delta = (\overline{X} - \mu_o)$ But I am a bit lost trying to figure out the two sample case. More info A on...
It seems that the order of variable entry into a lasso model is significantly important! Is there any way that we make our model more meaningful? I mean is that OK to order the variables using another method (such as Stepwise) and give them to Lasso in that predefined order?
A question from someone who is fairly new to hierarchical modeling, and I'm looking for the best approach within R, preferably with the package lme4, MCMCpack, or rjags using a BUGS document. I'm unsure of the best approach, so I would like some guidance. I'm interested in creating a two-level hierarchical model with...
Let's say I run a linear regression model with a binary dependent variable. If I ran logistic regression on the same data would the results be comparable or exactly similar? By results I mean both the beta values and the value of dependent variable. If not why? Also what can I say about linear regression being a subset...
I'm a little bit confused.... Lets say I assume $x$ to be endogenous and I observe that $x = a v_1 + b v_2 + c v_3$ so that $x$ can be expressed as the perfect linear combination of $v_1, v_2, v_3$. By this I mean that if I regress $x$ onto $v_1,v_2,v_3$ the $R^2$ will be 1 i.e. the model is deterministic. In this part...
I have data on 500 examinees with responses to 20 questions. Because the response is dichotomous, I use Beta(1,1) as the conjugate prior. Now I’m interested in using Beta(alpha, alpha) as the prior. How can I estimate alpha? I hope to do it in R.
Let's say I conduct a survey of randomly selected 100 people, asking each of them two questions: "Do you like NY?" "Do you like LA?". All 100 people responded. Among them, 60 answered "yes" about NY, and 65 answered "yes" about LA. My null hypothesis is that that the fraction of US population who like New York is th...
I have two generalized linear models mod1 and mod2. mod1 <- glm(Score ~ Height + Gene, data=mydata, family=binomial) mod2 <- glm(Score ~ Height * Gene, data=mydata, family=binomial) I want to perform an analysis of deviance to test the significance of the interaction term. At first I did anova(mod1,mod2), and I used...
The hierarchical model specified below is quite "standard" and easy to implement in for example JAGS/BUGS. It has an hierarchical gamma prior on the subject's precisions ($\tau_j$) which in turn has gamma priors on its mean ($m$) and SD ($d$). After having fitted this model I have access to estimates of the mean group ...
I have been playing around with a seemingly unrelated regression (SUR) estimation. However, for dynamic SUR models it is known that -- analogous to the ARIMA case -- an OLS/GLS estimate is biased. For example this article provides a correction. So here's my question: Is there a R package or some other implementation th...
If we have two independent random variables $X_1 \sim \mathrm{Binom}(n,p)$ and $X_2 \sim \mathrm{Pois}(\lambda)$, what is the probability mass function of $X_1 + X_2$? NB This is not homework for me.
In SPSS linear mixed model (analyze->mixed model->linear), one can opt for predicted values. In the SPSS data file, a column is added with new data, i.e., the predicted values. When I run a linear model via generalized linear mixed model in SPSS (analyze->mixed model->generalized linear, which is basically the same as ...
Linear model in matrix form is $ \mathbf{y}=\mathbf{X}\beta+\epsilon\textrm{ where }\epsilon\sim\mathbb{N}\left(0,\sigma^{2}\mathbf{V}\right). $ Then $\beta$ can be estimated through generalized least squares as $ \widetilde{\beta}=\left(\mathbf{X}^{\prime}\mathbf{V}^{-1}\mathbf{X}\right)\mathbf{X}^{\prime}\mathbf{V}^{...
Say I have some data for past 5 years and I have trained my classifier (anything decision tree, svm etc.) based on that i.e. given the appropriate input feature data and correct output labeling. Now for current year when I have to make prediction (predicting the output) I can supply the input feature data I am having f...
I do not understand the persp plot, my example is: c<-mat.or.vec(5,2) c[1,1]<-1 c[1,2]<-1 c[2,1]<-1 c[2,2]<-1 c[3,1]<-2 c[3,2]<-0 c[4,1]<-1 c[4,2]<-1 c[5,1]<-1 c[5,2]<-1 persp(c,xlab = "X", theta = -60,ylab = "Y", zlab = "Z",ticktype = "detailed" ) I get the following graphic: But I do not understand it?! I mean, wh...
I'd like to use Simple Exponential smoothing to forecast the lead-time demand for inventory control, I have monthly data and LT+1 is equal to 5 months, can I do a forecast using SES which gives me a one-period-ahead forecast and then multiply it by 5 to get the forecast for LT+1 ? what is the best solution to get h st...
Are there any established methods for teasing apart the influence of different time series features on a target feature? To illustrate: The target: Sales volume of kittens. Features: Time of year, Average fluffiness, Average age, Discount factors etc... What would be the best method of finding out how influential eac...
I have the following experimental data and desperately lack expert advice: Of a total of 60 Subjects, 20 are randomly assigned to one of three conditions (1X3) during treatment Each subject performs six tasks in random order. This is because I did not have access to a sufficient number of subjects to have one subject...
I have a series of points an a single real-valued axis. The points are either good or bad (encoded as 0 or 1). Generally zeros are bigger than ones. But they sometimes overlap. I need to a point which devised the two groups best. What techniques could I use? I thought about logistic regression, but do not know how do f...
Suppose I have a python function using scipy that returns the expectation $E\left[ X \right]$ for some data assuming it is gamma distributed: def expectation(data): shape,loc,scale=scipy.stats.gamma.fit(data) expected_value = shape * scale return expected_value (My understanding is that scipy's parameteriz...
I'd like to test the hypothesis that there is a monotonic relationship between two variables, without assuming a specific model. What is the most robust (i.e. lowest probability of type-II error) way to do this? I can think of a few options: use a linear model of untransformed data. It'll be robust enough, even if I d...
I'm trying to measure the impact that rainfall causes in the number of incoming calls in a insurance-company. I have 4 years of daily data. The plots below shown the correlation plot for each year: The same plots as above, but now taken the weekly-mean for each variable: The rainfall has a yearly seasonality and the ...
I am doing an analysis on a “a priori segmentation”. In order to examine significant differences between the two segments crosstabs and the chi-square test were used. Type of variables: categorical Sample size: 253 Program used: SPSS version 21. Problem: in several ways the assumption for a chi-square test is not met. ...
There is not option to select kernel in penalizedSVM R package. What kernel do they use? Is there some other R package with penalized SVM methods where I can choose various kernels?
I am using R with the packages kernlab / caret and doing some analysis with SVM (ksvm). I am using a Radial Based kernel for classification. I have a few categorical variables which are set as factors in R, so they are internally represented as distinct integers. Say in the case of a categorical variable with 3 levels...
Suppose we have a model looking at the association between sodium intake $X$ and levels of body fat $Y$. So $Y$ is an ordinal variable that can take the integer values from $\{0,1,2 \}$. It is ordered according to increasing levels of body fat (e.g. "no bodyfat increase", "very little bodyfat increase", and "a lot of ...
The extremely randomized trees classifier (scikitlearn) provides a (multivariate) feature importance measurement Ensemble methods/feature importance evaluation. For each feature, the classifier produces a statistical measurement (and the corresponding standard deviation) for how important the feature was for predictin...
I'm trying to understand whether the observed time series can be described as a random walk or not. When I check autocorrelations of the differences, none of the autocorrelation bars for the difference series exceeds the blue dashed thresholds. However, I was not sure whether it was enough, so I've tried the augmented ...
I am trying to cluster Facebook users based on their likes. I have two problems: First, since there is no dislike in Facebook all I have is having likes (1) for some items but for the rest of the items, the value is unknown and not necessarily zero (corresponding to a dislike). If use 0 for unknowns, then I think my cl...
This seems so elementary, but I always get stuck at this point… Most of the data I deal with are non-normal, and most of the analyses based on a GLM structure. For my current analysis, I have a response variable that is "walking speed" (meters/minute). It's easy for me to identify that I cannot use OLS, but then, I h...
I am studying on some Machine Learning concepts. I am looking for logistic regression(multiclass) and logistic regression classifier and I should learn how to change it to penalize large weights. I have looked here: http://en.wikipedia.org/wiki/Logistic_regression but doesn't give me information what I want. I checked ...
Short version: I have a time series of climate data that I'm testing for stationarity. Based on previous research, I expect the model underlying (or "generating", so to speak) the data to have an intercept term and a positive linear time trend. To test these data for stationarity, should I use the Dickey-Fuller test th...
What is known about sampling from solutions to elliptic PDE's in high dimensions, where it is computationally infeasible to construct or store the actual solution? For example, let $u$ solve the Poisson equation $\Delta u = f$ on $\mathbb{R}^n$ with the standard decay condition at infinity, and $n \approx 100$. Assumin...
Proposed Method: Given a time series $x_i$, I want to compute a weighted moving average with an averaging window of $N$ points, where the weightings favour more recent values over older values. In choosing the weights, I am using the familiar fact that a geometric series converges to 1, i.e. $\sum (\frac{1}{2})^k$, pro...
Wooldridge (Intro Econometric book) he states that seasonal dummy variables (say a dummy for the calendar month) satisfy the strict exogeneity assumption because "they follow a deterministic pattern. For example, the months do not change based upon whether the explanatory variables or the dependent variable changes ". ...
I'm using logistic regression to perform binary classification with training, CV, and test sets. When is the most appropriate time to pick a discrimination threshold to balance positive and negative error rates? Should I use the CV set to determine a desired threshold, and then apply the fixed threshold to the test set...
When calculating the confidence interval for the population mean and the variance is unknown, I take it that you have to use the t-distribution. However, do you use the one-tailed or two-tailed test values for $\alpha/2$?
I need to compare two categorical tests as follows: A size $\alpha$ Pearson's test rejects $H_0$ if $Q(x) = {(x_1 - np_{01})^2 \over np_{01}(1 - p_{01})} > F_1^{-1}(1 - \alpha)$ A size $\alpha$ binomial ML test. Rejects $H_0$ if $T(x) = {(x_1 - np_{01})^2 \over n(x_1/n)(1 - x_1/n)} > F_1^{-1}(1- \alpha)$ Fix $n = 50...
EDIT NOTE: I'm mostly concerned with linear regression with unconstrained y-intercept, but reading about constrained y-intercept, if relevant, is also helpful. I noticed that for linear regression, the coefficient of determination ($R^2$) can be as high as 1 (if the linear regression fits the given data perfectly). B...
In a sample of 200 male drivers, 130 said they used seat belts. In a sample of 300 female drivers, 163 said they used seat belts. Test the claim that men are more safety conscious than women, at a significance level 0.01. What will be your conclusion if you test whether there is a gender difference for seat be...
I posted this question in the stackexchange mathematics forum without any reponse. Maybe it was the wrong forum, so I try it here. I tried to compute the multi-information (MI) $I[\mathbf U] = \sum_{i=1}^n H[U_i] - H[\mathbf U]$ of a uniformly distributed RV on the $L_1$ unit sphere. Below are my calculations. What co...
I am fitting my data using nlme package. The syntax is as follow: model<-lme(Energy efficiency ~ADF + CP + DE, random =~1|Study, data=phuong). Can someone tell me how to find the R-squared for this model?. I've found the lmmfit package of Aleksandra Maj (2011): But there are several functions to estimate R-squared. ...
From a survey I have data on three similar Likert-type questions (scales are 1 to 5). Because the questions essentially ask the same thing, I'd like to just report the average (mean) score across all three questions*. How do you calculate the margin of error for that? Do you just lump the data from all three questions...
I have a number of plants and all of them undergo a 'treatment'. Then I measure the amount of plants that react to the treatment and the amount that do not. Is there a way to calculate a test statistic (to test for the significant effect of treatment)? If yes, is there a way to infer an effect size measure? E.g.: R cod...
Suppose a population of dentists are sent an inquiry. A number of inquiries are filled in and sent back. Each question on the inquiry represents a certain number of points. The total number of points represents the precentage that a dentist adheres to some safety regulation. I would like to test whether there is some s...
My question is related to regression with missing covariate data. I have a sample of count data representing number of explosion incidents at each year. First $M$ observations were made by considering one criteria and the last $K$ were made considering two criteria. E.g. for the first $M$ years explosions were recorded...
From Wikipedia A Dynamic Bayesian Network (DBN) is a Bayesian Network which relates variables to each other over adjacent time steps. This is often called a Two-Timeslice BN because it says that at any point in time T, the value of a variable can be calculated from the internal regressors and the immediate pri...
I'm using a time-series model to do weekly forecasts on the number of incoming calls to a company. This variable has a weekly 'in-month' pattern and a monthly 'in year' pattern, and i have data from 2008-01-01 to 2012-08-31. To explain it better: Mondays show peaks along weeks, and rainy months show peaks along the yea...
I am programmer developing a Software that features the display of a probability plot. As far as I know there are 2 different ways to display a probability plot (please correct me if I say something wrong): A Percent / Percent Chart A Quantile / Quantile Chart My customers want a Percent / Percent Chart. That brings ...
I have a question regarding my data. It appears that I have extremely large values of the F statistics, ranging from 20 to 20,000. How is this possible? I should mention that it is panel data, controlled for fixed effects as well as clustering.
There is a set A having $N$ elements. Based on set A, I would like to construct $M$ groups, where each group has $P$ elements. Naturally, $M P <N$. All of those elements in the $M$ groups are sampled from set A by following the two criteria, they are different with each other; the sampling probability for each of th...
Some background: I am trying to estimate the number of failures in two related machine populations. I model machine failures in a year as a correlated Poisson process as such: $Y_0,\ Y_1$ and $Y_2$ are three independent Poisson processes with arrival rates: $\lambda_0$, $\lambda_1$ and $\lambda_2$. $X_1$ and $ X_2$ are...
Suppose that a classifier A classifies a data-point $x$ in class LA1 with probability PA1 and class LA2 with probability PA2 (with LA1 != LA2 and PA1>PA2); and that a classifier B classifies a data-point $x$ in class LB1 with probability PB1 and class LB2 with probability PB2 (with LB1 != LB2 and PB1>PB2). Note that LA...
Because this was done during the interview, the participants just spoke out their rating rather than marked it done on the paper: they sometimes say "I think it is between 2 and 3" or "I give it 4 or 5". I want the rating to fully represent their thinking, and that's why I put 2.5 and 4.5. I don't know whether it is le...
I am stuck at solving analytically the variance (or standard deviation) of a combination of poisson distribution and Beta-Distribution (or more exactly, PERT distribution). The background is that for a risk analysis I have a frequency of occurences and min value, normal value and max value of the damage if it occurs. T...
Im confused about what to do. I was thinking of running two seperate multiple regressions with a DV in each.. its after this, that I'm stuck. How do I see what effect the two DV's have combined? Or am I going about the whole thing wrong. Help! My IV's are gender and group. My DV's will be scores on two seperate psycho...
Is there a standard way to report the percent correctly predicted when predicting a binary outcome? Using glm in r, the results are predicted probabilities. However, in order to make a comparison to another model, I want to report a single percent correctly predicted value from my binary model. Do I simply choose a ...
This question shows how to derive an analytical expression for the conditional distribution from a multivariate normal. I am curious how well this extends to when there's a Gaussian copula, but potentially different margins. This would suggest a joint distribution $$f\left(X_{1},X_{2}\right)=|C|^{-0.5}exp\left\{ -\frac...
So i was just having a nice evening trying to simulate some hierarchical models by myself and estimate their parameters. First model I tried to simulate and estimate was $$y_{ij}=\beta_0+\varepsilon_{ij},$$ where $b_0=\gamma_{00}+u_{0j}$. So actually what I was estimating was $y_{ij}=\gamma_{00}+u_{0j}+\varepsilon_{ij}...
We have a large collection (1-2M) of documents of various domains (politics, design, programming, etc.). And lets assume that we don't know the exact number of domains. And our goal is to build relevant topic models for these domains. For example I want to find N topics in each domain. For politics it could be: foreign...
I want to make predictions by creating a smooth response surface to 2 variables. I get good results using R's loess() function, but with 10 million observations, it is far too slow. Are there any other smoothing algorithms that would provide similar results at a lower computational cost?
Question (Casella and Berger 6.5): Let $X_1 \ldots X_n$ be independent random variables with pdfs: $f(x_i|\theta)= \begin{cases} \frac{1}{2i\theta}, & -i(\theta - 1)<x_i<i(\theta+1) \\ 0, & \textrm{otherwise} \end{cases}$ Noting the inequality can be rewritten: $-\theta<\frac{x_i}{i} - 1<\theta$ Then we can use indic...
I'd be very grateful for any help you can provide with this question - I've been using R for survival analysis, which has led on to a study looking at CMV reactivation - I initially started using time to CMV reactivation, but find that I really just need to look at the proportion of each group that reactivates CMV. I n...
Based on a sample $(x_i) \sim_{\text{iid}} {\cal N}(\mu, \sigma^2)$, how can you get an exact or a well-approximated upper tolerance bound (i.e. an upper confidence bound of a quantile of the distribution) of $\dfrac{x_i}{\sigma}$ ? Here, we assume both parameters $\mu$ and $\sigma^2$ are unknown.
This question is related to my previous post. In case of a meta-analysis of a pre-post treatment design I have data given from 5 studies that tested subjects pre- and post-treatment on a continuous scale (means and standard deviation are available pre- and post-treatment). Moreover every study has tested 4 subgroups. ...
I am trying to predict child nutrition (binary) using a set of variables. The two that I want to interact are maternal education (none, primary, middle, HS) and wealth quintile (1,2,3,4,5). Thus far I tried: form <- nutrition ~ maternal_ed + wealth_q + maternal_eq * wealth_q + other_covars model.results <- glm(form, ...
I have a panel dataset on seaborne shipment prices for a sample of trading routes. The data is a fixed annual price, based on a) port costs and b) fuel (a function of distance and fuel price). The major unobserved variable is port cost, which differs by port, though may be similar by area. Each observation is a port-pa...
I am using a binomial GLMM to assess differential habitat selection between two species with model selection using AIC. When I use many variables (8), the models converge but are not significant. However, when I reduce the number of variables the models either do not converge or have an AIC of 'Inf'. AIC: Inf occur...
I'm doing principal component analysis (PCA) on my nutrition data. Basically, I want to condense 43 food groups into fewer groups (aka, I want to define 2-3 patterns based on the 43 food groups). The problem is, my Kaiser-Meyer-Olkin (KMO) measure is very low (~0.35) but my Barlett's test for sphericity remains signifi...
I've read journal article On the Comparison of Several Mean Values: An Alternative Approach (Welch, 1951). How can I derive the MGF of the Welch statistic? Are there other methods to get the Welch test statistic aside from the method in that journal? The expression for the MGF given on page 331 (eq. (5)) of the paper $...
I have the following regression problem I have about 60 independent variables; some of them have a high correlation with others. I have around 3 million observations (1) - My main goal is out-of-sample-prediction, so my main question is: which regularization method should I use in this case? Some more questions (assump...
I know that there are lots of materials explaining p-value. However the concept is not easy to grasp firmly without further clarification. Here is the definition of p-value from Wikipedia: The p-value is the probability of obtaining a test statistic at least as extreme as the one that was actually observed, assuming...
I've got a datafile which has bond returns (30, 20, 10, 5, 1 year) and time. The bond variables are returns on the different time bonds. I need to perform PCA and EFA on the data. I tried using time as one of the factors but it returns Heywood case as the uniqueness is 0. Should I disregard time? What i don't understan...
I am looking to find out the type of data I have and the ideal test to use calculate inter-rater reliability. Research question: Functional Movement Screening: How reliable are we in our investigations? Aim: to look into the inter-rater reliability of Physiotherapists performing a functional movement screen (12 tests) ...
I'm working on implementing a logistic regression algorithm in code. It's based this link. Unfortunately, the paper doesn't talk about weighting the individual examples $x_{i}$. I think the relevant log likelihood function will look something like this: $$ L(\vec{w}) = \sum_{i=1}^n \log{g(y_i z_i)} r_i $$ as opposed t...
I have two differing-length sequences of binary values. In each sequence, each value corresponds to an observation which is either right or wrong. I'm looking for a statistical test that addresses the question "are there significantly more right answers in one sequence?" Which test is most appropriate? I'm looking at F...
I have some data similar to this died age hospital 0 75 AA 0 88 AA 1 81 AA 0 77 AA 1 65 AA 0 41 AA 0 66 BA 1 81 BA 0 82 BA 1 64 BA 0 65 BA 1 52 BA I was asked to calculate "age adjusted mortality rates" for each hospital....
I have a a set of films, and for each films, a set of reviews - varying between 1 review and several hundred reviews for each film. Each review has a star rating from 1 to 5. I am using Wilson's confidence interval for a Bernoulli parameter to estimate whether the film is likely to be good or not, taking into account ...
I am given a paper with Kaplan-Meier curve. I'd like "reverse-engineer" the chart to get the original data (without the censoring events, as they are difficult to discern in my low quality copy). I've seen the tool for this task on the Net, but it was long time ago and forgot its name. Can someone please remind me, h...
The $n^{th}$ moment of a distribution can be estimated from a vector of samples $(x_1,x_2,...x_k)$ by: $$ \sum_{i=1}^{k} x_i^n $$ Now, let's say I've calculated the first $m$ moments for my distribution. How do I then go about doing the normal things I would do with my distribution, like finding the $PDF(x)$ or $CDF(...
I am trying to use a glm with a binomial distribution (logit link) to analyse data from a dose response curve for the lethal effects of different bacterial strains. I now want to obtain estimates of the lethal dose 50 (LD50). My model is simply of the form: survival ~ a + b*dose Thus since I have a logit link, obtaini...
I have a clustering algorithm which works iteratively like K-means, but there are some constraints on cluster sizes with lower and upper thresholds. Do you know any convergence proofs of K-means in general? Would they be applicable in the case of this alternative algorithm?
My homework problem is as follows: I start with a string of 0's of length $n$. Then, with probability $p$, I change each bit to 1 identically and independently. After that, I count the number of 1's in the string (which, on average, will be $np$). Let the number of 1's be $P_1$. Continue this process 100 times, get int...
Based on the Kepler Space Observatory's findings, astronomer Seth Shostak estimated in 2011 that "within a thousand light-years of Earth," there are "at least 30,000" habitable planets (from this Wikipedia article). Using Dr. Shostak's estimate, within which radius R from Earth (in light years) can we be 95% certain th...
I'm currently working on Hidden Markov models. I know that we must first train the observation sequence to obtain the model parameters such as the initial and transition probability. And this is done using the Baum-Welch (L.E Baum et al , 1970). The hidden states are continuous multivariate probability density functio...
This is my first post here, but I've benefited a lot from this forum's results popping up in google search results. I've been teaching myself semi-parametric regression using penalized splines. Basically, $$ \hat{y} = X(X'X + \lambda D)^{-1}X'y $$ where X is full of knots in addition to my original variables, $\lambda...
I am examining the effect of a group variable (with five levels) along with other predictors on achievement growth using SPSS Mixed Model. The descriptive statistics showed a consistent pattern on achievement for these five groups across all waves of data collection. That is, the average score of group C > Group E> Gro...
Ten participants have completed a task using two different methods A and B. The first five participants completed the task first using method A then B. The remaining participants completed the same task first using method B then A. The following shows the completion times (minutes) of each method and the order in which...
For the Theil-Sen estimator I am aware of two principal methods for obtaining confidence intervals: The zyp R-package documentation uses: The confidence interval on the slope is calculated using the method defined in (Sen, 1968). The confidence interval on the intercept is computed by taking the standard deviation ...
I'm trying to help out a not-for-profit organization and made an error that I'm trying to fix. They've been doing a non scientific survey of their Board of Directors for a number of years regarding board engagement. They asked me to help them convert the survey format from an unfriendly Excel file to something web base...
As a little experiment, I am extending a nice, interpretable AR/MA relationship between a security $r$ that is variably influenced by the previous $k$ time points over another security $f$. These relationships ("lags") are represented by $l$. I want to pump up the "realism" by making both securities move with stochas...
I am doing a study of how legal need relates to a number of predictors. Outcome Variable: Legal Need (Yes or No) Possible Predictors: Age, Gender, Race, Ethnicity, Language, Clinic, Insurance Status. Predictors based on bivariate analysis: Age, Language, Clinic, Insurance Status. All ORs were around 1.6 and were si...
I'm performing a web based a/b test where there is a control and one treatment. The results are not as simple as "converted" or "didn't convert." A user can "convert" anywhere between 0-10 times. I have all of the data from both the control and the treatment (how many times each user converted from both the control and...
I'm trying to reproduce this plot from the ROCR website: I can get something similar as follows: library(ROCR) data(ROCR.simple) pred <- prediction(ROCR.simple$predictions, ROCR.simple$labels) plot( performance(pred, "acc")) But I can figure out what ROCR metric to use to get postive vs negative densities, and I als...
What are some real-world applications where I can leverage Chebychev's inqueality? All the examples I find are either related to coin tosses or some school scores related problems. Are there any slightly-more complex use cases where this inequality "saves" the day?
One group of patients was interviewed by doctors and 2% patients admitted to smoking. Another group of patients was interviewed by nurses and their admittance rate to smoking was 10%. How would I show that the difference in rates is statistically significant?