instruction stringlengths 9 38.7k |
|---|
Is this model good in terms of Accuracy? Test accuracy is better than training. Training accuracy = 98.55% and Test accuracy = 99.16%.
|
For the primal form of the learning objective for the max-margin classifier, the minimum margin is 1 (e.g. $y^{(i)}(w^{T}x^{(i)} + b) \geq 1$).
I am looking to prove that when the dataset is linearly separable, replacing the 1 by an arbitrary $\hat{\gamma} > 0$ does not change the optimal hyperplane.
My intuition is ... |
I am wondering whether a test exists that identifies at which point in time a time series becomes non-stationary. For instance, a time series might fulfill all requirements for weak stationariy in the first year and then explodes. I am working on data for which it would be interesting to know at which point in time the... |
If $\frac{p_0(x)}{p_1(x)}$ is a non-decreasing function of $x$, how can I prove that $\frac{p_0(x)^{*n}}{p_1(x)^{*n}}$ is a non-decreasing function of $x$, where
$f^{{*n}}(x)=\overbrace {f(x)*f(x)*\cdots *f(x)}^{n}$ and $*$ denotes the convolution.
The question comes from statistical hypothesis testing, specifical... |
As I understand it, the law of total covariance indicates that the covariance of two data sets X and Y should be equal to the average of the covariances of all subsets of X and Y (eg. [X1, Y1] .....[Xn,Yn]) plus the covariance of the averages of X and Y for all subsets.
When implementing this, I can not achieve equ... |
I have read some books on statistics, and it covers most of the regression algorithm, but does not cover up much on polynomial regression. Any suggestions on books covering up this topic, specifically on cubic polynomial regression?
|
I am tasked with externally validating a nomogram predicting a binary outcome using our internal data. I do not have the regression coefficients of the original prediction model--I have access to the derived online score calculator. I can input my patients' clinical data in to generate probability of the binary outcome... |
I am going to use Poisson regression in my model, but I don't know what assumptions I need to check to verify adequacy of the model. In a normal regression, I had to check Gauss Markov assumptions for my estimates to be BLUE. Do I have to check same assumptions for Poisson? Can I apply tests like White's test, Breusch ... |
I am using two-layer cross-validation.
I want to compare two methods against each other, and in the inner loop, I want to tune the parameters.
I have tried
# K-fold cross validation
K = 10
CV = cross_validation.KFold(num_observations, K, shuffle=True)
# Tree complexity parameter - constraint on maximum depth
tree_comp... |
LASSO regression shrinks coefficients towards zero, thus providing effectively model selection. I believe that in my data there are meaningful interactions between nominal and continuous covariates. Not necessarily, however, are the 'main effects' of the true model meaningful (non-zero). Of course I do not know this si... |
I am given $$Q \sim\mathrm{Beta} (2,3)$$ $$[X|Q=q]\sim\mathrm{Bin} (3,q)$$
I am asked to find (1) $E[X]$, (2) $\operatorname{Var}[X]$, (3) $E[Q|X]$, (4) $\operatorname{Var}[Q|X]$, (5) $v(q|X=x)$.
I understand $E[X]=E[E[X|Q]]=E[xQ]=\frac{x\alpha}{\alpha + \beta}$
$\operatorname{Var} [X]=E[\operatorname{Var}[X|Q]]+\oper... |
So my research will be using a between-groups, non-experimental design, collecting data using surveys.
I have two numerical predictor variables, and one predicted variable.
Due to the nature of my research question, my predicted variable can either be categorical (comparing group A to group B), or numerical (each part... |
I have a dataset where I divide it (based on nodule longest diameter) into two subsets of cancer features.
I have got the prediction accuracy for each subset and the AUC's. I would like to combine the two AUC's of each subset into one AUC.
Any idea?
Thanks.
|
I'm using multilevel modeling in a situation where I must center a level 1 binary predictor (coded 0/1), following recommendations made here:
https://www.researchgate.net/profile/Davood_Tofighi/publication/6274186_Centering_Predictor_Variables_in_Cross-Sectional_Multilevel_Models_A_New_Look_at_an_Old_Issue/links/00b495... |
I'm currently correcting the parameter values of the posterior distribution estimated with Approximate Bayesian Computation. The correction is obtained using a multiple weighted linear regression model to get closer to the real posterior as proposed by Beaumont et al 2002. From that corrected posterior, I want to estim... |
English is not my first language so i apoligize for any mistakes.
I have been given a dataset containing around 700 observations of the amount of a certain chemical in the air. The observations are measured once every hour, so for each day, i have 24 observations.
I am now tasked with identifying a ARIMA model for the ... |
I have to review an article for a conference. This article deals with Transferable belief model and Pignistic probability, concepts that were previously unknown to me (CS background).
I dived into thes "theories" and all this came to me as a complete pseudo-science with very unclear concepts, out-of-the blue definitio... |
In Bishop's book, page 20, the following assumption is made:
Defining the expectation value of a function under some probability distribution as
$$\mathbb E[f] = \sum_x p(x)f(x)$$
if we take a finite number, N, of points $x_n$ from $p(x)$, the following approximation can be made
$$\mathbb E[f] \approx \frac{1}{N}\sum_n... |
My question is pretty straightforward: It seems to me that using a correlation coefficient instead of simply directly calculating the coefficient of determination (using one set of observations as your predictors) will erroneously inflate the reliability estimation, by introducing a "hidden" linear regression into the ... |
$\newcommand{\diag}{\operatorname{diag}}$We have the problem: $$\min_{w\in\mathbb{R}^{d}}\left( \frac{1}{n}\sum_{i=1}^{n} \left( \langle w,x_{i}\rangle-y_{i} \right)^{2} +2\lambda||w||_1\right),$$
with the assumption that: $$\sum_{i=1}^nx_ix_i^T=\diag(\sigma_1^2,...,\sigma_d^2).$$
Is there a closed-form solution in th... |
I am trying to implement a machine learning algorithm that will help me with two goals:
1) Classify a given string in a set into a predetermined category based on their content.
2) Estimate the confidence that a given string belongs in the category
An example set of strings and their categories is below:
"Damage to ri... |
I have two Naïve Bayes classifiers
nb_classifier = MultinomialNB(alpha=0.05, fit_prior=True)
nb_classifier.fit(X_train, y_train)
and
nb_classifier = MultinomialNB(alpha=1, fit_prior=True)
nb_classifier.fit(X_train, y_train)
where the only difference is the alpha value.
How do I choose the classifier that performs bes... |
I have been looking for a way to classify events in a time-series I have. My data is streaming to the cloud so computation time is not really an issue. The data is coming in every second for up to 4 - 5 hours. During that time there are events that cause spikes in the data. I did some basic analysis using spectral powe... |
Goal: build a survival analysis to understand user behavior in an online site.
I have a data set of an online site where user appear from the first time and the last time. I am trying to build a survival analysis. Using this information.
userId, firstEntry, lastEntry
001,11/6/2012,11/6/2012
002,9/9/2005,9/9/2005
003,1... |
I was reading about linear regression on wikipedia. It was defined as an approach for modeling the relationship between a scalar dependent variable $y$ and one or more explanatory variables. Later on as I proceeded with my reading on wiki, I couldn't find any relevant statement which precisely deals with the fact of th... |
I am using a Cox proportional hazards model to estimate the probability of an event (failure of a mechanical device, say) occurring at discrete, finite times: $t = 0, 1, 2, \ldots$. In Cox's original paper, Regression Models and Life Tables, he says that, if you let $T$ be the random variable representing the time to f... |
I'm new to machine learning, and I have gone through a bunch of tutorials on youtube, but I'm still having some trouble understanding the limitations of machine learning as well as how to apply them beyond the simple examples given in tutorials.
I"m playing around with the titanic data using scikit learn and seaborn.
... |
Given a random variable $X$, how do I have obtain $N$ random variates of $X$ so that the mean value of my samples equals the expected value of $X$?
E.g. let $X$ have uniform distribution on the interval $[0, 1]$, and draw $N = 10000$ samples. We can do this in R using:
set.seed(5)
tmp_vec <- runif(10000, 0, 1)
However... |
I'm attempting to set up a simple beta binomial hierarchical model with an uninformative prior in PyMC3. I've read that the uninformative prior for this model should have alpha and beta hyper-parameters sampled from the following function: $$f(a,b) \sim (a+b)^{-5/2}$$ where a, b > 0. I stumbled across a way to repres... |
Nielsen and Chuang's big book Qu. Comp. & Qu. Inf. says on pp. 506-507) it follows > from "the relevant definitions" that H(X,Y) = H(Y,X). I could not verify that.
|
Let's say I have a neural network with many features, but the features can be grouped into roughly 4 subsets A, B, C, D. I want to train the neural network using features A, B, C and compare how correlated the output is with the full neural network. It's kind of like cross validation, but using hold-out features instea... |
I am trying to do an anova anaysis in R. The experiment done had each subject tested in Method 1 and Method 2 as well a being in one of 4 different Levels (each subject in one group). The goal is to compare Method 1 and 2 for similarity. The way I see this anova being set up would be with the Method as a within factor ... |
I have train and test data sets of the Ames, Iowa housing prices data set.
The source data has been split approximately 50/50.
My train set has 1460 observations and the test set has 1459.
I've found that when predicting on the test set, R complains when the train and test sets do not have the same number of observatio... |
Here is question I am working on to study for an exam that I am quite not sure how to frame a proper answer for:
Trains arrive at a station with i.i.d interarrival times following an exponential distribution with parameter $\lambda$. Suppose you arrive at a station at time t.
(a) Let T0 be the time when the last train... |
I am using the randomForest package in R with categorical co-variates. The documentation advises against the formula interface for large data. Following this advice, I prepare the outcome variable and a model.matrix object, M.
My question is does the algorithm treat the columns of M independently, so the mtry variable... |
I have the following MRF graph and I need to find out about the clique factorization of the graph. I understand what it means for a graph to have a clique factorization. However it seems to be that it will not be unique. Is it true that that is the case? If not can I know how to get the clique factorization of the grap... |
If I have many predictor variables, instead of performing backward or forward selection, can I do PCA as a first step and then go ahead with linear regression?
|
I have an exercise with which I'm currently struggling:
Consider a random sample $\big\{X_n\big\}_{n=1}^N$ from a normal distribution having mean $\mu$ and variance $\sigma^2$. What is the distribution of $\frac{\sum_{n=1}^N (X_n - \overline{X}_N)^2}{\sigma^2}$?
Could anyone give me some hints in the right direction ... |
I asked many questions to the Respondents. Each question represent a variable and they are part of the main variable. Each question has two possible answers : Agree and Disagree which I have coded to 1 and 0 respectively. It is like following:
Vraiables:
tax_revenue_a
tax_revenue_b
tax_revenue_c
non_tax_revenue_a
non_t... |
I need to use Heckman selection model. I understand it is a two-step model. The first is the selection model, running on the full data (data with observed DV and unobserved DV). The second is the outcome model. My question being is the outcome model running on the the full data or just the data with observed DV?
This q... |
The formula for MSW is
$$\hat{s}^2_j=\frac{1}{T-1}\sum_{t=1}^{T}w_{jt}(X_{jt}-\bar{X}_j)^2$$
$$\hat{s}^2=\frac{\sum_{j=1}^J\hat{s}^2_j}{J}=MSW$$
where $j$ denotes the risk factor and $t$ denotes the year of observation. There are in total $J$ risk factors and $T$ periods of observation.
Question: When there is only obs... |
I am supposed to build a nonlinear regression model with multiple, correlated dependent variables and multiple independent variables, i.e. a multiple multivariate regression model. Unfortunately, I can hardly find any (scientific) information on the nonlinear case. - What are the arguments in favour of a multiple, mult... |
I have the following unbalanced dataset. In this, HHI is the Hirschman-Herfindahl-Index, a measure between 1/n and 1, and my sample is a large number of worldwide firms.
I am trying to investigate effects of market diversification (measured through HHI) and firm performance onto each other, (measured through ROA, prof... |
Assume I have a trained word2vec embedding, given two words, it's easy to determine the similarity between the two words. However how do I know one word "belong to" another word's category?
For example, I have the embeddings of "apple", "city", "fruit". Definitely "apple" should belong to "fruit" category, but not in ... |
I am using R to analyse experimental, two dimensional data via gaussian mixture modeling with the mclust package in order to find the mean of each component. I already know something about my data (the number of components and their proportions are defined by the experimental setup) and thought, that the modeling accur... |
My question is about the interpretation of p-value. Under the null hypothesis the p-value is uniformly distributed. Then why does a test statistic landing in the far ends together comprising 5% of probability support ruling out the null hypothesis at 5% confidence when we don't say the same about any other interval.
To... |
I used regression analysis to fit the data shown below. The problem is that the R-square in the output is low (0.55). This is because Regression analysis does not take into account the Errors in each data point.
How can I do it so?
|
$X_1,X_2,\cdots X_n$ is a random sample from $N(\mu,\sigma^2)$.
I have to find out
an unbiased estimator of ${\mu\over \sigma}$
My work:
Initially I take $T(X)={\bar X\over \sqrt{{1\over n}\sum(X_i-\bar X)^2}}$ I need to find $E(T(X))$.
I know
$A:={\sqrt n(\bar X-\mu)\over \sigma}\sim N(0,1)$ ; $B:={\sum\limits_i(... |
The introduction of almost every lecture for Decision Trees is a decision tree, where one node might have more than two children. However, as I understand the decision tree is always a binary tree, right? During the implementation I one-hot encode all my categorical variables, meaning the split on such a feature will a... |
I'm wondering if for a non-negative random variable $X\geq 0$ there is a lower bound on $E(X^3)$, such as for example for $E(X^2)$ $$E(X^2)\geq E(X)^2$$, which follows from $var(X)\geq0$.
I tried decomposing:$$E(X^3)=E(X^2X)=E(X^2)\cdot E(X) + COV(X^2,X)$$
Using the statement above I can bound the first part below by $... |
I am looking into the method to calculate the sample size if we would want the specific coefficient significantly different from zero. I have 4 independent variables and 1 dependent variable. And I have 50 observations so far. I would like to know how many more observations do I need to get one of the coefficients sign... |
How is it possible to calculate the variance $\sigma^2$ for the Normal distribution if only $\alpha$ and $\beta$ (based on data) from the Inverse-gamma distribution are available? I followed the definitions on the Wiki and found out that for a Normal distribution in case of unknown variance and known mean the cojugate ... |
I have two vectors:
library(equivalence)
a <- c(32, 18, 23, 4, 9, 19, 34, 22, 24, 26, 8, 10, 18)
b <- c(28, 32, 20, 10, 7, 31, 18, 25, 22, 28, 10, 9, 21)
tost(a, b, epsilon=5)
Now when I use tost() (from following library: http://cran.r-project.org/web/packages/equivalence/equivalence.pdf), what exactly does the ... |
Is there a way to combine different predictions to create a prediction?
The way I am thinking about it is, a lot of times while learning different things, we learn small separate parts of a subject and are able to combine them together to get "the big picture".
Similarly, if I use some algorithms to learn different sma... |
I have a cohort made of family trios and affected sib pairs (probands have rheumatoid arthritis - RA). I would like to calculate some incidence densities (for example apparitions of RA, of disease 1, disease 2 and disease 3 in each individual) and compare them with ratios (that's the point: IRR or HR?). Of course, IR a... |
I surveyed a group of photographers and asked them how frequently they used a particular type of lens for a specific type of photograph. I now want to find out which lens or lenses are the most commonly used for each type of photograph. There were four lens types and five types of photographs and I had 50 participants.... |
We have around N=1000 entities but for now consider in the example just seven, labelled 1-7 below. We can lay them out in 2D in D different ways - just two are shown below. I would like to be able to compare these distributions, cluster them and so on. The orientation of the distributions doesn't matter, so the two sh... |
I am reading a paper from Science entitled "Shared decision-making drives collective movement in wild baboons'.
In a nutshell, there are two kinds of baboons in this study: (1) those that are initiators of action (to lead, or do other things), and (2) those that are followers (potential to follow, mimic the leader).
... |
I am modelling a process where I repeatedly draw $n$ i.i.d. binary variables $x_i$. The probability of drawing a positive $x_i$ is $P(x_i = 1) = \rho$.
Therefore, the probability of drawing $k$ positive $x_i$ out of $n$ trials follows a Binomial distribution, $P(k) = B(k|\rho,n)$.
To add complexity, $n$ is also a rando... |
Lazzerini determined that value of $\pi$ from Buffon's needle problem. Use these and central limit theorem to estimate the probability that a result could be as good as his. Compare this with the true binomial probabilities.
I don't think I quiet understand the question. Any hints on how to start will be appreciated.
E... |
So I have some experience when it comes to SVM mainly through a basic course in machine learning. However when it comes to features I've never needed to do any form of feature selection before.
The dataset that I have right now has around 40 features and about 650 data points. I've read about different feature selectio... |
The final model needs to include all variables. I need to analyze the significance of their effects on the dependent variable and then see if there's any difference in effects of continuous variables between the two categories. Is my final model y~x1+x2+x3+x4?
|
This is for a clot assay. I have a mean of 39.1 sec, standard deviation of 0.9 sec, and a CV(%) of 2.3, my confidence interval would be 95%. I am looking to calculate the sample size. The equation I have found is
$n = \frac{(Z_{a/2})^2*\sigma^2}{E^2}$
where I do not know how to find E, the margin of error. I also have ... |
Consider two sets like this:
A = {'hello', 'world'} and B = {'Hello', 'helo', 'goodbye'}.
I want to measure the similarity between these two sets. There are two levels to this problem:
Comparing set elements: How similar are "hello" and "Hello"? This is not the subject of my question; let's assume that we have a sa... |
I think that it can't since whenever we have data then we have mode and since we have mode it's frequency is at least 1. Therefore, variation ratio can't ever be 0.
What do you think?
|
I was performing logistic regression on some data, and I realised that I need to remove or partial out the effects of another covariate.
If $x$ is the predictor of interest, the model is:
$$ y \sim \mathbf{logit}^{-1}(ax+b) $$
One option would be to include the covariate $z$ as another regressor:
$$ y \sim \mathbf{log... |
I am currently working on a binary classification Kaggle competition where there is a labeled training set and an unlabeled test set provided, and the objective is to maximize the AUC on the unlabeled test set. The training set exhibits class imbalance, with roughly 5% of all examples being positive. I am using strat... |
I have a survey data with no original instructions on how to do weighting. This survey is voluntary and has been taken by 207 hospitals out of 7000 hospitals in the U.S. There are some characteristics such as teaching status, location, ownership, system membership that I want to weigh my sample on. Except one (No of be... |
I have 2 questions on the Westerlund cointegration test. I have panel data from year 1995 to 2015.
1) How do you decide the lag? So for example, if i were to include 3 lags, it says i need at least 22 observations But i have some series that have missing data, so it gives me an error msg saying the series do not contai... |
I want to draw a random sample from a known joint distribution. what I have now is the number of people in each age and income bracket (as shown in the example below):0.12 0.42 0.06
16 0.08 0.28 0.04
income $1-10,000 income $10,001-20,000
15-20 years old 0.12 0.08
21-25 y... |
I am developing an early-warning GLM that predicts insurance claim severity based on characteristics such as industry, age, type of injury, etc. One of the fields that has proved most predictive, Variable X, is not known with certainty early enough in the life of the claim for me to use it in the model.
Would it be ap... |
If I trying to estimate the proper VAR to do a one period ahead forecast, but I am unsure of how many periods I should lag one of my variables, for example if I should lag it 2 periods instead of 3, can I do a likelihood ratio test to compare the fit of the model with 3 lags and 2 lags? Or does the fact that the variab... |
I have a large feature set with data $D$ that I'm trying to reduce the dimensionality of (from about 1500 to about 7), and then estimate some quantities using PCA as a dimensionality reduction. Sorry in advance for the length, and please forgive any misuse of terms. I've tried to be thorough, but let me know if anythin... |
I was wondering what this unfilled circle meant. It is in this tutorial which implements a neural network from scratch. I have posted the specific part for your convenience. It is the line with $\delta_2 = \dots$
|
Let $\hat{\theta}_i$ $(i = 1, 2)$ be two unbiased estimators of $\theta \in \mathbb{R}$, which are uncorrelated, with $V(\hat{\theta}_i) = \sigma^2_i > 0$ $(i = 1, 2)$.
For $\alpha \in [0, 1]$, define $\hat{\theta} = \hat{\theta}(\alpha) = \alpha\hat{\theta}_1 + (1 − \alpha)\hat{\theta}_2$.
What is the quickest way to... |
Consider the random variable $Z$, defined by:
$$Z = \sum_{k=1}^n c_k X_k$$
where $X_k \sim U[0,1]$ is a real random variable with continuous uniform distribution between 0 and 1, and the $c_k$ are real constants.
The Irwin-Hall distribution is the distribution of $Z$ if $c_k = 1$ for all $k$.
Is there a name for the ge... |
It can be shown that if
$X \sim Gamma(\alpha, \theta)$,
then
$\overline{X_{n}} \sim Gamma(\alpha n, \theta/n)$.
where $X_{1}, X_{2} \dots X_{n}$ are all iid and follow the distribution of $X$.
The proof of this argues that the MGF of $X$ is $M_{X}(t) = \frac{1}{(1-\theta t)^{\alpha}}$ and the MGF of an average is just... |
I have the following subset of dataset which I am using to create a boxplot (using ggplot) between study and FPKM:
head(total)
study gene_id disease id FPKM freq
1 GTEx Normals (7859) ENSG00000149294.16 Adipose Tissue (515) SRR1090407 0.68 7859
2 GTEx Normals (7859) ENSG... |
I have read the following posts for nested cross validation and still am not 100% sure what I am to do with model selection with nested cross validation:
Nested cross validation for model selection
Model selection and cross-validation: The right way
To explain my confusion, let me try to walk through the model select... |
I'm fairly new to Bayesian statistics and I came across a corrected correlation measure, SparCC, that uses the Dirichlet process in the backend of it's algorithm. I have been trying to go through the algorithm step-by-step to really understand what is happening but I am not sure exactly what the alpha vector parameter... |
I have built a regular ANN–BP setup with one unit on input and output layer and 4 nodes in hidden with sigmoid. Giving it a simple task to approximate linear f(n) = n with n in range 0-100.
PROBLEM: Regardless of number of layers, units in hidden layer or whether or not I am using bias in node values it learns to appr... |
In this wikipedia link about the Jeffreys-Lindley's paradox, in the subsection «Reconciling the Bayesian and frequentist approaches», right in the first sentence, it's written « if we take a sequence of significance levels, $\alpha_n$». Why would a frequentist take such a sequence? Shouldn't the significance level be d... |
I am rather new to regression analysis, having a completely different background. I am trying to build a model for predictions.
The distribution of my dependent variable, Value (in US$), is right skewed and nonnegative. My explanatory variables are CurrentValue, i.e., the value of the item one year before, the age A of... |
Just wondering if anybody has any suggestions as to a good introductory tutorial, that blends Google Analytics with a machine learning library.
I found Mark Edmondson's one excellent. However, his guide envisages every user is logging in to use the website, which isn't really practical on this site, a blog. Any pointe... |
I am trying to measure the decay in the rate of sales from period one, to period two, to period three, to period four. My sample data structure looks like this:
Product Sales Period X1 X2 X3
A 140 1 (omitted)
A 130 2
A 90 3
A 70 4
B 100 1
B 95 2
B 80 ... |
In page 5 of chapter 2 of Gaussian Process for machine learning [1], the author mentions the following:
$p(f_*| {\bf x_*}, X, {\bf y}) = \int p(f_*| x_*, {\bf w} )\space p(w | X, {\bf y} ) = \mathcal{N}\space(\frac{1}{\sigma_n^2} {\bf x_*}^T A^{-1}X {\bf y}, {\bf x_*}^T A^{-1} {\bf x_*})$
Is it possible to prove the ab... |
I want to fit some sigmoidal curves that follow the following equation:
bottom+(top-bottom)/(1+10**((logIC50-x)*HillSlope))
the parameters top and bottom should be constant throughout several data sets, the other parameters can vary within some sets depending on the experimental conditions. Is there a way I can global... |
I was reading the online version of Forecasting: principles and practice by Rob J Hyndman and George Athanasopoulos. I found this sentence about STL decomposition and the BoxCox transformation:
"Decompositions some way between additive and multiplicative can be obtained using a Box-Cox transformation of the data wit... |
I am currently testing the independence of two unpaired conditions A and B; with each condition representing a set of 12 values (aka bins) that compose a one-phase association exponential curve. Each bin represents a probability that falls within a specific interval (e.g. bin 1 = 0-7.5, bin 2 = 7.5-12.5). Note that the... |
I have a dataframe which in R looks somewhat like this.
set.seed(100)
df <- data.frame(ID = 1:10,
I.2011 = sample(1:3, rep = 1, 10),
I.2012 = sample(1:3, rep = 1, 10),
I.2013 = sample(1:3, rep = 1, 10),
I.2014 = sample(1:3, rep = 1, 10))
ID I.2011 I.2012 I.2013 I.20... |
I usually deal with problems like these easily, but this time, I am stuck. I've pulled out every trick for showing chisquare distribution that I can think of, but nothing worked. You will soon see the problem. We are in a linear mixed effect model setting. Suppose $Y_{ij} = \mu + A_i + \varepsilon_{ij}$, such that $A_i... |
I have a dataset of 54,681 rows and 10 features. I'm trying to predict whether or not a user will complete an a specific action, ie a binary target label. There are several features such as signup_date, item_added_date and action_completed_date. My problem is that all of these data are only recorded for users that comp... |
We are working on a questionnaire to measure the following factors
Ethical culture, High Quality relationship (HQR) between bosses and employees and Employee Engagement. Above factors have 3,6 and 8 questions as indicators respectively.
We wanted to test if "in ethical cultures, leaders are more likely to have a good... |
Suppose we have a multiple regression with $n$ predictors. All of them have significant correlations with the response except for one. Could the predictor with the zero correlation to the response be significant?
|
I'm currently watching the USA elections and I'm wondering how the confidence is calculated.
So let us say we have a state of 500,000 inhabitants; 5,000 votes have been counted and 80% (4,000 votes) are for candidate A. How can I calculate the probability that candidate A won the state (i.e. binomial model probability ... |
I conducted latent class/cluster analysis in R using the package MCLUST. I have a revise and resubmit for my paper, and the reviewer suggested making a table of the fit indices for the cluster solutions (as of now I just reported BIC in the text). when I look at a few papers that have used LCA approaches, they report B... |
The log likelihood ratio of two binary random variables $x$ and $y$ (only taking values $0$ or $1$) can be defined as
$LLR_x=\frac{P(x=0|y)}{P(x=1|y)}$
The above definition is OK if $y=0$ or $1$.
Now if $y$ is in the form of log likelihood ratio (soft information output from another system), how can it be incorporated ... |
nsam=100
X1 = runif(nsam)
X2 = runif(nsam)
data = cbind(X1,X2)
pairmin = matrix(NA,nn*(nn-1)/2,3)
k = 0
for (i in 1:(nn-1)) {
for (j in (i+1):nn) {
k = k + 1
pairmin[k,1:2] = pmin(data[i,],data[j,])
pairmin[k,3] = sign((data[i,1]-data[j,1])*(data[i,2]-data[j,2]))
}
}
pairmin = cbind(pairmin,pairmin[,3]... |
I'm trying to fit a Cox model, but there is some problems. I have the following variables in the model.
Group: 1, 2, ..., 9
Sex: 1 female and 0 male
Weight
Age
The first thing that I did is split the variables Age and Weight in 4 different groups and check if the assumption of proportional hazards is met for each v... |
I feel confused about how to design a Multilayer Perceptron(MLP). I have read a number of papers about how to design a deep CNN structure, like VGG or ResNet. However, for a Multilayer perceptron, a more basic ANN structure, should I follow this trend to make the MLP deeper? Actually, I try some trials on python that s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.