instruction stringlengths 9 38.7k |
|---|
I have a time series sampled in days and when I plot the amplitude vs time it looks like the signal is oscialating at an annual frequency. The series is 15 years long.
Is there a test I can use to test the significance of this frequency in the data? Meaning, test what is the probablity the oscilation is random.
I have... |
I have the following question:
Let $\Phi_1(x)$ and $\Phi_2(y)$ be two random variables with uniform distributions $\mathrm{U}[0,2\pi]$ (actually $\Phi_1$ and $\Phi_2$ are two random fields so that $x$ and $y$ are two points in $\mathbb{R}^3$). The spatial correlation (covariance) function of these random variables writ... |
PCA is considered a linear procedure, however:
$$\mathrm{PCA}(X)\neq \mathrm{PCA}(X_1)+\mathrm{PCA}(X_2)+\ldots+\mathrm{PCA}(X_n),$$
where $X=X_1+X_2+\ldots+X_n$. This is to say that the eigenvectors obtained by the PCAs on the data matrices $X_i$ do not sum up to equal the eigenvectors obtained by PCA on the sum of t... |
str(new_my_data)
'data.frame': 1082426 obs. of 91 variables:
# ** My all variables are belong to Numerical and integer.
## forming Data set
train_index <- sample(1:nrow(new_my_data), nrow(new_my_data)*0.75)
data_variables <- as.matrix(new_my_data[,-1])
data_label <- new_my_data[,"has_booking"]
data_matrix <- xgb.D... |
Quoting https://en.wikipedia.org/wiki/Elastic_net_regularization :
"elastic net is a regularized regression method that linearly combines the L1 and L2 penalties of the lasso and ridge methods."
L1-regularised learning corresponds to a MAP estimate with a Laplacian prior on the weights: p(w) ~ Laplace(0, b)
L2-regular... |
I would like to work out the posterior predictive distribution from the following multilevel (mixed effect) model in WinBUGS. The example is taken from an example I found online for illustrative purposes.
Yi ~ Binomial(pi,1) where
logit(pi) = b0+ b1 log(income) + b2 distance + b3 dropout + b4 college + uj(i)
Non-info... |
Let's say I have two data sets (in R, say); $x_1, x_2,..., x_n$ and $y_1, y_2,..., y_n$.
The Wilcoxon rank sum test rejects, indicating that the "X" population distribution differs from that for "Y".
Is it possible that the two sample Kolmogorov-Smirnov test would not indicate that they're different?
Or can we predict ... |
Is it possible to infer the parameters of a gaussian random variable by sampling from a distribution that is linearly dependent on the variable of interest?
For example:
y = Ax + n
With
x ~ N(u,S)
n ~ N(0,Q)
A : known constant matrix
Q : known constant matrix
Can we infer the mean (u) and covariance matrix (S) of x fr... |
In Figure 1 of Springenberg et al.'s (2016) paper, "Bayesian optimization with robust Bayesian neural networks," I saw method evaluation metric called "immediate regret".
However, I am not familiar with it and I failed to find any literature which would clearly explain it. Could someone explain what kind of evaluation... |
I've tried and implementend Factorization Machines with different loss functions and optimization algorithms (SGD , coordinate descent, adagrad, adadelta ...) and I've seen that it's possible to use MCMC too.
I didn't know what it meant at first and no pseudo-code was given in Rendle's article. So I tried to discover w... |
Given a quite noisy reference time-series $A$ (about 10k observations), and a bunch of equally sampled time-series $K^i$, is it possible to classify the $K^i$ according to their proximity to $A$? In other words I would like to define a distance measure to the reference time-series.
If it matters my time-series are repr... |
There are many questions about implementing parameter constraints. My question is about understanding constraints. What follows is a very contrived example that I thought up on the spot. Feel free to suggest a better one!
Suppose you observe gun purchases in a town, and you figure that people decide to buy guns based ... |
I am new to R programming and although I searched through the community, I couldn't find a similar topic, although it has to be somewhere. So a link to a similar case would be sufficient.
I have a data set of 110 cases and about 50 variables. Most of the variables are binary, some categorical or numeric. All of them co... |
I'm working on an AI model that needs to efficiently assign jobs to workers depending on job.requiredResources and worker.totalResources`. When I say efficiently, I want it to reduce the amount of surplus to zero if possible.
surplus = sum(worker[i].totalResources) - job.requiredResources
Currently my model is able to... |
I have a set of data from which I have generated a 12x12 Pearson correlation matrix. The rank of the correlation matrix is 8 but the number of eigenvalues that are of reasonable magnitude (not close to 0) is more like 3-4.
Is there some interpretation that can be made from the fact that the correlation matrix rank-and... |
I have a time series question that is probably answered by these posts (1, 2) but perhaps I'm not thinking about it in the right way.
I have 3 time series: $A$, $B$, and $C$. The three time series measure related quantities but have different units/scales. I have good reason to believe that both $A$ and $B$ are essent... |
Calculating the BMI of an individual is straight forward:
Divide the weight in kilograms by the square of the height in meters.
The interpretation of a BMI value for adults (for this purpose the CDC defines an adult as someone age 20 or greater) is also straight forward:
BMI Weight Status
Below 18.5 ... |
I am doing a regression analysis on review star rating of VR headsets as a dependent variable and 14 attribute dummies. Each dummy is an attribute such as price, resolution, comfort with 3-1 levels (positive mentioned in review, negative mentioned in review, not mentioned). I am now checking assumptions for the linear ... |
I have a data frame comprising more than two dozen variables, all of which are binary (0/1) with <5% missing data. These variables can be classified into groups that pertain to different aspects of health. For one group, disease for example, 0/1 represents the answer to a yes/no question: do you have a given disease? A... |
I have fitted a null mixed model to my binary outcome variable for 96 groups. I have included SAS and R codes and outcomes. The problem for me is that the outcomes from two software do not match. I will appreciate it very much for your insight.
Thanks
SAS code:
format db db.;
run;
ods output fitstatistics=fitNull;... |
So, I was thinking of a situation of when to not split up your data into training and testing and to just train on the entire dataset, at the risk of "overfitting". If my dataset has let's say 10 columns of which 9 are categorical (which have no particular order, and one is numeric). It could happen that your training ... |
I would like to double-check with you guys whether i am interpreting my results correctly, before I move on with my analysis. I have read several other questions on this topic but non seemed to apply enough.
I am investigating whether having a reservation in a restaurant (significantly) results in more spending per pe... |
Disclaimer: This question is not about the comparison between OLS, sum of squared residuals (mean based approach) and the sum of absolute residuals (median based approach), which has been already fully debated on this site. The question is about the feasibility of using a simple sum of residuals to find the best fittin... |
Given an arbitrary sample, sample variance would be calculated. But how the variance of sample variance should be estimated? I tried to do some simulations using influence functions estimation methods. The influence function is $IF(x, T, F) = (x-\mu)^{2} - \sigma^2$, where $\mu$ and $\sigma^2$ were substituted by sampl... |
I have a following time series:
36035 30074 39956 33935 39356 35065 42497 37562 42133 46456 37641 39701 46817
38346 41736 41220 56562 50693 44526 45808 48889 42228 34534 37228 38919 32653
33361 34933 37872 40907 43287 43901 41313 45780 33867 28645 27501 29818 36292
29057 34617 35370 36673 49912 43972 37943 30822 3... |
I am working on a mediation analysis problem, where I have a continuous mediator and a binary outcome defined as follows:
\begin{equation}
E[M|x,c] = \beta_0 + \beta_1X + \beta_2C
\end{equation}
\begin{equation}
logit\left(\frac{P(Y=1|x,m,c)}{1 - P(Y=1|x,m,c)}\right) = \theta_0 + \theta_1X + \theta_2M + \theta_3C
\end{... |
Let's first define the Cauchy Principal Value Mean (PVM). For a continuous random variable $V$ with pdf $f_{V}(v)$, the PVM of $f_{V}$ is
\begin{equation}
\mathrm{PV}(\mathbb{E}[V])=\lim_{a\to\infty}\int_{-a}^{a}v f_{V}(v)\, \mathrm{d}v
\end{equation}
The PVM is useful for assigning a 'location' to a pdf where the mean... |
In R, why do wilcox.test gives different answerin case of formula and not using formula?
#running wilcox.test using formula
r = wilcox.test(mpg ~ am, data=mtcars)
print(r$p.value)
[1] 0.001871391
#running wilcox.test by variables
s= wilcox.test(mtcars$mpg, mtcars$am)
print(s$p.value)
[1] 2.74978e-12
s= wilcox.test(m... |
I am trying to sort out the likelihood function for a two-limit Tobit model (data censored from above and below).
To start off, suppose you have data censored from below at zero. The log-likelihood of the one-limit Tobit model is
$$
\text{ln} L(\beta, \sigma) = \sum_{i=1}^n \left(
\underbrace{(1 - D_i)~ \text{ln}... |
I'm trying to wrap my head around why I get different predictions in R for the following situation:
Model <- randomForest(response ~ variables, data = MY_DATA)
predict(Model, type = 'response')[1]
0.007752
predict(Model, type = 'response', newdata = MY_DATA[1,])
0.007887
Shouldn't these lines produce the same re... |
I am trying to predict a strictly positive, continuous, right-skewed variable (purchase value) given a set of categorical attributes.
The current popular options include:
1) log-transform the variable and run a (penalized) linear model. The issue is that the model is biased
2) run a poisson/negative-binomial (penalized... |
I have a dataset with 75 features that I plan to use to create a logistic regression model. However, I want to reduce this number of features as my computer can barely handle this large dataset. Accuracy wise, are there any negative
effects of having too many features in a logistic regression model? Using dummy variab... |
guys!
I know this might be a silly question, but I am really curios if my interpretation is correct. I have some stock returns and try to fit and ARMA model I took the log difference and I want now to identify the ARMA order. The ACF and PACF are included in the photo below. There is just one spike at 0 lags (as expec... |
I am comparing two ordinal variables along a Likert scale. From previous help received on this forum, I have decided to use the Spearman Rho for my correlation statistic. My next question is how to test significance. I have used a Chi-squared, but there is also a significance test for the actual Spearman Rho statistic.... |
Suppose I had built a model that predicts the likelihood of whether a sales agent will make a sale during an interaction with any given customer. The model is based on many variables, one of which is the 'friendliness' of the sales agent.
I run my model over my sales team of 100 staff, 50 of which have been considered... |
R-sq is a very common measure on goodness of fit for OLM, and many people are aware of that even with very rudimentary statistical knowledge. Is there an equivalent of R-sq for GLM (in my case, binomial/logistic)?
Thank you.
|
Primary issue: after running multiple imputation with pan and then analysis via lmer/glmer, I am getting intercepts with absurd values for the df (e.g., 55125928384804199838284828486266882208420242662020648820286.000
I have data from a 2x2 repeated measures design with 3 DVs, 1 DV is similar to a measure of reaction t... |
I have done a teaching experiment where I have randomly assigned students to four different teaching style treatments for a whole semester. I have then used quizzes on a weekly basis to assess learning outcome and also a final exam that covered the whole 5 week semester.
I am now trying to figure out how to best analyz... |
Based on MLE (Maximum Likelihood Estimator), we knew that the puprose is to maximize the likelihood function. Then how about quasi likelihood ? Is quasi likelihood just modelling between mean and variance ?
|
I am beginner in the text matching ,indexing related algorithms. Hence need some idea on what should be my approach / algorithms to identify potential household members when i have their addresses and email- The criteria is looking for similar address & email people.
In some cases address may be exactly similar , in s... |
I am building a binary classification model to predict patient admission with respiratory issue in R. Each row in my data set is a patient record. The dependent variable is admit or not(1 or 0), and the features including age, gender, weather info, and air quality info. All the variables are in numeric type. The data s... |
I want to find the association between variables and Cramérs V works like a treat for matrices of sizes greater than 2$\times$2. However, for matrices with low frequencies, it does not work well. For the following contingency matrix, I get the result as 0.5. How can I account for the same?
1 2
a 2 0
b 0 2
Here... |
I have classified the 15 classes dataset using machine learning algorithms. I don't want to put confusion matrix table since it is 15x15 matrix, instead, I want to represent it in a graphical way, which is more pleasant to visualize. Would you kindly recommend any technique? It would be better if it is using ggplot. Th... |
I have an educational background of biological sciences. I do not have formal education in mathematics or stats. I have been involved in medical research that has statistical methods like regression, survival analysis, Markov chains or discrete event simulations etc. I have been trying to understand these concepts, not... |
I have a problem with the fundamentals of hypergeometric distribution for gene enrichment analysis. Here is the problem: I have a set of genes (population size 1500), a mixture of various genes including tumor suppressors (TS), oncogenes (OG), etc. Let's say the number of TS in the population is 700 (number of success ... |
How to plot error bars on a graph in R?
Assume I have 3 columns in a table: x, y, errors of measured y.
What kind of plot should I use?
|
I have 2 data sets from two different groups (GRP1 N = 130. GRP2 N = 471)
I am trying to check to see if the scale is invariant across groups but im coming up with a problem that the CFI is
getting better as we add constraints. To keep it short I'll only include the results of the CFI and the RMSEA
I first ran the CFA... |
I have a dataset, which has 5000 observations and 100 variables, of which many are correlated. It is a classification problem so I am thinking of going for Random Forest for prediction and variable selection. My doubt is do I need to take care of multicollinearity before putting the data in the RF model or does RF au... |
I have specified the following model in R using the plm package.
fixed<- plm(y ~ x1 + x2 + x3 + x4, data = mydata,
index = c("City", "Date"), model="within")
summary(fixed)
I think the model specification works well for my purposes, but now I want to know what the coefficient of x1 is for each City specified ... |
A very simple question: What is cross-validation for?
As far as I understand, cross-validation is used for selecting the model and not the parameters of the model, but I want to check if I am right. The famous k-fold, illustrated in this image:
uses $k$ combinations of train-test samples to train and test the model an... |
I've used glmnet to build a binomial logistic regression model and I'm now trying to determine the importance of the variables in the model. I've read a few posts about how to get the standardised coefficient values from the model, for example:
Variable importance from GLMNET
Standardized coefficients & glmnet
Initi... |
I want to answer the research question which determinants are associated with long-term survival after a myocardial infarction (MI) in a prospective patient cohort study.
More precisely: I want to compare patients who have more than 10 years healthy survival after a MI compared to patients who have a new vascular event... |
I understand that there is not a specific model for time series modeling in H2O. Is there a workaround in order to use Deep Learning or/and GBM? Is some kind of data transformation necessary? are there any examples?
Are there any plans for ARIMA or LSTM?
|
If two time series $X$ and $Y$ exhibit a cointegration relationship while theory would suggest that this absolutely makes no sense, can we speak of "spurious cointegration" (like we sometimes speak of "spurious correlation", in a different context)?
One could then argue that the empirical results contradict theory for ... |
I have obtained species observation data from a spatially dense sampling scheme. I know from previous analyses that there is significant (residual) autocorrelation for some, but not all species of the observation data, which i accounted for in my previous modelling approaches.
I would now want to draw a basic co-occure... |
Im running a Random Forest to classify a binary outcome in R. I use k fold Cross Validation to determine the best model features (mtry) and choose the best model based off the highest ROC value. My ROC values are high, see below:
mtry ROC Sens Spec
1 0.7874624 0.4661538 0.9264744
2 0.8798... |
I am doing a breakpoint (using bfast) analysis of several Vegetation Index time series (15 years time series; 340 images; MODIS). I have around 20.000 time series objects I want to analyse.
I am already working parallel (using foreach) but it is still very time consuming. And of course the more iterations, the more tim... |
I was attending a workshop on 'credit rating models' where the professor happened to mention the following: Logit models overfit the data as multicollinearity is disregarded. I am not entirely convinced with the statement. Can you please explain if(then why) the statement is true.
|
I was under the belief that scaling of features should not affect the result of logistic regression. However, in the example below, when I scale the second feature by uncommenting the commented line, the AUC changes substantially (from 0.970 to 0.520):
from sklearn.datasets import load_breast_cancer
from sklearn.linear... |
I'm running logistic regression for ecological samples using R Deducer.. Specifically, I'm studying the habitat preference of a specific bird species.. There are eight predictor variables believed to affect the presence of this bird species and I'm looking for the most significant habitat (predictor) variable that affe... |
It is well known that outliers are heavily punished if the error is squared.
Someone please explain with a simple example how this is the case? Please compare this with absolute error.
I am going through this document.
In page 10, section 4.3.2 Regression with Other Loss Functions, it is mentioned that outliers are h... |
Is there any statistic or method which could describe how much a distribution deviates from the normal distribution? I want to test if my data is normal or not at some level of significance, and I have huge many of samples, I am wondering if there is any quantitative way to test it on my computer. Thank you very much.
|
I have a decision tree built in R using rpart() from rpart package.
However, when following the nodes, we have one condition leading to both outcomes as GOOD. This is weird for me.
What does that mean? If the customer have AccB < 3.5, then he/she is a good customer. If not, he/she is also a good customer? Shouldn't th... |
I have created a logistic regression model using statsmodels in python.
My model has 5 input variables that characterise properties of hillslopes (e.g. mean slope angle, curvature etc) and these are related to a measure of stability.
The number of model inputs stays the same each time. BUT I change the slope size (its... |
Background
I'm studying common coincidences and "near" coincidences that nevertheless (unduly) impress the average person. The below question is an extension of the famous Birthday problem, which asks "How many people, randomly chosen, are needed for there to be a 50% chance two of them share the same birthday?" The ... |
I have Latitude ,longitude and timestamp of image. I want to cluster these image according to detect events. For instance I went to Paris for 4 days then london 3 days and so on. So I want to detect cluster of Paris data and after london.I want each event to be seperated. How can I use this Latitude ,longitude and time... |
I have car accidents data and related weather information. To keep it simple data looks like that:
accident_datetime | accident_zip | weather_condition (sun|rain|fog|snow)
I want to visualize correlation between number of accidents and weather condition. I would go with average number, let's say when it snows ther... |
I have blood sugar values for diabetic patients over the past few years from a clinical practice. Half way through the observation period, a treatment intervention was applied to all of the patients. My data consists of multiple blood sugar readings per person, both before and after the intervention.
I would like to co... |
Suppose that we have four possible events $e_0, e_1, e_2 $ and $e_3$. These event are exclusive $e_i \cap e_j = \emptyset$ and exhaustive $\cup e_i = \Omega$. Now we ask two experts on their opinion as to the probabilities of the individual $e_i$. We get the results in the following table:
There are numerous ways to c... |
I am trying to predict CTR (which bigrams increase/decrease CTR) on a document term matrix (built on bigrams and term frequency weighing) and building a generalized linear model where I have transformed the dependent variable to logit function (log(CTR/(1 - CTR))) since initial CTR is a bounded function 0 to 1). Then, ... |
What type of measure would a variable containing only means be? Would it be a scalar variable? This variable was created to combine several other variables and make it continuous. These variables were all asking for a ranking on several different categories but over the same topic.
|
I need help to understand how R computes the adjusted value when I use the quasi-likelihood distribution and complementary log-log link with variance function mu(1-mu).
My data are rates from continuous numbers (mycelial grow [cm] in treatment / mycelial grow [cm] in control) with outcomes (0< y < 1). My coefficients... |
As an exercise to learn how to manually code MCMC, I've built a Metropolis-Hastings sampler on top of a multinomial-Dirichlet posterior distribution. Since a closed form solution exists, I can compare results from the MCMC with simulations from the actual posterior distribution.
I'm using a Dirichlet proposal distribut... |
Let's assume that you saw your cousin flipping the coin 20 times and he got 12 heads and 8 tails. You see your cousin flipping the coin 20 more times and want to test if the coin is fair or not.
Let's consider the following two cases:
1) the cousin flipped the coin 20 times (didn't care how many heads or tails come up)... |
When imputing a missing value (in my case using MICE) - should I use all the variables in the dataset or should I use only the variable which correlate most with the missing values I want to impute?
Thank you!
|
tldr: ANCOVA shows you a main effect for your IV across all levels of the covariate, while removing variance attributable to the covariate. Regression shows you the effect of the IV at the reference level of the covariate plus interaction term(s) for the other level(s). In the case where the outcome is dichotomous, is ... |
When designing RNN's to predict the next time-step ahead, I've come across architectures where you train with say n timesteps as input and n timesteps as output (at t+1).input: (X(1), X(2)...X(n))
outputs: (X(2), X(3)...X(n+1)). So you have a many-to-many architecture - e.g. here.
I've also seen for the same kind of ... |
I would like to match two schemas coming from different sources (DB). For this I would like to try some machine learning algorithm to come up with a process to decided which column in a table could correspond to the same key. For example it's very likely that FNameand FirstName should be a match and correspond both to ... |
My DV is count, obtained from psychological questionnaire (14 questions with options ”Yes”/”No”, each yes is 1 point, thus overall result is count of yeses).
I’ve checked that Poisson distribution isn’t exactly what I’ve got (data is a bit overdispressed) and NB fits better (in comparison to Poisson – log likelihood is... |
I have a dataset of roughly 2500 people. One of the variables I have is the number of days people shared different types of content on a social media platform. The most frequent value is 0, with low means and variance about double the mean. The range is also extremely high. I would like to test whether or not a number ... |
First time poster and I apologize if the question seems basic but I have searched far and wide seeking the right answer but haven't come across it. Could even be a very basic yes/no. I am currently building a model for a project to predict churn in a f2p mobile game, meaning players can choose to spend money if they wi... |
I have 10 studies who look at a surgery for facial paralysis. The main outcome is time to nerve recovery. I have the mean, SDs for the time in months to recovery but obviously there is no control or baseline data. Do I just use zero for the mean and SD for my pre-op values? This gives me a weighted average which is ess... |
I am trying to evaluate the impact of an intervention (0/1) on readmission rates pre- and post-intervention. Every individual has a pre-period rate and a post-period rate.
A few important points:
1. The duration of time that each patient's post-period rate covers is variable (between 90 days and 500 days). This is beca... |
Assume 10 signals are transmitted each day derived from the same distribution randomly, and as such are considered independent from each other. Each signal is measured by 10 different monitors each adding a noise to the signal. Are the set of 100 measurements mutually independent and pairwise independent? Are there ... |
I am working on a Biology study and myself and a fellow colleague have looked at various patient medical images and we have computed a clinical score based on the pathology noted on the images. This score is in the range 0-9 (where lower values indicate remission and higher values indicate severe disease).
On top of th... |
I am struggling to determine if using a repeated measures ANOVA for my data is the best analysis, and unfortunately my adviser has not been much help. I measured luminosity of various fungal isolates at 14, 23, and 32 days post inoculation. Isolates were generated from five different parental sets: bright72, bright88... |
I am a computer science student and I am currently studying (for fun if you could say that) during my college break, I was implementing a simple program to calculate pi using the Monte Carlo method by counting the points inside a circle,it worked as it should, the I thought if it would be possible to do the same using ... |
In the book Bayesian Data Analysis by Gelman et al. (3rd edition, 2014), a hierarchical model (or one-way random-effects ANOVA) is presented in section 5.4 as follows,
\begin{equation}\label{eq:lme1}
y_{ij} = b_0 + \lambda_i + \varepsilon_{ij},
\end{equation}
where the data $y_{ij}$ come from the $i$th measuring en... |
I am wondering if anyone would have a succinct way of describing the differences between the two. My understanding is that the Fisherian way is non-parametric and relies on the randomization test to conduct inferences while the Neymanian method utilizes a distribution is an appeal to the central limit theorem for a Nor... |
My question: What is the most appropriate way to analyse cases in which two variables and their ratio are all believed to influence some outcome? I would ideally like guidance in a regression framework, but am open to other approaches as well.
Background: In the fields of oceanography & limnology, the Redfield ratio ... |
Is this expected from Gaussian Mixture Model? Given a perfectly homogenous dataset, the cluster center is not exactly the same as the data point?
//Create a vector (180,3)
val v = Vectors.dense(180.toDouble,3.toDouble)
//Create an array with all the elements set to 'v'
val tVrdd = sc.parallelize(Seq.fill(1000000)(v))
... |
I am working on a classifier that is supposed to do binary classification on a dataset includes 5996 examples. ~800 of this examples belongs to class 1 and the rest is class 0. Since there is a huge gap between the examples, I have used SMOTE with tomek and een which applies over sampling and under sampling. The proble... |
I am wondering if there is a direct relation between a Randomized Control Trial (RCT) and an Observation Study in terms of the treatment assignment mechanism or the propensity score. It seems in an RCT, certain conditions are listed, such as the propensity score/assignment mechanism being between 0 and 1:
$$
0 < P(Z_i|... |
I'm (very new, and) struggling to improve the accuracy of a simple neural network to predict a synthetic function.
I started from a neural network to predict sin, as described here: Why does this neural network in keras fail so badly?. I got this working perfectly, but I cannot get the solution to adapt to my own func... |
Consider three different studies based on three different datasets. Each of them has a continuous predictor x, a dichotomous predictor z, and a continuous outcome y.
In each of these three studies, researchers analyze the x*z interaction on y.
Here are three reproducible datasets that meet these criteria:
# generating ... |
How can I decide about the optimal number of components in Principal component analysis when I have mixed data of of categorical and continuous?
I'm using package PCAmixdata for PCA and I wish to know the number of optimal components. in this package we can have he PCA metrics by using the following forumla:
obj <- P... |
I'm wondering is it reasonable if I use the fix training set, and instead have 10 different subsets of validation set with the same size?
So, I separate 70% of original dataset and estimate my model once, then I draw 10 random subsets with the size of 20% from the leftover which was 30% of whole data.
Does it seem a c... |
I have an array of a million float values, and I seek to identify regions of abnormally high values.
For instance, within [0.39, 0. 41, 0.4, 0.67, 0.7, 0.8, 0.37, 0.49], [0.67, 0.7, 0.8] constitutes a region of abnormally high values.
Are there standard algorithms/methods for addressing this type of problem? I was thin... |
I downloaded the 2013 dataset from Kyoto University.
My question is this: how will I know if I should [feature] scale or standardize my data?.
Thank you in advance!
UPDATE 07/13/2017a
This is the script I wrote for getting the data summary using pandas.
UPDATE 07/13/2017b
Here's the data summary, with description of in... |
I want to test the correlation coefficient (i.e. |ρ|=1) that the relationship among variables is deterministic. If sample correlation coefficient ( r=0.93) can i test this value ( 1-r=1-0.93=0.07) using t-statistic ((r√(n-2))⁄√(1-r^2 )) with the statement that the relationship among variables is stochastic (i.e. ρ=0) o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.