instruction stringlengths 9 38.7k |
|---|
I performed lasso and then leave-one-out cross validation
cv<-cv.glmnet(df, df$Price, nfolds = 1500)
When I plot cv I get the following:
I also noticed that I get 2 different lambdas: lambda.min and lambda.1se
What is the difference between these lambdas?
What can I understand from the above plot in general (what a... |
I want to generate some sequences using LSTMs, like in the char-rnn from karpathy, I do nearly everything identical.
For that during training the network greatly decreases the error over time, until it converges in some local minima of the error function (I assume).
My first question would be as to what reasons there a... |
I have three dependent variables,
$X_1$ (my 'main' independent variable),
$X_2$
$X_3$ where
When I test $X_1$ against the response variable y in a bivariate regression, the results are not statistically significant.
However, when I include $X_2$ and $X_3$ in a multivariate regression, all three predictors become si... |
The Problem
I am attempting to solve a challenge on HackerRank that asks the following: Given a string $S$ of length $N$ that consists of only zeros and ones, if two indices, $i$ and $j$ are chosen at random between $1$ and $N$, both inclusive, what is the probability that $S[i]=1$ and $S[j]=1$ and $|i - j| \leq K$? So... |
The Mann-Whitney U test or the Wilcoxon Rank Sum test is sensitive to unequal variances. Is there an equation that adjusts the standard deviation of this statistic, much like in the Welch-corrected t-test for independent samples?
|
I have financial price time series data and it has some noisy (probably erroneous) data and it also has gaps. As a first step I want apply a Tukey median smoother on points that do exist so I can study the residuals to decide if the point is an outlier. So far approach looks very promising on full sets of data that are... |
I've read a lot about Playfair and the history of graphics. However, I have not discovered who was the first to create the now popular yet information-poor bar graph of means. Anybody know?
|
I'm having some troubles to "suggest" ARIMA models based only in the series plot, autocorrelation and partial autocorrelation function.
In the time series below, the first plot is the serie (no description of time), the second and third are Autocorreation and Partial Autocorrelation.
When the series have trend I know ... |
This problem is related to my lab's research in robotic coverage:
Randomly draw $n$ numbers from the set $\{1,2,\ldots,m\}$ without replacement, and sort the numbers in ascending order. $1\le n\le m$.
From this sorted list of numbers $\{a_{(1)},a_{(2)},…,a_{(n)}\}$, generate the difference between consecutive numbers ... |
I've been asked to analyse some data and I'm struggling to get my head round it. 14 people in a therapy group were rated on a questionnaire containing 16 6-point Likert scale questions when they started. The same questionnaires were administered 4 months later.
So I'm looking a pre- (or quasi) experimental design. The... |
I am wondering how I can show formally that for a random variable $X$, and $\epsilon>0$, that
$$
X^2 \mathbb{1}_{\{|X|<\epsilon\}} < \epsilon^2
$$
My approach:
$$
X^2 \mathbb{1}_{\{|X|<\epsilon\}} = X^2 \mathbb{1}_{\{X^2<\epsilon^2\}}
$$
At this point, if I use reasoning by logic, we will have zero anytime $\epsilon^... |
I'm preparing to conduct an estimation procedure using GMM (Generalized Method of Moments), and I'm in the process of selecting my moments. This got me thinking, can I use non-statistical moments as my "moments" (i.e., median, mode, other functions of the data)? Will the resulting estimator still enjoy the consistenc... |
I have seen the following justification for the Wald test of the null hypothesis $H_0: \theta = \theta_0$ for a scalar parameter $\theta$. When $\hat{\theta}_n$ is the MLE for $\theta$ estimated from an independent sample of size $n$, under the null hypothesis we have $\sqrt{n}\left(\hat{\theta}_n - \theta_0\right) \ri... |
Suppose that a posterior distribution $\lambda$ has distribution $\lambda \sim \chi^2_{v}$.
Then, it is often written that a $1-\alpha$ Bayesian credible interval for $\lambda \sim \chi^2_{v}$ will have have lower and upper endpoints of $\chi^2_{v, 1-\alpha/2}$ and $\chi^2_{v,\alpha/2}$, respectively. I am wondering w... |
I understand how Wald testing is derived i.e.
(Sorry, not sure how to add formulae to these questions)
$$\dfrac{(RB-q)'(R(X'X)^{-1}R')(RB-q)}{s^{2}}$$
This will be distributed as F(M, N-K), where M is the number of restrictions and I am assuming that the coefficient vector B is normally distributed. R is the matrix of ... |
Suppose I have a pseudo random generator rand, I am using it to generate two random variables X and Y as follows:
for(i = 0; i < N; ++i) {
x = rand();
y = rand();
}
Question: in theory, can X and Y be uncorrelated? If yes, I want a simple example with proof (a simple rand procedure that produce uncorrelated X an... |
I am trying to conduct a 3 x 2 mixed ANOVA (my measure is reaction time data) and my data is currently not normally distributed. I have read that ANOVA is robust to the violations of normality so I wouldn't need to transform my data.
However, wouldn't I need to identify outliers since it is reaction time data? How woul... |
I have daily USD/GBP exchange rates (for the past 5 years), from which i can calculate daily depreciation rates. From this I know how to build confidence intervals for daily depreciation rates.
Is there a way to use this data to build confidence intervals for yearly depreciation rates?
One way I thought of was to calc... |
I have 5 planes that are parallel to each other.
Some circles collisions with the planes and i have 5 collision points for each circle.
Now how i find the coordinates of each circle with that points by machine learning algorithms? Actually just finding out what points are for one circle solves the problem
Something lik... |
If we have spatial points randomly distributed in 2D space, then we clustered those points according to some parameters, say location x,y. Can we use the same clustering algorithm and apply it on finding a geographical area borders? .
In another words , If a set of points with the same characteristics are clustered a... |
I need to classify lips by lipstick they use(basically by color). Currently I have 26 classes but in general it might be above 200.
I already tried to do something convnets and multilayer perceptron. Unfortunately both of them didn't help very much.
CNN returned .45 accuracy on test with 3 channels image.
With MPL I'... |
What are the differences of modeling ability between Variational Auto-encoders (VAEs) and Restricted Boltzmann Machines (RBMs)?
What I am interested in is to know about the unsupervised learning power differences.
Where exactly VAEs work better than RBMs and vise versa?
Also what RBMs can capture that VAEs can not?
I a... |
Questionnaires often contain questions which are similar but worded differently. Usually, these questions are located in different parts of the questionnaire, intended to weed out participants who don't take the questionnaire seriously, but I've seen examples where related questions are placed together in a block, as w... |
How can one calculate the $\ R(k) $ and $\ K_2(k) $
for the common second-order kernels?
For the Rectangular Kernal the answer is $\ R(k) = 1/2 $ and $\ K_2(k)=1/3 $
How can you derive this?
And how would it look like for Gaussian and Epanechnikov?
Note: Moments of a kernel are $\ K_j(k) $ here j=2 since we deal wit... |
I'm trying to predict a binary outcome - let's call it "Cancer/no cancer" after this example here.
So, $a$ refers to cancer correctly diagnosed as such, and so on. Using logistic regression I can find the parameters $\theta$ that will minimize the cost function:
$J(\theta) = - \frac{1}{m} \displaystyle \sum_{i=1}^m [y... |
I have collected data over 30 days and want to assess if there is a difference between the two groups (control and treatment) over each day. Is it appropriate to carry out linear regression on this type of time series data? My outcome variable is continuous.
|
I'm working on a neural network with one hidden layer. So far I've implemented the algorithm, and I've been able to numerically verify the partial derivatives I get from back propagation. My problem is when I try to train the network by updating the weights. No matter what I do it doesn't seem like I can get my estimat... |
I am doing a research on a survey data and I am quite new to the notion of individual weights. I am confused about how to use them to calculate the descriptive statistics and to estimate models (I use R). When I open the data with SPSS, it looks like this:
I know that weighting is done to make the sample representativ... |
I would like to get any advice on the latent class in the mixture model.
But i wish to do latent code by hand without relying on the existing R package.
This is my snippet code to do the finite mixture:
no<-nrows(myData.obs)
prob1 = pi1*dmvnorm(myData.obs,m1,Sigma1); # probabilities of sample points under model 1
pro... |
I have the results of an lmer model (in R) with the following variables:
Dependant variable :
Amount of carbon in the sample
Independant variable:
Species: tree species around which the sample was taken (sp. A or sp. B)
Fraction: sample can came from maccroaggregates, microaggregates or silt and clay (M,m or s)
Dis... |
Currently I'm working on solving the XOR problem with a homemade NN in C++. Several (worthy) people have recommended my weight adjustment formula to be:
$$
weight=weight + (error \cdot input)
.$$
That's all fine and dandy, but considering there are multiple inputs in XOR how does one decide the current input to be mult... |
I was reading those papers by Facebook and Google on Click-Through Rate predictions and something kept bothering me.
I understand that to fully take advantage of data freshness or simply because we work at massive scale it is interesting to learn/update our model in an online/streaming fashion. I also understand that u... |
I'm a little unclear on the definitions of "identifiable" and "convex." Consider the case where $X_1, \ldots, X_n \overset{iid}{\sim} \text{Bernoulli}(p)$. Then our likelihood function is $L(p) = p^{\sum_i x_i}(1-p)^{n - \sum x_i}.$
1.
This model is identifiable or one-to-one because $L(p_1) = L(p_2)$ implies $p_1 = p_... |
I'm just trying to get my head around the differences between these three approaches to statistical inference. I'm just not entirely sure what the significant differences are between the three.
|
What would be the probability density function (pdf) of the complex random variable given below?
$$Z = \sum_{i=1}^{M}{x_{i}^{*}y_{i}}$$
where $x_i, y_i$ are independent r.v.'s with $\mathcal{CN}(0,c)$.
|
I have researched some approaches so far. My situation is:
I have 9 different models, all targeting on the same time-series variable.
Now I want to combine these 9 forecasts to estimate a better, combined forecast.
Approaches I have researched so far:
Equally weighted averaging, very naive, but unfortunately also very... |
What do the values in the x axis and y axis of this scatterplot correspond to? It is related to t-SNE but I don't know how.
The plot is from:
Lingren T, Chen P, Bochenek J, Doshi-Velez F, Manning-Courtney P, Bickel J, et al. (2016) Electronic Health Record Based Algorithm to Identify Patients with Autism Spectrum ... |
This is my term project for non-linear stochastic optimization and the main problem is solving $f(x_{1},...x_{n})$, i.e., I need to maximize $f(x_{1},...x_{n})$ and find $X=(x_{1},...x_{n})$
where $0\leq z \leq 1$ is known, $0\leq x_{i}\leq 1$ and $\sum_{i=1}^{i=n}x_{i} =1$.
$Y_{1},...Y_{n}$ are independent positive (>... |
I have a question regarding the time evolution of a quantity related to a Bayesian posterior.
Suppose we have binary parameter space $\{ s_1, s_2 \}$ with prior $(p, 1-p)$,
The data generating processes are Brownian motions with parameter-determined drift:
$$
dX_t = \theta_i(t) dt + dB_t
$$
for deterministic functions... |
I am currently studying frequentist theory and hypothesis testing and I came across this paragraph in my textbook which I'm finding rather difficult to interpret, particularly the line in bold -
"The fundamental notion is that of seeking a test which maximises power, the probability under repeated sampling of correctl... |
I'm using rugarch package to estimate and forecast my time series. First, I estimate an ARMA model:
y <- readRDS("y.rds")
y.test <- readRDS("y-test.rds")
m1.mean.model <- auto.arima(y, allowmean=F )
ar.comp <- arimaorder(m1.mean.model)[1]
ma.comp <- arimaorder(m1.mean.model)[3]
But usually the error terms show typical... |
In my dataset, I already know there is a feature; that is predictive of the outcome. However, I would like to know what other features are predictive.
Therefore, I constructed two glmnet models and would like to understand how I can interpret the effect of penalty factor on the result.
In the first model, all variables... |
I was studying this article about Hidden Markov Model. The article introduced two diagrams at the outset.
(1) Given what I had for dinner last night, the probability of what I will have tonight.
(2) Given what I had for dinner that night, the probability that it will lead to finding either a plastic bowl or some tin f... |
I am doing some research on optimization techniques for machine learning, but I am surprised to find large numbers of optimization algorithms are defined in terms of other optimization problems. I illustrate some examples in the following.
For example https://arxiv.org/pdf/1511.05133v1.pdf
Everything looks nice and go... |
I do understand that SVM is about finding the classifier that maximize the margin. But what is the intuition there? Please don't go into the math. Thx
More specifically, if someone ask you during an interview , what would you say about the motivation for maximizing the margin in SVM? Keep it simple, intuitive and bette... |
I applied ARIMA to a time-series dataset (dataset).
In order to archive stationary, I applied the following steps:
log transformation log_dataset <- log(dataset)
difflog_dataset <- diff(log_dataset,1) to my dataset.
I tested stationary by Ljung-Box.
I fitted difflog_dataset by ARIMA(1,0,2) adequately.
fit <- Arima(d... |
What will happen if we set the same weights to two neurons in the same layer?
What will happen if weights are 0 (zero)?
Explain why.
Please, also give some references for further study.
For instance, If we use a single layer, 2-neuron network,
the following picture is with random weights,
The following with all 1s,
... |
I'm trying to learn reinforcement learning and this topic is really confusing to me. I have taken an introduction to statistics, but I just couldn't understand this topic intuitively.
|
I'm trying to create a supervised learning model for a two player game where there are no statistics recorded except the outcome of the match.
I came up with the following Bayes' net:
Where $X_i^{t_i} \in {\rm I\!R}$ is the rating (some made up variable to keep track of how good players are) of player $i$ after they'v... |
I have the two following models:
require(robustbase)
data(stackloss)
d1 <- lmrob(stack.loss~., data = stackloss)
d2 <- lmrob(stack.loss~Air.Flow+Water.Temp, data = stackloss)
No I look at the follwing two summaries:
summary(d1)
Call:
lmrob(formula = stack.loss ~ ., data = stackloss)
\--> method = "MM"
Residuals:
... |
What is transition restriction in the discussion of HMM?
Does that effect HMM algorithms?
|
Why is it that logistic regression becomes unstable when classes are well-separated? What does well-separated classes mean? I would really appreciate if someone can explain with an example.
|
I was reading Reinforcement Learning: An Introduction and came upon a method for solving tic-tac-toe.
During this method, the computer trying to learn usually takes the greedy move (the move it thinks will make it most likely to win).
When the computer does not take the greedy move (otherwise known as "exploring"), the... |
In the EM algorithm, the E-step is
$\int l(\theta|X_{obs},X_{mis})f(X_{mis}|X_{obs},\theta)dX_{mis}$
, which means it tries to derive the expectation of $l(\theta|X_{obs},X_{mis})$ by the distribution of $f(X_{mis}|X_{obs},\theta)$. However, in page 2 of this article(I thinks this is also derived by the same way in Lit... |
Let $Y=(Y_1,Y_2)$ be a joint distribution with marginal distributions $Y_1$ and $Y_2$.
Let $X$ also be a random variable.
Is it the case that:
$$\mathbf{Var}\left(\mathbf{E}(X|Y)\right)\geq\mathbf{Var}\left(\mathbf{E}(X|Y_1)\right)?$$
If so, how does one prove this?
|
I read that it is because state-value function required knowledge of the model of the MDP and action-value function doesn't, but I don't understand why that is either. It seems to me that they are equivalence of each other.
|
Is it possible to create multivariate normal from the same normal variable?
That is i have a normal variable $x_1 \sim N(0,1)$, and $p$ normal variable $y_1$ which their marginal distribution is also $N(0,1)$ they are independent and distributed can be written together as $Y\sim MVN(\underline0,I) $ fbut have some cor... |
I have the parameter $\theta=exp(-\lambda)$. I want to show that the estimator
$R=(1-\frac{1}{n})^T$ is an unbiased estimator of $\theta$, where $T=\frac{1}{n}\sum_{i=1}^{n}X_i$ and it follows a Poisson distribution with expectation $n\lambda$
I know that $E(R)=exp(-\lambda)$ but I can't seem to get to this answer.
I ... |
I have a discrete nonlinear state space model :
\begin{equation}
\begin{aligned}
x_k & = f(x_{k-1},u_{k-1},\theta)+q_{k-1}\\
y_k & = f(x_k,\theta)+r_k
\end{aligned}
\end{equation}
$x_{k-1} \in R^{n_x}$ is the state of the dynamic system at discrete time $k$, $f: R^{n_x} \times R^{n_u} \rightarrow R^{n_x}$ and $h:R^{n_... |
This is a follow-up question of https://stackoverflow.com/questions/41127976/confusing-example-of-nested-cross-validation-in-scikit-learn.
How would one retrieve the best parameters of the inner cross validation loop of the nested CV example linked in that question?. Is it exactly the question raised in this issue: htt... |
I'm very new to Machine Learning, and I'm struggling to understand how to improve a model I built.
Let's say that I'm reaching a 60% accuracy on the test set, and a 70% F1-score, and given the problem (finance) it is very satisfactory, but I'd like to make it better.
I know that I can:
change the model: Neural Network... |
I asked 200 survey participants the same sequence of eight multiple-choice questions with four answer options (A, B, C and D). Here are the results:
All A's: 58
All B's: 1
All C's: 2
All D's: 0
Mixtures of A's, B's, C's and D's: 139
I want to work out whether these results are statistically significant, which I take ... |
I'm only starting to understand some of the subtleties that arise when choosing one dimensionality reduction technique over another. Now I'm wondering why it seems that in recent years, one of the more popular methods for nonlinear dimensionality reduction was/is t-SNE, while multilinear Principal Component Analysis se... |
Here is my problem:
Let $1\leq l<k$ be integers and write the design matrix $X$ as $X=[X_1\; X_2]$, where $X_1$ is an $n\times l$-dimensional matrix, and where $X_2$ is an $n\times (k-l)$-dimensional matrix. Show that the restricted LS estimator $\beta^*$ subject to the restriction $R\beta=r$ with $R=[I_l\;\, 0]$ and $... |
I am trying to implement an ANN, which has n different variables taken in input. I want them to be scaled in a range between 0 and 1. My question is: should I scale each column of input individually or together?
Thank you for your help.
|
I have a dataset with 30000 data points. I will use a neural network with resilient backpropagation to train it. I have two parameters to set for the resilient backprogation algorithm.
I wanted to use a subset of the dataset (use about 1500 data points) to tune the parameters. A validation dataset is included in the 1... |
I've recently learned gradient descent and it clearly gets stuck at local minimums when applied to non-convex functions.
Can't we just randomly kick the values in between steps when iterating?
Kind of like quantum tunneling. That would drastically increase the probability to reach global minimum.
|
I've always been puzzled by the discrepancy between several possible terminological uses for such a basic thing as "linear regression":
A certain number of sources just say it corresponds to the computation of the best linear (or more accurately affine) map between known inputs $x$ in $X = \mathbb{R}^n$ to known outpu... |
I perform a multivariate Cox analysis using 'survival' package in R
## Call:
## coxph(formula = S.6m.y ~ CD4.6m + sex_f.y + marriage_f +transmission_f.y + WHO_stage_2f.y + age_atART.y.y, data = data.6m)
##
## n= 850, number of events= 31
## (1129 observations deleted due to missingness)
## ... |
I have a simple question to check my math.
Consider a logistic regression, Model 1, which I'll discuss in terms of probabilities rather than logits to make things simpler. All variables are binary variables.
In Model 1, I find that Covariate1 increases the probability of "success" on my key binary DependentVariable by ... |
I have $N$ documents. Each document $N_i$ is annotated by a variable number of raters $n_i \in [3, 10]$ into two categories. Is there a way to compute the Kappa statistic for these annotations? My understanding from Wikipedia is that Fleiss' Kappa would not work, as it assumes that all $n_i$ are equal.
|
If I use Baum-Welch algorithm to best estimate the parameters for hidden Markov model, then I was thinking, instead of using Viterbi algorithm, why can't I just find the most likely hidden state for current time T by finding the most likely hidden state for 1 time sequence before via argmax of product of the forward an... |
In OLS you can reason to the direction of omitted variable bias by using the following formula:
OVB = [Omitted in long] x [Relationship between omitted and variable of interest]
My question: is there a similar method in 2sls? If I know that my instrument is not randomly assigned, how would I go about working out whe... |
I'm currently working on a neural net to predict a pseudo periodic signal like described in [1]. I don't work on ECG signals, but they are a pretty good source for testing.
Because I'm rather new in this field, I started with something simpler - predicting a sine. So I've created a NN with 3 sigmoid neurons in layer o... |
i want to impute a dataset with about 250 cases (about 150 NA in the target-Variable).
The target-variable is the amount a machine is used and there are some predictors like production-costs, co-workers and so on.
A machine can be used zero times as well.
I broke down the imputation in 2 steps.
Step
Decide if a machin... |
I have constructed a linear model (model3) and I'm trying to check the model's assumptions. As far the assumption of constant variance is concerned I have written the following piece of code
#constant variance
stud.residuals<-rstudent(model3)
yhat<-fitted(model3)
par(mfrow=c(1,2))
plot(yhat,stud.residuals)
abline(h=c(-... |
Let's assume on given year you have a 3% chance of being fired , 97% of not being fired
What are the odd after 4 years you are still employed?
This is hard because you cannot be fired twice
Denote N=not fired, F=fired
for four years, we have the possible outcomes
NNNN
FNNN
NFNN
NNFN
NNNF
But once you're fired employm... |
There are
Training Set,
Development Set (to tune the parameters)
Test Set.
Is it possible to use SVM with the Training Set and various of features set, to get various of classifiers, and then test the classifiers on the Development Set, pick the classifier that gave the best result, and test it on the Test Set?
Is ... |
Is there a parametric test to see if two sets of samples came from the same normal distribution with unknown parameter?
Suppose I have one set of samples $X_1, X_2, \dots, X_m$ and another set of samples $Y_1, Y_2, \dots, Y_n$.
Do we know a test to check if both of these were drawn from some normal distribution $N(\mu,... |
I am estimating a panel VAR using dynamic panel data models (DPD) like Arellano and Bond (1991). I would like to test the adequateness of the possible specifications through an over identifying restrictions test. The problem resides in the fact that when you put DPD models in a VAR framework the standard Sargan-Hansen ... |
I'm currently running a cluster analyses on a dataset that contains variables of categorical and continuos values.I applied the well-established Gower’s dissimilarity coefficient to account for categorical and continuous variables in the dataset. Clusters were characterised using the Partitioning Around Medoids (PAM) a... |
I have a dataset of the performance of probands in an experiment. An observer watching the performance noted positive and negative performance remarks on a simple tally, and ended up with something like
Proband ID Positive Remarks Negative Remarks
1 5 2
2 ... |
I have the nonlinear regression model $$y_i=\beta_0+\beta_1 x_{1i}+e^{\beta_2 x_{2i}}+u_i,\quad i=1,2,\ldots,n,$$ and the least squares assumptions are satisfied (see below). Let $\beta=(\beta_0,\beta_1,\beta_2)$.
Given this model, I want to examine the bias of the nonlinear least squares estimates of $\beta$. This est... |
Suppose I try to estimate classical difference in differences model:
$y = \alpha + \beta*T+\gamma*A+\theta*T*A+\epsilon$
where:
$\mathbb{E}[\epsilon|T,A]=0$, $T\in \left\{0,1\right\}$, $A\in \left\{0,1\right\}$
For concreteness let's say that:
$y = $ log of firms;
$T$ is equal to 1 after the reform;
$A$ is equal to 1 f... |
Is there any specific reasons why the evolutionary algorithm is an inappropriate method to use when searching for a key to decrypt a coded message. When there are billions of wrong answers and only one right answer.
|
I'm trying to understand the "mechanism" behind the calculation of ACF values in a time series. As a "prove-it-to-myself exercise" [NOTE: I updated the code in this link to reflect the information in the accepted answer], I am not focusing on the elegance of the code, and I use loops on purpose. The problem is that, al... |
What is the difference between a time series design and a repeated measures design?
Is it correct to say time series is a kind of repeated measures design?
|
I want to infer the conditional posterior distribution of the unknown system parameter $\theta_1$ given the empirical data $\boldsymbol{y}$, with $\theta_1 \in \mathbb{R}$ and $\boldsymbol{y} \in \mathbb{R}^3$. I have a numerical model $f(\theta_1)$ for the data. The model response differ from the data by some amount d... |
Is there a practical or theoretical difference between count time survival analysis (e.g. ctset/cttost in Stata), where counts of events per time-interval is set, and discrete time survival analysis, where continuous time to event is treated as discrete. For example, a study where death of participants can only be obse... |
I just browsed through this wonderful book: Applied multivariate statistical analysis by Johnson and Wichern. The irony is, I am still not able to understand the motivation for using multivariate (regression) models instead of separate univariate (regression) models. I went through stats.statexchange posts 1 and 2 that... |
Suppose you want to give free trials to Amazon Prime but only want to give the trials to users who are most likely to subscribe since giving free trials to everyone would be expensive. What would be a good response variable for this problem? There are two flavors of Amazon: Amazon Prime and "Free Amazon". The goal is t... |
The first uploaded image presents the ACF and PACF after the series differentiation. I observed the pattern at lags 7, 14, 21 etc. and recognized it as the seasonal pattern, having the original data that was "daily".
The second picture presents the ACF and PACF after seasonal adjustment. Now i need to choose paramete... |
Let's say that I have 10,000 people do a study, and in this study they have to spot a bird in a scene as quickly as possible. There are various possible birds that may be presented to each person, and each person is able to complete the task in one of two ways (will refer to them as method A and method B). Each person ... |
I am just getting started with machine learning and I have a question that I have had a hard time researching as I am not sure how to refer to it.
If I have a dataset:
TIMESTAMP X Y Z A VAL
170103 10 20 21 2 6
170102 11 19 21 3 8
170101 9 19 18 ... |
I was asked the following question in an interview.
Let's say we have a correlation matrix of the form
\begin{bmatrix}1&0.6&0.8\\0.6&1&\gamma\\0.8&\gamma&1\end{bmatrix} Find the value of $\gamma$.
I thought I could do something with the eigenvalues, since they should be all greater than or equal to $0$ — the matrix ... |
I am conducting a study where I am interested in predicting a dichotomous outcome (poor outcome yes/no) for patients in a hospital setting. Specifically, I want to compare how different summary measures for the first week of admission affect the models' discrimination, as measured by the c-index (aka area under the rec... |
I am trying to fit ARIMA model for my dataset. I did the following steps:
Here is my dataset plot and log plot after log transformation (ds_log).
In order to archive stationary, so I transformed by log and diff. I tested stationary by Ljung-Box and KPSS. We can see the fitted model is quite good for diff(ds_log). The... |
In the following Paper by Clare Rutterford, Andrew Copas and Sandra Eldridge, the following formula is given for sample size calculation:
assuming the following properties:
• m - number of clusters
• n - size of each cluster
• $\alpha$
- significance level for the two sided test
• 1-$\beta$
- power
• $\sigma^{2}$
-... |
I have the salary dataset that contains skills as single column(Independent Variable) and Salary as Dependent Variable. Then I split the skill column into multiple Skill column based on its presence 0 or absence 1.
eg:
emp_id skills Salary
1 R,python,excel,word 4000
I made dataset transition like this:
emp_id R Pyt... |
I have 2 lists of variables. Let's say both lists contain approximately 500 variables.
Each of the variable in these lists allows me to split a cohort into 2.
So, for each of the variable, I have computed a Mann-Whitney test.
I thus have 2 distributions of p-values, one for each list.
Does it make sense to compare t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.