instruction
stringlengths
9
38.7k
In a discussion, a friend mentioned that the function below cannot be optimized so it can't be used in a learning algorithm. $$E_{in} = \frac{1}{N} \sum_{n=0}^N (h(x_n) \ne f(x_n))$$ Why can't this function be used as a loss function? The Context This is about machine learning and minimizing the error on a dataset $D$...
I ran a χ2 test of heterogeneity to test whether I can pool data related to the frequency of occurrence of 2 phenotypes of an insect which was sampled during different seasons. In other words, we recorded frequency of occurrence of 2 phenotype of an insect during winter, fall, spring and summer. We believe that in all ...
I am quite new to statistical tests and not sure how to exactly describe my question. I searched but could not find similar questions. Please do let me know if this is a redundant question. I recently tried to compare a distribution between male and female. Two-sample KS test seems to be a good fit and the result is so...
I'm running a causal mediation analysis with the mediation package in R. My summary table looks like this: Causal Mediation Analysis Nonparametric Bootstrap Confidence Intervals with the BCa Method Estimate 95% CI Lower 95% CI Upper p-value ACME -0.07842 -0.08679 -0.07051 0.00 AD...
I have performed an independent t-test on SPPS and retrieved these results: No Levene significance value was given and so how would I know whether my results are significant? Would I just divide the significance from the 2-tailed t-test by two? Any help greatly appreciated! EDIT: In my data set, it looks at the effec...
My problem is as follows. I have 2D points representing longitude and latitude. I do not have any other information (no time-stamps). The number of points is limited, about some hundreds. The curve is not of the form Latitude = f(Longitude). The task to achieve is to obtain a smooth version of the curve, i.e. a paramet...
Conditioning is a tool I have used a lot in the discrete setting: usually this takes the form $$P(X=k) = \sum_{i=0}^\infty P(X=k | Y=i) P(Y=i).$$ I'm a little confused about the analogous situation for continuous random variables. Suppose we have this little problem, which I am making up for illustration purposes: Let ...
According to the book GPML, " ... A Gaussian process is defined as a collection of random variables. Thus, the definition automatically implies a consistency requirement, ...". Can I know why this definition automatically defines the consistency requirement? Which is also the marginalisation property?
Given $X_1, X_2,\ldots, X_n$ are i.i.d rvs with pdf $f(x\mid\theta) = \frac{1}{2\theta^2} e^{\frac{-\sqrt{x}}{\theta}} I_{(0,\infty)}(x)$ for $\ \theta > 0$. Find the UMVUE of $\ 6\theta^2$, and compute its variance. My thought: We see that since $E(\overline{X}) = 6\theta^2$, $\overline{X}$ is an unbiased estimator o...
Suppose a researcher estimated a parameter in parametric way with correct distributional assumption. Another researcher estimated the same parameter in non-parametric way. Will there any difference of accuracy (bias) in estimation in these two situations?
The following site (http://www-ist.massey.ac.nz/dstirlin/CAST/CAST/Hcausal/causal_c2.html) defines a causal relationship as one where one variable 'directly' affects the other, but without the other variable having any influence on the first variable. However, the following site (http://medical-dictionary.thefreedictio...
I have a repeated measures design. Each subject was tested in 2 conditions (RE, re) with different cognitive load levels (low, mid, high). I originally analysed this dataset using a repeated measures ANOVA (mu_N1 ~ lang*load + Error (subj/lang * load)). This is an unbalanced design, i.e. the number of observations per ...
I want to see the relation between the division of household tasks and family stability in Sweden by Logistic regression method. First, in the analyses, persons with an egalitarian division of HH show a lower odds of intention to break up than persons with the traditional division but by adding the variable of satisfac...
I want to understand the logic behind keeping ReLU as $max(0,x)$ and not $min(0,x)$? Why do we prefer positive inputs over the negative ones?
Given $X_1,\ldots, X_7$ are i.i.d r.vs which follow $N(\mu, \sigma^2)$. Find the UMVUE of $\frac{\mu}{\sigma^2}$. My thought: First, we realize that $E(S^2) = \sigma^2$ where $S^2 = \frac{\sum_{i=1}^{7} (X_i - \overline{X})^2}{6}$ is a sample variance. Thus, $E(\frac{1}{S^2}) = \frac{A}{\sigma^2}$ (I could not see how ...
I have run a logistic regression after variable subsetting using LASSO in glmnet( glmnet.cv,100 fold cross validation for $\lambda\ min estimation) but model summary is as below: Call: glm(formula = expression_logit_binom_mdl_1, family = binomial(logit), data = model_data) Deviance Residuals: Min ...
I understand that the AIC penalizes the number of parameters less strongly than the BIC. Then it's concluded that the BIC tends to choose model with less parameters. Why penalizing strongly will lead to less parameters?
I have a really basic question which I need clarifying on and would appreciate a quick response to this if possible. I am forecasting conditional variance (volatility). I have in-sample from 1996-2007. Out of sample 2007-2016. Do I report descriptive statistics for the in-sample or full sample? I have my daily returns ...
I'm studying random variables and am given a solution that I cannot understand. Why do even functions reduced increasing part of the equation. Here are the equations: $ f_y \ (y)=\frac{1}{2\sqrt{y}} \ [f_x\ (\sqrt{y}) \ +f_x\ (-\sqrt{y})]u(y)$ and $ f_x(x)= \frac{1}{\sqrt{2\pi}} \exp\{-x^2/2\} $ book says beacuse $f_x ...
I understand that the architecture of Convolutional Neural Networks (CNN) and Feed forward (FNN) are quite different. And that CNNs use pooling and filters of shared weights over a patch of the image. I am not so clear on the core convolution operator (1): If anyone could link me to an explanation, I have looked at th...
I am new to data analytics. I am trying to cluster 1D data, i read online and it is usually said that you should not use clustering for 1D data, instead you should use algorithm like kernel density. I used example code from scikit-learn: #Plot a 1D density example N = 100 np.random.seed(1) X = np.concatenate((np.random...
I have generated multiple log likelihood estimates for some parameters $\theta$ based on independent sets of observation. How can I combine these into one average?
I have run a Kruskal Wallis Test on my data and it is significant at p=0.00. I have currently reported the output as H (3) = 18.047, p<0.00. However, I now need to see where the difference between my groups lies, so ran pairwise comparisons. Here, looking at the adjusted significance there is a statistically significan...
I've run a Kruskal Wallis test, and for some of the questions the p value is not significant. Would I report this in the same way as if it was significant, stating the df, test statistic and p-value? So it would be something like this a Kruskal Wallis test was conducted but the results were found not to be significant ...
I have a set of data described by two qualitative variables. The data can therefore be analysed as a matrix, showing how many occurrences there are at each intersection of the two variables' levels. I am looking for a measure to express the difference between two such matrices: the first, in which all intersections of ...
Having run panel unit root tests, we cannot reject the null of individual unit root (Im, Pesaran), suggesting a non-stationary series. Question 1 At this point, how do we know if we have a stochastic or deterministic trend or both? Sub-question: Do panel unit root tests on intercepts only (1) and intercepts and trend ...
I would like to verify my thoughts here concerning matrix notation of generalized linear models (i.e. generalized general linear models). A classical generalized linear model is given by $$ Y_i = h(\mathbf x_i'\boldsymbol \beta) + \epsilon_i $$ where $Y_i|\mathbf x_i$ is assumed to follow some distribution from the exp...
Eventually, I would like to learn the Baum-Welch algorithm. When I talk about mathematical prerequisites, I mean what would be the matter that I should look at and not the courses I have to take. Could anyone have time to tell me what are the mathematical perquisites for such thing? To describe me, I have 9 years old,...
Summary: I'm looking for a measure of distance between multinomial samples of four or more categories in order to build a phylogenetic tree. I considered using log(1/CHI2(sample-1, sample-2)), where CHI2 gives the p-value of the chi-square test between two samples of equal size. I'm not sure whether this makes sense th...
While studying data mining methods I have come to understand that there are two main categories: -Predictive methods: classification Regression -Descriptive methods: Clustering Association rules Since I want to predict the user availability (output) based on location, activity, battery level(input for the training ...
Is there any continuous distribution expressible in closed form, whose mean is such that the geometric mean of the samples is an unbiased estimator for that mean? Update: I just realized that my samples have to be positive (or else the geometric mean may not exist) so maybe continuous isn't the right word. How about a ...
What do we mean by 'Random' in the science's context. Especially in the statistics and signals processing field. I looked to the dictionary definition of Random and this is what I found: Made, done, happening, or chosen without method or conscious decision. Unfamiliar or unspecified. Odd, unusual, or unexpected. For ...
If I understand things correctly, in a nested cross validation the inner cross validation is for optimising over the search space of hyperparams, and the outer loop is validating the accuracy the optimal hyperparams determined by the inner loop. i.e. outer cross validation hyperparameter search inner cross validat...
I'm trying to perform a Hosmer-Lemeshow goodness of fit test on a bunch of logistic regression models but for some reason the p-value that is returned is 1 on all of the models. Does anybody have a clue on why that is happening? Here's a piece of my R-code: model1 <- glm(c(variable1,variable2)~x+y+z, family="binomial")...
How does one decide on number of lags to use in this test? Can one just justify the number based on previous papers? To clarify, I am forecasting conditional variance, and have generated my log returns. Having estimated an OLS, I now need to to test if there are ARCH effects. Should I test at lags 1, 5, 10? Or is 1 lag...
I am doing an analysis using logistic regression and my odds ratio is going pretty high. When I use a combination of the three IVs, with three other control variables, odds ratio for one of the IVs is 62, which I guess is pretty high. Variables in the Equation B S.E. Wald df Sig. Exp...
The wikipeda-page for AIC states: "it (AIC) deals with the trade-off between the goodness of fit of the model and the complexity of the model". If I understand this correctly, this means that AIC is not a measure of goodness of fit, but merely includes a term (the maximum likelihood) which evaluates goodness of fit. ...
I understand the idea behind momentum, and how to implement it with batch gradient descent, but I'm not sure how to implement it with mini-batch gradient descent. As I understand it, implementing momentum in batch gradient descent goes like this: for example in training_set: calculate gradient for this example ...
Although I am aware that percentage points should be used to describe arithmetical differences between two percent figures, I could not find a satisfying literature reference. Can anyone recommend an encyclopedia with a definition of percentage points (besides wikipedia, I know the entry)?
Trying to test code creating P-value manually against SciPy. The Scipy Documentation isn't the best, which makes it tought to know for sure what to do. I am getting the correct t-stat and P-value with SciPy, but I'm not able to replicate the correct p-value manually - A friend steered me to scipy.stats.t.ppf - but I'm ...
I'm exploring the Titanic dataset as my first experience of a Kaggle. Firstly, I want to test that the training and test sets were indeed sampled randomly from the population. For continuous variables, I considered the two sample Kolmogorov-Smirnov test and the Wilcoxon rank-sum test. Which of these is more appropriate...
I am very confused about the effect of sample size on statistical and practical significance levels. I have two questions about them: 1. Can somebody explain the p value variation with sample size intuitively and mathematically. 2. Lets say I increase my practical significance from 2% to 3%. How would that effect the ...
I am currently working on a classification plus regression problem on a dataset with over 500 predictors. Each predictor has on average 15% in-range values (above a defined threshold of signal detection. The rest of the values are simply represented as "out-of-range". This represents a scenario of censored data. I woul...
This thing appeared in my lecture on autoregressive models (AR1). It talks about how $$y_t=\alpha + \phi y_{t-1} + \varepsilon_t$$ can be written as: $$\Delta y_t=\alpha + \rho y_{t-1}+\varepsilon_t \ where \ \rho=\phi-1 $$ Now I'm okay with this information but then this statement appears: Stationarity condition $|\...
We have panel data and we want to estimate the following linear model: $Y_{it}=βX_{it}+\alpha_{i}+\epsilon_{it}$ Suppose that, for some reason, we must estimate this model by the maximum likelihood random effects estimator. In addition, suppose that we have autocorrelation in the disturbances. Do we need to explicitly ...
The Gist What are some methods of quantifying "interaction" among features for a model? I will give two short motivating examples to clarify what I mean by "interaction". Motivating Examples With a linear model, it is likely that a few features will dominate some of the other features to some degree. This does not nec...
I have some data (14000 examples, with 1000 features, very sparse). My goal is to predict 50 binary values for each example, and there usually are multiple positive values. I want to train a logistic regression and a feedforward neural network, but to do so I need a smooth loss function - meaning a function that has a ...
We are planning an experiment to study the effects of new drugs on animal models of epilepsy. The experiment will be in run in 2 phases. The hypothesis in Phase 1 is: "Animals receiving Drug X experience a reduction in seizures." Experimental design: One group of control animals and 5 groups of test animals, each recei...
I know, that the "ordinary" McFadden's pseudo-R2 can be computed like this: $$ R^2 = 1 - \frac{\text{Residual deviance}}{\text{Null deviance}}, $$ but today I've read about adjusted McFadden's pseudo-R2 here and I thought if it's possible to compute it like this? $$ R^2_{\text{adj}} = 1 - \frac{\text{Residual deviance}...
Pardon me for the newbie question, I'm new in Bayesian network. I'm reading Chapter 10, Directed Graphical Models (Bayes nets), of Kevin Murphy's textbook: Machine Learning, a Probabilistic Perspective. Some discussion about using Bayes ball algorithm to test if d-separation holds between two nodes X, Y (or two sets of...
I was wondering how recommendation on youtube work for example? How are the algorithms applied, because every user gets different recommendations depending on his location, his past liked videos etc... So it would seem like a training model is applied to every single user but I know that can't be possible so how are th...
I am currently trying to find some sort of relationship between two variables. The most obvious way to check for an association between two variables is by examining the correlation coefficient, which I have done. I have also fit a linear model to my data and have come up with a mean squared error value of approximatel...
My question is simple, what is the difference between reset test and link test? My understanding of reset test is that it tests the correctness of the functional form by incorporating square, cube etc. of explanatory variables $X$. Link test on the other hand regress the dependent variable $Y$ on predicted variable $\h...
I have a dataset in which a variety of values are measured at a series of times, and I have some distance function that will calculate dissimilarity between these measured values. For example, d <- data.frame(t = round(seq(0, pi, length.out = 12), 2)) d$x <- round(sin(d$t), 2) d$y <- round(d$t * 0.5 + 1, 2) dissim <- f...
I'm using statsmodels.nonparametric.KDEMultivariate to generate continuous probability distributions with kernel density estimation. The distribution is created using statsmodels.nonparametric.KDEMultivariate(data=[time, measurement]) to create a distribution, and then if I want to find a discretised most likely measur...
Does anyone have any good reference for beginners in WinBUGS about modeling? I already have some familiarity with R, but I had never used R2WinBUGS before. I'm interested in making beta, beta rectangular, and simplex regression models. Although I have found some ready-made templates codes, it is very difficult without ...
I'm using Metropolis-Hastings to sample from an Inv-Gamma$(a,b)$ posterior distribution. My jumping distribution $J_t(\theta_*|\theta_{t-1})$ is N$(\theta_{t-1},0.5^2)$. After I sample a $\theta_*$ value from the jumping distribution, I compute the acceptance ratio $$r = \frac{p(\theta_*|y) J_t(\theta_{t-1}|\theta_*)}...
I'm dealing with a classical machine learning classification task. I'm using the sklearn library. My question is about the correct use of the test, development (can be intended as validation?) and train data with some API function of the library in the following example: # given X_train, X_dev, X_test as data and y_tra...
I was wondering if a variable can be a combination of two dichotomous variables? For example, supposed I am looking at a group of patients with a specific mean blood chemical level, let's say cotinine, that also answered yes to having condition A=emphysema and condition B=lung cancer. Can we look at mean levels of cot...
Let $X_i$ be an iid random variable having pdf $f(\mathbf{x}|\theta)$, where $E(X_i) = 6\theta^2$, and $\theta > 0$. I have calculated an estimator for the parameter ($\theta$) of $f(\mathbf{x}|\theta)$ to be $\hat{\theta} = \sqrt{\bar{x}/6}$. To prove that this is an unbiased estimator, I should prove that $E(\hat{\t...
I believe the header asks it all. In this case, I am assuming I am using euclidean distance for KNN as well. Therefore when KNN = 1, I should be looking for only the nearest point, which should be the same as the minimum euclidean distance classifier, correct? Thanks!
What is the difference between an avplot and a termplot? Let say I run the following model in R: sex <- rep(c("Male", "Female"), times= 500) value1 <- runif(1000, min=1, max=10) value2 <- runif(1000, min=1, max=100) value3 <- runif(1000, min=1, max=200) response <- runif(1000, min=1, max=100) df <- data.frame(sex, res...
\begin{equation} \begin{split} p(x_{1:t}|y_{1:t})& = \frac{p(y_t|x_{t}) p(x_{t}|x_{t-1}) p(x_{1:t-1}|y_{1:t-1})}{p(y_t|y_{1:t-1})} \end{split} \end{equation} \begin{align} \label{eq:filtered_recursive} p(x_{t}|y_{1:t})& =\frac{p(y_t|x_{t}) p(x_{t}|y_{1:t-1}) }{p(y_t|y_{1:t-1})} \end{align} I want to clear up the info...
There are two available packages for estimating multinomial logit models in R, namely mnlogit and mlogit. I am wondering whether someone who used both can share his experience. Which one is better / more commonly used? Are there some advantages to using one of them? How do the packages deal with pannel data?
Let $X_i$ be iid exponential random variables. I want to calculate $Var\left(\sqrt{\bar{X}/6}\right).$ The idea I had to simplify this is expressing it as $$Var\left(\sqrt{\frac{\bar{X}}{6}}\right) = E\left(\frac{\bar{X}}{6}\right) - \left[E\left(\sqrt{\frac{\bar{X}}{6}}\right)\right]^2.$$ This still leaves me with th...
During Gibbs sampling, I need to sample a multivariate Gaussian distribution. But rmvnorm return errors sometimes because the covariance matrix is not definite and I found the determinant of it is, say, $-10^{-20}$. I suspect this is caused by the numerical errors. What should I do to handle this?
I have some troubles with the following. I'm trying to find a MLE for $\alpha$, when $X_i \text{~} Exp(\theta)$,$\mu=1/\theta$ and $\log(\mu)=\alpha$. Also $n=30$. i.e. $\mu=e^{\alpha}=1/\theta$ $\implies \log(\mu)=\log(1)-\log(\theta)=\alpha$ $\implies \log(\theta)=-\alpha$ $\implies \theta=e^{- \alpha}$ where $\mu$ i...
Time series regression function looks very similar to the "regular" linear regression. But they're different. TS regression has auto correlation issues, but regular linear regression assume no auto correlation. My question is, what's the relationship between these two regressions? What's the similarity and the differen...
I have 6 ratio variables. This gives me a total of 15 correlations. I do each one of these correlations with bootstrapping methods, generating 15 confidence intervals, of which 3 are significant because they do not encompass zero. These confidence intervals also come with a t-score. Should I do Bonferroni on these by s...
I am using genetic matching, implemented through the MatchIt package (dependent on Matching and rgenoud), in order to evaluate causal effects of a particular treatment (binary categorical variable) on a binary outcome. I used mice to multiply impute 5 datasets, each of which subsequently underwent genetic matching in M...
So I'm trying to figure out the MLEs for parameters $\alpha$ and $\pi$, when $L(\alpha, \pi)=[e^{-n\alpha} e^{-e^{-\alpha} \sum{x_j} }] \times \pi^m(1-\pi)^{n-m}$ and if all data exists, then $\hat{\alpha}=\log(\bar{X}).$ Is there some result that I can use to infer $\hat{\alpha}$ in this missing data case, if I know ...
In the book Forecasting with Exponential Smoothing by Rob J. Hyndman it is mentioned that there is a heuristic method to get the initial states for ets models, prior to the optimization of the likelihood function. Regarding the seasonal component, the method says that being $m$ the length of the seasonality, one must ...
As part of a project I needed to run separate multilevel proportional odds models independently for different years in my data using meta-analysis. I want to pool the estimates across studies. All continuous variables in my models were grand-mean centered and z-score transformed. I have the luxury of every independent...
I have two empirical distribution A and B (i.e. two continuous datasets in $\mathcal{R}$) and I am trying to set up a hypothesis test to test if a new data point is from distribution A. Naturally this calls for a likelihood ratio test. I was planning on setting the test as $$ H_0: \text{the new data point is from dis...
I am reading the chapter 3 of Sutton's book Reinforcement Learning: An Introduction and I am confused by episodic task and continuous tasks. In reinforcement learning, how to distinguish episodic task and continuous tasks?
I have a training data set on which I use Latent Dirichlet Allocation(LDA) to generate topics. I would like to use this model on other documents and see how similar they are to the training data. I would like to know how to go about doing this? I was able to generate topics on the training data set. Gensim gave me a to...
Im working on a project which use fuzzy-model based fault detection and isolation technique to detect and diagnose possible fault occurrence on multiple types of sensor. I got stuck with the scheme of fuzzy-model based fault detection and isolation system itself. Ive been searching all over the Internet but i got no cl...
I am trying to simulate seasonal ARIMA models of order (0,1,1)(0,1,1)12 with fixed variance. Firstly I was using the arima.sim using 12 lags for specifying the seasonal part, like: y <- arima.sim(list(order = c(0,1,12), ma = c(-0.8,rep(0,10),-0.8)), n = 189, sd = 0.2) However I see this is not working, I think because...
I find the documentation and tutorials on the Internet surrounding ImageDataGenerator (the data augmentation function for Keras) to not really explain much at all how it works. Following the instructions here also leads room for a lot of interpretation: https://blog.keras.io/building-powerful-image-classification-model...
I don't understand the equation of loglikelihood of the observed data in graphical models with hidden nodes that appears in "The Elements of Statistical Learning" (Hastie, Tibshirani, Friedmann, chapter 17.4.2) In the equation we sum over possible values of $x_h$, but $x_h$ doesn't appear anymore in the equation. Wher...
I do not understand the formal proof that the Metropolis Hastings update generates a Markov chain that satisfies detailed balance as it is given in the the Wikipedia article. Under "formal derivation" it states that $$\frac{A(x'|x)}{A(x|x')}=\frac{P(x')}{P(x)}\frac{g(x|x')}{g(x'|x)}$$ is fulfilled by the acceptance pro...
The original question (that can be seen at the bottom of this post) was replaced by this first edit (below) EDIT I I give more details about my problem. First of all let suppose to have K vectors $\boldsymbol{\omega}_k = \{\omega_{i,k}\}_{i=1}^n$, $k=1,\dots ,K$ of length $n$, distributed as multivariate normals: $$ \b...
I'm trying to visualise relations, i.e. of which "parts" (e.g. products, technologies etc.) a website is built upon. I was thinking of a chord diagram (maybe built with d3.js so the viewer can hover about a specific field and the rest will be greyed out). Do you think this is a good idea? Like here: Visualising relati...
I have two independent lognormal random variables $X$ and $Y$ with known means and variances. I would like to know the expected value and the variance of $\ln\big((X+1)/(Y+1)\big)$. If there is no exact solution, is there a means of approximation? I have tried a Taylor expansion on $\ln(X+1) - \ln(Y+1)$ as suggested in...
I'm confused about the resampling statistics obtained via the train() and trainControl() functions in R's Caret package. My goal is to perform cross-validation on a machine learning model for a time series by splitting the series into adjacent training/testing sets, ultimately enabling me to tune individual models and ...
I'm new to econometrics and I'm having a hard time answering if the following statement is true or false: "In regression studies, making adequate identification assumptions is sufficient for identifying causal relationships between the variables of interest" After some reading, I've come to this answer: -Strucutural co...
I have a data generating process (DGP) of the following form: $ y = \beta_r f(x_r) \times (\beta_1 \times x_1 + \ldots + \beta_n \times x_n) $ The DGP reflects some factor loadings ($x_1 \ldots x_n$) and their coefficients $\beta$ that are scaled by some function $f(x_r)$. I would like to estimate the coefficients wi...
I need to predict the impact of a set of node failures in a network, based on 2 features: the fraction of failed nodes and a measure of their network centrality. Failure of less important nodes will have low to no repercussions, while failure of important nodes can bring down the whole network. The predicted output sho...
Suppose you have a binomial experiment with 1 million trials and chance of success 0.25. At the end of the 1 million trials you record the number of successes. You repeat this experiment 100 million times, independently. What should you estimate the sample mean of succeses and sample second moment of success to be? I g...
Non-statisticians tend to use step-wise regressions which is strongly argued by statisticians. This is something that I don't understand (unfortunately, I am not a statistician), but I just obey them. "Ok this is not a good way to do your modelling". Here is (was) my model: b <- lmer(metric1~A+B+C+D+E+F+G+H+I+J+K+(1|X/...
I have a matrix of interactions (1), avoidance (-1) and no interaction (0). I would like to cluster the matrix. I used hierarchical clustering but I was not very satisfied with the results. Any alternatives? Is is possible to use Louvain community detection with different interactions types? Example matrix: Im1 -1 1 0 ...
In my model I estimate the cross level interaction between: micro level variabel: hours spent on paid work (0 to 84 hours) macro level variable: income compensation for parental leave 0 = no compensation, 1 = some compensation, 2 = high compensation on Y men's hours spend on housework. I use a ordinal coding of 0-2 for...
I'm working on a stats project, but in the assignment there is some notation I haven't been able to find in the book or googling. in the below, I don't know which equation N(u,o^2) refers to; with mean $= E(X)$ and $\sigma^2 = \text{VAR}(X)$ for $B \sim \text{Bernoulli}(p)$ with $p = 0.4$. I'm attempting to find out ...
Suppose i have an 10 images with 100x100 pixels. I have already converted the data into a 10x10000 dataset, subtracted the mean and performed SVD to get the eigenvectors and eigenvalues. Now i want to display the first and second principal components as images but im not sure how ? Would it just be the eigenvectors or ...
This question appears in my textbook in a section on unbiased estimators. I know how to solve it; I'm not asking for help with the solution but for deeper understanding of the question: Consider a random sample $X_{1},...,X_{n}$ from the pdf $f(x; \theta)=.5(1+\theta x)\quad -1\leq x \le 1$ where $-1\leq \theta \le ...
You have a shuffled, standard 52 card deck with 4 Aces. You draw a random card without showing it, and without replacing it into the deck. What is the probability that the next card will be an Ace? What is the formula to calculate this?
I'd like to find a readable reference (code or algorithmic description) for the sampling (méthode des quotas) and weighting (redressement des résultats bruts) algorithms used in political surveys. In french the sampling method used in surveys is named "méthode des quotas" which means selecting a survey panel whose pro...
I am conducting an experiment which looks at between-within subjects. There are two groups (participants will either use an iphone and android in the experiment) and they both have 4 short tasks to complete which will look at speed of completion. I am using split-plot/ mixed-design anova. Before they completed the task...
I am an economics student with some experience with econometrics and R. I would like to know if there is ever a situation where we should include a variable in a regression in spite of it not being statistically significant?
I'm looking at 80k samples representing results of a test after a fixed period of time. I think it looks like a combination of normal curves. I see a fair amount of documentation about combining two normal distributions when you are given the distribution properties, where I'm having trouble is determining the dist...