instruction
stringlengths
9
38.7k
I have just got back a manuscript with a comment from a reviewer that has been puzzling... I am getting data for two neuroimaging modalities (A, B). For each modality I have information for 8 regions of the brain. Moreover I have baseline and follow-up data for 16 patients. Therefore 256 observations. The reviewer is a...
I'm trying to find whether there's a correlation between two variables using Chi Square test and Fisher's Exact test. I get two different p values when I run Chi Square test and Fisher's Exact test. Which value should I take? Take Chi squared p value and do not reject H0 or take Fisher's Exact p value ad reject H0? I r...
I have sample data below for 10 groups and I report the number of observations (count), mean and standard deviation below. group= 1:10 count = c(41,640,1000,65,30,4010,222,277,1853,800 ) mu = c(.7143,.66,.6441,.58,.7488,.5616,.5507,.5337,.5513,.5118) sd = c(.2443,.20,.2843,.2285,.2616,.2365,.2408,.2101,...
I have a cohort of 1185 breast cancer patients - 40 patients are <40 years old, and 8 patients developed local recurrence (2 of which are <40). I want to see if there is any association between age <40 years and the risk of local recurrence. Are these numbers too small to do such analysis? When I try to run KM analysis...
I have two time series X and Y and their correlation. If I am given x at a particular time, how do I find out what y at that time should be? Is it finding the expected value of y, E(Y|X=x)? If so, how do I do it? Thanks
I have an imbalanced dataset (99%-1%) and am trying different approaches to optimize the F1 score. My question is about SVM and the possible difference between tuning the Cost parameter and to use SVM as a the cost sensitive learner. My guess is that: In Cost sensitive learning the misclassification costs for the mino...
Let $X_1 \cdots X_n$ be a random sample from a distribution $f(x) = e^{-(x-\theta)}, x>\theta, -\infty<\theta<\infty$. Let $Y_1 = \rm{min}\{X_1 \cdots X_n\}$. Is $Y_1$ unbiased for $\theta$? I'm stuck on finding the expected value of $Y_1$. I have the pdf as $f_{Y_1}(y) = n e^{-n(y-\theta)}$, but cannot find the integr...
I am using GLM for modeling the binary data. For the predictive variables I am using different number of Zernike Basis functions. To test how many Zernike basis functions I need, I am using AICc/BIC to choose the best model. For example, I use k={1,2,3,...,20} basis functions and AICc chooses the model which has k=5 ba...
Why haven't VGG's config (https://arxiv.org/pdf/1409.1556.pdf) one max pooling layers after each conv layers?
I am using cost matrix for an unbalanced set -70% (not enrolled: 0)-30% (enrolled:1) : error_cost <- matrix(c(0, 1.5, 1, 0), nrow = 2) I have not being able to runprROCR = predict(SfEnrollModel12,Samford1316_test,type="prob")[,2], which I think would give me the probability for each prediction; is that right? The only ...
Say I have a set of $N$ distinct and independent sources of noise. Each source, $X_{n}$, follows a normal distribution with individual means and variances. \begin{equation} X_{1}\sim\mathcal{N}\left(\mu_{1},\sigma_{1}^{2}\right), X_{2}\sim\mathcal{N}\left(\mu_{2},\sigma_{2}^{2}\right), \dots, X_{N}\sim\mathcal{N}\left(...
I am struggling with formulating a multilevel model for my analysis and would really appreciate if you could give me some insight. This is a 3-level model where the response (Y), exposure (X), and other covariates I will control for, are all numerical. Y is an individual (level-1) variable, I have no level-1 variable t...
I have 4 conditional correlation matrices $C_1, \ldots, C_4$. I want to test each entry in the $k$th matrix, say $\hat{r}_{ij}^{(k)}$, against a reference value $r_{ij}^{0}$ value in a matrix $C_0$. I do this by checking whether $$-n_{k}\log\left[1 - (\hat{r}_{ij}^{(k)} - r_{ij}^{0})^2\right] > 3.841$$ which is the cr...
What is the relation between correlation and time-series signal complexity? For example, I was reading a paper that is talking about the Multi scale entropy (MSE) and its advantages over the Shannon entropy. They present two signals, the first one is white noise signals and the second is long-range correlated white noi...
Suppose I have a toy example for linear regression set.seed(0) n_data=50 true_coeff_b1=0.37 noise_ratio=0.13 conf_int_level=0.77 x=runif(n_data) y=true_coeff_b1*x+noise_ratio*rnorm(n_data) fit=lm(y~x-1) summary(fit) confint(fit) Whats the relationship between Std. Error and Confidence Interval (as shown in red boxes...
I have a mean score of 28 out of 30 and a sd of 12 for a multiple choice test of intelligence , does this mean the test is too easy?
I carried out a binary logistic regression using glm. Below you can see the (modified) output. I included -1 to display all values, even the baseline which is used as reference category. My questions would be: 1) There are still some groups missing: For example "stfwrk" (there are 7, it only shows 6), or "Statemply...
This comes from Fivethirtyeight's riddler weekly challenge... Toddler poker is played by two players. Each is dealt a “card,” which is actually a number randomly chosen uniformly from the interval [0,1]. (It could be 0.1, or 0.9234781, or 1/π, and so on.) The game starts with each player anteing a buck. Player A...
I'm having what would seem to be quite a general and widely applicable problem but I can't find literature on the subject. Example problem: Imagine I have medical records of thousands of patients (including binaries such as smoker/nonsmoker, continuous variables such as age, height, blood pressure, categoricals such as...
What are some practical applications of the distributions of the components of an SVD of a matrix of normals? In particular, assume $Y \sim N_{n \times p}({\bf 0}, \Sigma \otimes I)$, i.e. the rows of $Y$ are iid $N({\bf 0},\Sigma)$. Then the SVD of ${\bf Y = UDV}^T$. We can study the marginal distributions of ${\bf U...
In the Marvel Movie "The Avengers," there's a scene in which Bruce Banner, looking for a piece of alien technology called the "tesseract," says that he is going to "rough out a tracking algorithm, just a basic cluster recognition." Is this a coherent thing to say? I'm a novice in statistics, but I have heard of cluster...
I would like to apply reinforcement learning method to a complicated problem which has a lot of action. And each action also has a different operating time. It means the time to switch to the next state is different for each action. I don't know how to design this experiment. Do I need to regard operation time as the p...
I tried to use the definition: $$\displaystyle φ(x) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^x e^{-{s^2}/{2}}\,\mathrm ds$$ So, according to this site: $$\int \:e^{-{x^2}/{2}}\mathrm dx=\frac{\sqrt{\pi }}{\sqrt{2}}\text{erf}\left(\frac{x}{\sqrt{2}}\right)+C$$ But by definition: $${\displaystyle \operatorname {erf} (x)={\...
Given 2 square-symmetric covariance matrices whose sample sizes are not equal, can the following equation be used to compute the combined covariance ? I have been reading this article on wiki https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Covariance but was wondering why the equation below is not rig...
Consider $\hat\theta_a$ and $\hat\theta_b$ are uncorrelated, unbiased estimators of $\theta$. In addition, the variance of $\hat\theta_a$ is twice that of $\hat\theta_b$. Show that for any constant $k$, the weighted average $\hat\theta_a(k)+\hat\theta_b(1-k)=\hat\theta_c$ is also an unbiased estimator of $\theta$. Ho...
Consider a situation which is modeled by the Poisson distribution, $P(X_i=k|\theta)=\displaystyle\frac{e^{-\theta}\theta^k}{k!}$. Find: (a) The MLE of $\theta$. (b) The MSE of the MLE. (c) The approximate distribution of the MLE from the Central Limit Theorem. Okay, so I think I solved (a): $f(X_1,X_2,...,X_n|\theta)=...
Given the following generative model $$T | \mathbf{x_i} \sim \operatorname{Exp}(\lambda_i)$$ $$\ln(\lambda_i) = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \dots$$ That is: I have observations of covariate/response pairs $(\mathbf{x}_i, t_i)$, such that $t_i$ are measurements of inter-arrival time of events, and is assumed t...
Consider a variable $X$ which is modeled by the probability density $p(X|\theta)=\displaystyle\frac{\theta x + 1}{2}$ for $-1\leq x \leq 1$. Find: (a) The MLE of $\theta$. (b) The MLE of $\hat\theta$. (c) The bias of the MLE. Okay, so for part (a): $\begin{align} f(X_1, X_2, ..., X_n | \theta) &= \displaystyle\frac{n+...
In the Metropolis-Hastings Algorithm, one usually considers a symmetric proposal distribution: $$ J(\theta^*|\theta^{(s)}) $$ where $\theta^*$ is a proposal point and $\theta^{(s)}$ is the accepted value at iteration $s$. The symmetry states that: $$ J(\theta^* = \theta_b|\theta^{(s)}= \theta_a) = J(\theta^* = \theta_a...
Suppose that $y_1, y_2$ are data drawn from a density function $f$ with parameters $\theta_1, \theta_2$ which are unknown. Suppose I applied some prior on $\theta_1, \theta_2$. Then, the Gibbs sampler states that if we know the FULL conditional distributions: $$ p(\theta_1|\theta_2, y) \ \ \ \text{and} \ \ \ p(\theta_2...
Consider a bandit problem in which you know the set of expected payoffs for pulling various arms, but you do not know which arm maps to which expected payoff. Can you design a regret minimizing algorithm that will achieve better bounds than UCB? My intuition for solving this problem is, to use UCB for a while and get...
I am doing a research about NLP and I am using RNN (Recurrent Neural Network) or CNN (Convolutional Neural Network) to encode a sentence into a vector. When using CNN, the training time is significantly smaller than RNN. It is natural to me to think that CNN is faster than RNN because it does not build the relationship...
In the Metropolis-Hastings Algorithm, it is stated that if we have an acceptance ratio $r = \frac{p(\theta^*|y)}{p(\theta^{(s)}|y)}$ where $\theta^*$ is our new point and $\theta^{(s)}$ is our old point, that $$\theta^{(s+1)} = \theta^* $$ with probability $min(r, 1)$ and $$\theta^{(s+1)} = \theta^{(s)}$$ with probab...
I have a question regarding the average value of the pairwise product of 2 ordered samples that are drawn from a random variable, $X$, which in this case is zero-mean Gaussian ($X \sim N(0,\sigma_x) $). Let $x_1, x_2, ... x_n$ be $n$ samples drawn from the random variable $X$. Let us put these samples in ascending ord...
Background information Suppose we have a dataset for a competition in 2016 here. +-------+------+------+------+ | Round | X1 | X2 | Rank | +-------+------+------+------+ | 1 | .586 | .329 | 1 | +-------+------+------+------+ | 1 | .111 | .171 | 2 | +-------+------+------+--...
Let's assume that we have samples of two independent Bernoulli random variables, $\mathrm{Ber}(\theta_1)$ and $\mathrm{Ber}(\theta_2)$. How do we prove that $$\frac{(\bar X_1-\bar X_2)-(\theta_1-\theta_2)}{\sqrt{\frac{\theta_1(1-\theta_1)}{n_1}+\frac{\theta_2(1-\theta_2)}{n_2}}}\xrightarrow{d} \mathcal N(0,1)$$? Assume...
My set up is as follows: I have a predictor x, that predicts the levels of y. Along the way, there are two moderator variables that may affect the strength of the x-y relationship. I am at a loss at how to go about trying to find if there is a moderating effect, and how strong, since there are two moderators instead ...
We're given a seasonal time series $y_t$, representing a certain metric used to measure a system's performance. The measure has a positive trend, and a considerable seasonal influence. We also know that, between $t_1$ and $t_2$, a number of changes were done to the system with the goal of improving performance. Our tas...
I'm working with neural networks. I have a number of inputs to the network which is far greater than the number of training instances ($\sim 7k$ inputs vs $700$ samples, $1$ order of magnitude, number of outputs $2k$). My question, as a newcomer to neural nets, is this: Should I diminish the size of the input layer ...
Consider the following problem: there are two variables, $X_1,X_2$ with some latent connection. Given a training data, $(x^i_1,x^i_2)_{i=1}^m$, we need to come up with a model that predicts $x^i_1$ given $x^i_2$ and vice versa. That is, in the future we will receive with probability $0.5$ the value of $X_1$ and and see...
Suppose that I have the following PDFs well-defined: $$ f_A(A), f_B(B|A), f_C(C|B,D), f_D(D) $$ From these PDFs I can deduce the following direct dependence relation: $$ A \rightarrow B \rightarrow C \leftarrow D $$ Given the above, on what grounds can I be sure that the joint probability function is correctly written...
I have the data from several countries (including my country). My problem is to compare the data from "population" (all countries) with data from my country, to answer the question: is my country a representative sample from the population, in other words, are we "similar"? So, I generate the confidence intervals from ...
Based on my understanding, panel fixed effect model is equivalent to OLS with individual dummies. However, when I ran the two models in R, the $R^2$ from the two models were quite different: 0.8 for OLS with individual dummies and 0.06 for fixed effect model. Is it the case that in fixed effect model, the fixed effects...
I have two pictures of a similar scene, and want to recognize whether it is the same scene, photographed in different times and possibly from slightly different angle. For instance, whether it is the same beach (maybe photographed from different angles and at different times) or two different beaches? Is it the same pl...
In the Metropolis algorithm, suppose I start my algorithm at time $t-1$ with a draw $\theta^{t-1}$ from my target distribution $p(\theta|y)$. It can be shown that $\theta^t$ and $\theta^{t-1}$ are symmetric in that $$ P(\theta^t = \theta_a, \theta^{t-1} = \theta_b) = P(\theta^{t-1} = \theta_a, \theta^{t} = \theta_b) ...
I am building a model to explain performance in one time period to another. I have my variables and then I have an interaction effect for those variables in the second time period. Using this data, I can then say what is the change in performance due to the change in these values ( this is split by the change in ave...
I wonder whether I can use AIC for model comparison in this scenario: Model 1: A = a + b + c B = d + e + f C = g + h + i Model 2: A = a + b + c B = d + e + f (The third factor with his indicators is missing) The AIC for the second model is much lower. I’m unsure of applicability, because a latent variable and t...
An average is a substitute for a complex group of variables but it is not always safe to depend on the substitute alone to the exclusion of individual measurement of groups.How safe is the average?
My research is about password safety. As dependent variable I have the number of attempts a software needed to crack the respective passwords. This results in values in a range from approx. 1e+5 to 1e+12. Unfortunately a substantial part of the passwords couldn't be cracked by the software but I would like to integrate...
The USGS uses a Log Pearson Type 3 (LP3) distribution to model flood frequency based on cubic feet per second (cfs) annual maximum flow data (AMAX). The result for a gauging station is the three parameters mu, sigma, and gamma (mean, sd, and skew). I have many sets of these values. However, it is usual to express river...
OK, so I have no problem with the Bayes' theorem itself and I do think that I get a lot of the simpler maths around Bayesian statistics. However, I am struggling with the idea of treating population parameters as random variables. Say someone tosses a coin. Before the toss, I estimate the probability to be 0.5. Coin la...
Say I have a model: log(Y) ~ X1 + I(X1^2) 1) Do I still need to take the log of Y if I am using the quadratic of X. I thought we need to take log to linearise the relationship between Y and X and therefore we don't need to include the squared term of X1. In a way, which of the following three models is the right mode...
If I have a grid of Chi-squared values for a grid of 5 values for 1 parameter and 5 values of another parameters (5x5), can I then create a contour plot for the confidence regions? X=np.linspace(0.01,0.1,5) Y=np.linspace(0.01,0.5,5) and Z is 25 values of the chi-squared for each fit using different parameters in a 5x5...
Most of the time-series data I'll be looking at is linear and uniform - a straightish light parallel to the x-axis. The exceptions I need to find are those that deviate recently, the last one, or two entries. These will probably be quadratic or exponential in their deviation from the straight line. Running scipy's curv...
This is more of a conceptual question, but as I use R I will refer to the packages in R. If the aim is to fit a linear model for the purposes of prediction, and then make predictions where the random effects might not be available, is there any benefit to using a mixed effects model, or should a fixed effect model be u...
I need to analyze the answers of a questionnaire where participants reported a set of motivations for the adoption of a technology. Motivations are ordered by importance and are not pre-defined. Eg. participant 1: 1) M1, 2) M2, 3) M3 participant 2: 1) M4, 2) M1, 3) M2, 4) M5 participant 3: 1) M2, 2) M2, 3) M4 We...
For example, if X follows a standard normal distribution,, what is the probability of P(X<=0.145) by using the above table only? Is it possible to tell? I remember I once encounter this situation in an exam long time ago, but I don't have a definite solution for this. Certainly, P(X<=0.145) should be between P(X<=0.14...
I have a question about model selection using cross validation. As far as I understood from many other replies related to model selection here, one should use nested cross validation in order to properly (1) select and then (2) assess a model. But almost all these questions were about relatively small data sets, so I ...
Let $Z\sim\mathcal{N}(0,1)$. Let $X$ be a random variable defined as $X:=ZI_{Z>0}$, where $I_{Z>0}$ is an indicator random variable for the event $\{Z>0\}$. How do I find $\mathbb{E}[X]$? Here's my attempt. Let $\Omega$ be the sample space on which $Z$ is defined. The random variable $X$ is a product of two random va...
What would you go for in assessing collinearity - correlation or VIFs? Say you run pairplots and calculate Pearson correlation coefficients between pairs of explanatory variables. Two of them have a correlation coefficient of around 0.8, which is rather high. This would suggest that including both variables in the same...
I'm trying to learn how to classify bio-signals, and I'm starting with EMG signals from hand gestures, since a lot of data exists on this topic. My problem is understanding how test the probability of a new EMG recording to belong to a class. I've read the article "A robust, real-time control scheme for multifunction m...
I am using the WOE technique in logistic regression. Using Information Value (IV) of the variables, I am considering the variables with IV > 0.1 and discarding ones with < 0.1 I feel even the multiple-variable selection techniques like stepwise regression also does the same. I found an R package 'Information' documen...
I have generated different scenarios which depends on certain parameters $x_1, \dots, x_k$. I have evaluated each scenario with different methods. Summarizing, I have a value $S(m,x_1, \dots, x_k)$ depending on the method, $m$, and the parameters used to generate scenario. What is a good practice to summarize the resul...
Take a n-armed bandit setup. When agent pulls an arm, the environment reveals rewards of all arms at that time step. My question is will existing algorithms work well in this setting ? Can we take advantage of all the information revealed to us ?
I am trying to implement a paper, and at some point I ran across the following: (...) where both $\phi$ and $\phi^*$ have been normalized so that $\mathrm{E}[\phi^2(g)]=1$ and $\mathrm{E}[\phi(g)\phi^*(g)]=1$. In this context, $\phi$ and $\phi^*$ are functions on $g$ that map to $\mathbb{R}$. Question: Is there a uni...
If I have two values A and B which are both expressed as a percentage of C, and I want to express the difference in magnitude between A and B as a percentage D, is it more correct to express D as a percentage of C, or as a percentage of B (or indeed A)? 50 unemployed people is obviously 50% bigger than 25 unemployed pe...
For a long time I have been doing chemometrics using Partial Least Squares regression to predict the composition of samples based on their spectra, and calculating the root mean squared error (RMSE) as an estimate of the accuracy of the model. I am now looking into using gaussian process regression to do something simi...
I'm working on an ecological study, where I've got 10 years of data for all 3000+ counties in the US. I'm interested in different perspectives on whether in a study like this one should weight the counties based on their population (of interest). More specifically, I'm modeling the relationship between drug prevalence ...
I have read good things about genetic algorithms and convolutional neural networks when it comes to object recognition. I would like to train a software to recognize any computer that has ever been on my computer network without looking at the mac address because it can change.Typical object recognition. What would b...
What would be the ideal solution to syncing gps coordinates (511 data points) to another dataset (36913). This happens because the gps data does not sample at a consistent rate, and instead is event-based. What I want to do is to up-sample the GPS coordinates to match the other dataset by producing duplicates of itsel...
I've conducted a Meta-Regression Analysis for my Masters Thesis. However, my supervisor told me that I should check if the proposed moderating variables highly correlate. So I thought, that I can assess multicollinearity with the use of the Variance Inflation Factor. There are numerous examples on how to calculate VIF...
Is it possible to easily build a Skewed Normal Distribution with these 3 parameters? -Mean (or median) 99.7-th Percentile for data to the left of the mean (median) 99.7-th Percentile for data to the right of the mean (median) In other words, since it is practical to build the classical Normal distribution having an i...
The below graphs denotes the relationship between prices (relative to the United States, so that US=1) and economic out per capita (also relative to the US, so that US=1). The author graphs the relationship in level-level terms, but overlays a regression in log-log terms. In order to claim a positive association betwe...
I work with event sequence. Let's say I observe LED blinking. My sequence will look like black spikes on figure. Intervals between events distributed similarly (but not absolutely) to $\gamma$ with coefficient of variation 0.6-0.7. (Mean and $\sigma$ may vary). Next, I divide sequence for several bins of the same dur...
I would like to implement TreeLSTM in Theano run on tree-structure dataset (like Sentiment Treebank). However, I have trouble implement the tree structure. I have done a simple example of the tree-structure computation graph. Given the binary tree, each node has its value. For each node, I would like to calculate h = ...
I am trying to figure out the effect of two independant variables (country and device_type) on a binary dependant variable (conversions). I am running a logit regression on a dataset with only the independent categorical variables. Both of these variables have several values. The event (conversions) occurs approximatel...
Is it possible to have a dataset having a normal distribution with mean close to 0 and standard deviation less than 1? for eg, my dataset have mean 0.0004 and Standard deviation of 0.0089. The reason for asking this, is that normally the standardized normal dist have mean 0 and standard dev of 1.
I have a situation where I want to automate the process of determining the order of seasonal differencing for time series data. The problem is I have been solving this in python and I didn't find any seasonal unit root tests written in Python. I didn't even find any way of ARIMA order(seasonal) determination technique ...
Suppose we were interested in projecting Team A's expected points in a given game. Lets say, on average over a very large sample size, they score 3 points a game against an average team. Then lets say that Team B allows 2 points a game against an average team. Finally, we will say that the average team scores and allow...
So I was working on a problem where I am provided with a PMF $p_X(k)= c/3^k$ for $k=1,2,3....$ I was able to calculate $c$ using the basic property of PMF and it came to be 2. I am not able to solve the next part which states that "Find $P(X\ge k)$ for all $k=1,2,3......$. Any suggestions? P.S :Here is the actual quest...
Let $(T_{1},T_{2})\sim N_{2}(\mu_{1},\mu_{2},\sigma_{1}\sigma_{2},\rho)$ and consider the model: $$Y=\left\{\begin{array}{l} T_{1},\quad \textrm{if}\quad U=1\\ \ \ 0,\ \ \ \ \textrm{if}\quad U=0 \end{array}\right.$$ where $$U=\left\{\begin{array}{l} 1, \quad \textrm{if}\quad T_{2}>1\\ 0, \quad \textrm{if}\quad T_{2}\le...
The degrees of freedom calculated for my problem, and the degrees of freedom in R output are different. This is a Factorial RCB with 3 reps, 7 treatments and 2 levels. Here is my output. Df Sum Sq Mean Sq F value Pr(>F) fRep 2 1391.9 695.9 3.6847 0.043417 * Treatment ...
Deep learning for 1D/2D inputs usually assume some sort of local connections, whether it is using local filters, or recurrent connections etc. What if for our problem we think a connection between neighboring values/pixels is as likely as one between those far away? Suppose we get a signal with time values (or an image...
As I understand it, $\text{standard error} = \frac{\text{standard deviation}}{\sqrt{n}}$, where $n$ is the number of observations. I also know that $cov(\hat{\beta}) = \sigma^{2}(X^{T}X)^{-1}$; this is a pxp variance-covariance matrix. So why is the standard error of the components of the coefficient estimate vector $\...
I'm running a standard financial time series analysis - calculating multi-variate OLS against 6 different factors on a monthly returns oriented time series. The time series seem to be pretty well behaved, with 1 or 2 lags of autocorrelation and some skewness. In looking at the monthly residuals (e.g. excess returns / ...
Say I have two vectors with associated errors and I want to determine the uncertainty of slope of a linear regression using a simple monte carlo approach. I'm using the following code (suggestions for improvement welcome). x <- seq(0.1, 10, by = 0.1) y <- seq(1:100) # uncertainty of x and y sd.x <- 0.5 sd.y <- runif(1...
The voltage (in volts) of a given circuit is a random variable $ X $ that is normally distributed with the parameters $ μ = 120 $ and $ σ ^ 2 = 4 $ If three independent measurements are taken, what is the probability that the three measurements are between $ 116 $ and $ 118 $ volts? My idea is to first get a probabili...
Setup I need to model some event, that actually does not seem to fit a distribution, or maybe a Tweedie, it seems to be a burning cost model. And so I have a prediction made by a GLM. Every observation is one realisation of an individual, and these individuals have observations that are either of group D, or group N. I...
The hierarchical dirichlet process (Teh 2005) allows you to discover unlimited topics to describe a document. An alternative process, the Indian Buffet process (Griffiths 2011) is another nonparametric method that allows you to find hidden features that are combined together to explain the data. My question is, can th...
I am very interested in developing a machine-learning algorithm that could learn from the axioms, properties, and examples of the mathematical conjectures of interest to generate possible key properties of possible proofs, which AI could then deduce the proof sketches. I am curious what kind of research has been done ...
The following paragraph is taken from p24 of the book The Elements of Statistical Learning, 2nd.Ed by Hastie, Tibshirani & Friedman, where $X$ and $Y$ are random vectors, and bold $X$ is the $N \times p$ matrix of data: In other words, it is claimed that $$x_0^T (\hat\beta-\beta)=X(X^TX)^{-1}x_0\varepsilon$$ Why is th...
I have two vectors of same length. The first vector is a collection of realization from an unknown random variable. The second vector is the distribution computed at each particular realization. A numerical example is: A <- runif(100, min = 0, max = 10) B <- punif(A, min = min(A), max = max(A), lower.tail = TRUE, log.p...
Is it possible to extract the specific mathematical equation behind a best GAM model? A generalized example: If for example I'm interested in regressing y ~ s(w,k=A) + s(x,k=A) + s(z,k=A) and then predicting y based on the non-linear relationships of w, x and z. I know I can use the predict( ) function to come up with...
It appears to me that whenever I read in the literature about Moran's I having limits between -1 and 1 for row-standardised, symmetric weight matrices, it is typically presented as a "well known fact", but not quoted with a proper source with derivation. I'm looking for such source, since in my field Moran's I isn't of...
I am trying to determine if results of a survey question for two different departments is significant. The question is "Were you fully satisfied by the service you received today?" Answer is Yes / No. Department A: 52% of 141 customers were satisfied with their service Department B: 67% of 233 customers were satisfie...
I need to write a revision on some regression methods, between them the K-Nearest Neighbors regression. So far I've found a few papers that apply this regression method, however without detailing them. These papers also don't point to any resource that discusses it deeply, maybe because it's a widespread model? Can som...
I am not 100% sure this belongs here, but it is a stats question. I am reviewing a paper that conducts a 2-way PERMANOVA with interaction and performs a post hoc test. My problem is arising from the reporting of the results of the posthoc test. They tested the general model (distance matrix)~(TIME)*(TREATMENT). They fo...
I am currently doing a thesis on the impacts of oil prices on the macroeconomy. The literature suggests that there is a negative relationship between the oil price and the GDP. After running a basic regression, my results contradict this theory: With GDP as my dependent variable, the coefficients of the independent va...
In VAR models, when we check for autocorrelation on the residuals, what is the desired result? Should residuals be autocorrelated, because it is time-series, or autocorrelation is not good?
I have to perform a linkage disequilibrium test between pairwise of SNPs. I have 3745 SNPs in 170 genotypes. Which one of the packages would you recommend or have experience with and, Most importantly; how do I have to set my data matrix to use well the package and functions (rows&columns).