instruction
stringlengths
9
38.7k
I want to split my sample into a training and a testing set in order to cross-validate my findings. However, I am not sure in which point in the process I have to do the split. Here is the order I want to do the analysis: Descriptive analysis on the whole sample Split into training and testing set Correlation analysis...
I came across the following question: What is the mean distance between two points in the unit square? Disclaimer: I would very much appreciate not getting hints regarding how to solve this problem, but rather I would like to get help with the path I chose. It is easy to solve this problem numerically. Either with Mo...
so I am trying to see whether there is a breakpoint in my data set at a certain time. Basically I have 200 data points and am wondering if there is a breakpoint at t=100, ie whether the slopes of the two regression lines change significantly. Le the slope of line 1= b1 and the slope of line 2= b2. I want to see whether...
I am using the scikit-learn library to perform regression. However in my case I need the dependent variable to be constrained in the range 0 to 1. The dependent variable represents count proportions (counts in some category divided by a total count) and is there not continuous. I can see two ways to achieve this. Tr...
I have a dataset of daily sales data (day 1 to day 365) with a number of factors influencing sales. I would like to identify structural breaks in sales data to group them in a sensible manner (day 1 to 60, day 61 to 200, etc) based on a) only univariate time series excluding features b) including features. The grouping...
Sorry if this is a basic question but I have not been able to find any meaningful answers so far. I have a numerical variable that I would like to convert into a factor, in order to do profiling and other things later on. My questions are, based on what criteria do I decide how many categories to create? Are there eve...
I have ethnicity from two different data sources distributed over 5 categories. One data source provides it at a higher level, and covers more population. Second data source provides it at a lower level, and covers less population. But since it is at a lower level, it could be more accurate at that level. For example:...
Sorry if this question is poorly composed due to lack of stats knowledge. Any advice to point me in the right direction would be greatly appreciated: I'm hoping to detect if a dataset originated from the same or different populations as another dataset. (If we assume different subjects behave very differently, while th...
I am a statistics novice. I therefore kindly ask for your understanding with this basic question: I want to cross validate the results of my logistic regression. So far I have divided the overall sample into two sub-samples (testing and holdout). I have run the logistic regression on the testing sample and afterwards r...
For my thesis I am doing a quantitative research where I use the logistic regression. To improve the validity of my findings, I am cross-validating the logistic regression with a holdout sample. The question that I have: do I need to publish the results of the model on the training data or is it enough to focus on the ...
In a town with 5000 adults , a sample of $100$ is asked about their opinion on a proposed municipal project , $60$ are found to favor it and $40$ oppose it. If in fact the adults of the town were equally divided on the proposal , what would be the probability of obtaining a majority of $60$ or more favoring it in a sam...
In a comment on another question, clarification was asked if the topic under discussion was "count proportions" or "continuous proportions", and a followup indicated that the difference was critical information (to the topic of logistic/binomial vs. beta regression). What is the distinction between the two, and where d...
Suppose we have a training dataset with $s$ instances, and we split it to 2 sets, of lengths $n, m$ such that $s = n + m$ . We train two perceptron models $p$ and $q$, both are defined by a k-dimensional vector of weights, $w_1$ and $w_2$. Such that $p$ was trained on $n$ instances, and $q$ on $m$ instances. In order t...
I would like to run logistic regression with categorical variable. My variable assumes the following categories x={red, green, blue}. So I have options to use two different encoding for them: red = (1,0,0) green = (0,1,0) blue = (0,0,1) or I can encode them as red = (1,0) green = (0,1) blue = (0,0) I am trying to fi...
Caveat: this is just a thought that occurred to my while I was driving to work, so maybe it's not well-considered. One challenge to deep neural networks is the credit assignment problem: a node at one layer might have many, many inputs from previous iterations of the network, so disentangling how to adjust parameters d...
I am looking for a book (English only) that I can treat as a reference text (more colloquially as a bible) about probability and is as complete - with respect to an undergraduate/graduate education in Mathematics - as possible. What I mean by that is that the book should contain and rigorously address the following top...
I am unsure about the interpretation of a linear model which contains variable $x$ at time $t_1$ and the difference from $x$ at time $t_2$ and $x$ at time $t_1$: $$y = \alpha x_{t1} + \beta x_{diff} + \epsilon$$ where $x_{diff} = x_{t2} - x_{t1}$. At first I was tempted to interpret the model the "usual" way. I would h...
In order to create a decision regression tree in python, I'm forced to convert the categorical fields (like GEO, device type...) to numerical values before inputting the data into the model. Would that effect the model in any way? Are they any other models that could be used in order to perform regression using mainly...
I have a classification problem where my dependent variable has 3 possible values. They are ordered variables. I have been using trees and random forests in R to tackle this problem, but have to convert the problem into a binary one, so i'm predicting if the dependent variable is or isn't 1, then is or isn't 2, then is...
How do people use stacking or meta ensembling with cross validation in practice and in machine learning competitions like on Kaggle? Here are two approaches I've seen (but maybe neither is correct?) Method1 (probably introduces a leak) splits: A B C First Layer Models fit {KNN, SVM} on [A, B], predict on C -> C' fit...
I've been experimenting with the coin package for doing the randomization equivalents of parametric tests. I've been trying to do a randomized version of an ANOVA analysis, code seen below: ## Create simulated data a <- rnorm(20,mean = 2.8,sd = 3) b <- rnorm(20,mean = 3,sd = 3) c <- rnorm(20,mean = 2.7,sd = 3) data.tes...
Given $n$ independent observations $X_1,X_2,\ldots X_n\sim\mathcal{N}(\mu,\sigma^2)$, where both the variance and the mean are unknown. How can I write down a confidence interval for $\mu+c\sigma$, where $c$ is any real number? I'd like to add that the case $c=0$ is straightforward and well-known, the same for the conf...
Within each of the treatment classes below, I have calculated the subgroup as a percentage in each. For example, Treatment A; Subgroup: <29,999 I would divide 769 by the sum of the Person_IDs for Subgroup A (769+1189+1977+2509+2744+1197). This would be 7.4% of the total. I've done this for each Class and now I want t...
In machine learning, is it meaningful to have a cost function which does not have a min/max point, i.e., the cost function's min/max point is negative/positive infinity? Any examples?
I am struggling to address a specific research question within a MLM-framework. I have got a large dataset (N > 75,000) and three levels. Let's just assume I got individuals nested in gender, and gender nested in schools. The dataset contains 50 schools, gender (women/men), and my dependent variable is happiness. How c...
Red blood cell deficiency may be determined by examining a specimen of the blood under a microscope. Suppose that certain small fixed volume contains on an average $20$ red cells for normal persons. What is the probability that a specimen from a normal person will contain less that $15$ red cells ? I thought of using t...
As a follow up to this question - How to obtain decision boundaries from linear SVM in R? Is it possible to do the same with non linear SVM? (Radial for example). What do the weights represent?
If input variables are uncorrelated, they would be able to measure different dimensions of data. However, this video: https://www.youtube.com/watch?v=FXU1ktaVcdI @ 3:25 says it's not good to have uncorrelated input variables. What is correct and why?
I have the following question at hand: Let $\{X_n\}_{n\ge 1}$ be an iid sequence of random variables with common distribution function $F$ ; such that $x^*_F:=\sup\{x\ : F(x)<1\}<\infty.$ Show that $\max\{X_1,X_2,\cdots ,X_n\}$ converges almost surely to $x^*_F.$ How to attack this problem?
Suppose we have some seasons, and the number of invitations and a count of attendances for each user. So the data look like this: user 1, number of inv 100, number of att 50 user 2, number of inv 70, number of att 50 user 3, number of inv 5, number of att 3 ... Is it valid to run a Pearson correlation between numb...
I am trying to compare two different algorithms for performing regression. One of the algorithms (call it A) is deterministic, i.e. given the same training data and test data it will always produce the same predictions, while the other one (call it B) is stochastic, i.e. it will produce a different model each time it i...
Consider the linear model: $$y = X \theta + \epsilon $$ with $X$ inputs or features of inputs and $\theta$ a vector of parameters (and $\epsilon$ the error) with regularized error function $$ J(w)= \frac{1}{2} [X \theta - y]^T[X \theta - y] + \frac{\lambda}{2}\theta^T\theta.$$ The idea of kernels $k(x_i,x_j)$ is to def...
I understand the relation between Principal Component Analysis and Singular Value Decomposition at an algebraic/exact level. My question is about the scikit-learn implementation. The documentation says: "[TruncatedSVD] is very similar to PCA, but operates on sample vectors directly, instead of on a covariance matrix.",...
I am new to statistics, and have a fairly basic question. I have two sets of data that I want to compare with a third dataset. I am only interested in comparing the means and variances. Turns out that the mean of dataset3 is close to that of dataset1. However, when it comes to variances, dataset2 and dataset3 show clos...
I created a correlation measure for categorical variables. I am comparing my results against chi square test and LL (if two variables are dependent, I am assuming they are correlated as well). But I want to have some "golden" dataset that tells me which attributes should be correlated. I already searched in Weka and UC...
I am using the R implementation of robust PCA here for anomaly detection. I have a vector of time series data, and a vector of dates. The algorithm works fine when the length of the vector is a multiple of the frequency of the seasonality - as stated in the documentation: If X is a vector it will be cast to a matrix o...
I am looking for a very specific model, and I am not sure it exists (yet). It is the 2D sparse fused lasso in a negative binomial regression setting. That means Negative binomial observations: $y_i \sim NB(\mu_i,\theta)$ , where $\log \mu = \log m + X\beta$. $m$ is given (it's an offset), and $\theta$ too. $\beta$ rep...
On this post, you can read the statement: Models are usually represented by points $\theta$ on a finite dimensional manifold. On Differential Geometry and Statistics by Michael K Murray and John W Rice these concepts are explained in prose readable even ignoring the mathematical expressions. Unfortunately, there a...
These two expressions confused me a lot when I was learning statistics. It seems to me that they are totally different things. A random sample is to randomly take a sample from a population, whereas a random variable is like a function that maps the set of all possible outcomes of an experiment to a real number. Howeve...
In the draft for Sutton's latest RL book, page 270, he derives the REINFORCE algorithm from the policy gradient theorem. The first part is the equivalence $$\sum_{s}d_\pi(s)\sum_{a}{q_\pi(s,a)\nabla\pi (a|s,\theta)} = \mathbf{E}[\gamma^t\sum_{a}{q_\pi(S_t,a)\nabla\pi (a|S_t,\theta)}] $$ where $$d_\pi(s) = \sum_{k=0}^{\...
How do I implement in R the equivalent of lr = LogisticRegression(penalty='l2') lr.fit(X, y) in R?
In this paper the algorithm on page 4 describes computing a weight matrix for a data adjacency graph, and a kernel matrix. I was wondering if it would make sense to substitute the weight matrix for the kernel matrix in order to reduce the amount of memory needed to compute the full kernel matrix.
when i read an inventory book, i saw a function. But i don't really know how to solve it in mathematics. I need your help. Best wishes and thanks for helping!!! when i read an inventory book, i saw they made a relationship between normal distribution and loss function. If i dont use this relationship, i can't solve ...
In my textbook, it says, we can see with some algebraic manipulation that: $\beta= r* \frac{s_y}{s_x} $ However, the text does not actually show this manipulation. Can anyone show it or the intuition behind this formula?
Let's say I have the following perceptron activation line: $y = 1$ if $\sum_{i}^{d} w_ix_i \geq \theta $ and $y=0$ else. Now, for d = 4, I have derived the following question. $$ w_4x_4+w_3x_3+w_2x_2+w_1x_1 + w_o$$ I am trying to prove that the distance from the decision boundary to the origin is $ \frac{w^Tx}{||w||}$....
I would like to use GARCH(1,1) to simulate $n$ samples. I really need to understand it deeply, so are there any good book or tutorials that can help?
I've sampled 2 sites for wasps. At each site, I used 20 traps to catch wasps. I sampled each site once a month for 3 months: Site 1 = 20 samples + 20 samples + 20 samples Site 2 = 20 samples + 20 samples + 20 samples So sampling effort and sample size are identical for each site. The traps at each site were setup in th...
Logistic regression with lasso versus PCA? Got asked this question in an interview. I know the main difference is that Lasso is a regularization technique (adding vars to minimize effect of large coefficients) while PCA is feature selection technique (by covariance matrix decomposition). I answered PCA allows you to...
$S(\textbf{b})$ denotes the sum of squares of the model $$y=Z\beta+\sigma\epsilon$$ with usual assumptions. Why is $Z'Z$ non negative definite? Does least square estimator still minimize sum of squares if the design matrix is not non-negative definite? If not, what should we do about it?
I'm reading a proof of the covariance matrix of the LS estimator $$ \text{Cov}[{(Z'Z)}^{-1}Z'Y|X]={(Z'Z)}^{-1}Z'\text{Cov}[Y|Z]Z{(Z'Z)}^{-1} $$ where $Z$ is the design matrix, $Y$ the response variable and $X$ the explanatory variable. I'm wondering why it works?
I am surprised that R’s glm will “break” (not converge with default setting) for the following “toy” example (binary classification with ~50k data, ~10 features), but glmnet returns results in seconds. Am I using glm incorrectly (for example, should I set max iteration, etc.), or is R’s glm not good for big data settin...
Problem I am learning general linear mixed models and have a lot to still learn. Consider the following model, using glmmPQL I have the following model: model <- glmmPQL(fatigue ~ hr + temp + participant + zone, data = training_dataset, family = binomial, random = ~1 | ratings, correlation = corAR1(form = ~1 | rating...
Regarding the second line of the first proof by @JDL in Alternate definitions of almost sure convergence Are the following two statements equivalent? $P(\omega:\exists n\in\mathbf{N}, \forall m\in\mathbf{N}, \exists i>m \,\,\, \text{s.t.} \,\, |X_i(\omega) - X(\omega)| < 1/n)$ AND $P(\omega:\forall n\in\mathbf{N},...
Recently I have encountered the term Discriminant hotelling. And I have no idea what this term means. All I know is that this is in context with multivariable data analysis. I tried googling but in vain. So can someone explain to me what this term means?
I am analyzing Log+C transformed intensity data with temperature. I was advised to do a curve estimation regression analysis in SPSS, examining an exponential relationship but I am not sure how to interpret my output. My sample size is small- only 10, but the relationship, the curve, appears strong to me. Here is my ...
I read that there is a simulation design such as GARCH(1,1) and this is called simulation design. However, when I have a model (for example a simple linear model) then I can simulate as many data points as I like. This is called simulation data, since there is no simulation design. Is that correct?
Is there a conditional conjugate prior distribution for the dispersion parameter of the negative binomial distribution given the mean rate parameter, if I parameterize it in this manner $$f(y_i; \mu, \kappa) := \frac{ \Gamma(y_i+1/\kappa) }{ \Gamma(y_i+1) \Gamma(1/\kappa) } \frac{(\kappa \mu)^{y_i}}{ (1+\kappa \mu)^{y_...
When plotting predictions over linear predictors, what's a "informative" range for linear predictor values? The reason to ask is this: This is a very common plot in logistic regression, but isn't the range of -4 to 4 a bit uninformative? Like what does e.g. lin. predictor == -4 mean? So is this the only way to plot th...
I have a set of unknown values, say 100 cases, with a mean of 10 and a standard deviation of 5. I know that a subgroup of 20 of the cases has a mean of 8 and a SD of 6. How can I find the SD of the other 80 values? The mean will be ((10*100)-(20*8))/80 = 10.5. Is there a similar way of finding the SD or estimating it?
I applied 4 methods to detect trees in a forest. the reference number of tree is 1668. method #1: correctly detected (True Positive) = 943; not detected or Omission error (False Negative) = 725; doesn’t exist or Commission error (False Positive) = 469 method #2: correctly detected (True Positive) = 1034; not detected o...
How would I compare two sets of spearman correlation coefficients? I have two sets of Spearman correlation coefficients, which I calculated on two different datasets with international trade data. For both samples the Spearman correlation coefficients are calculated for the two variables X (Gross exports), Y (GDP in t...
$$\Sigma_{1,2}=\Sigma_{1,1}-\Sigma_{1,2}\Sigma_{22}^{-1}\Sigma_{2,1}$$ $$\mu_{1,2}=\mu_1+\Sigma_{1,2}\Sigma_{2,2}^{-1}(x_2-\mu_2)$$ This indicates that conditional variance of multivariate normal distribution is independent of $x_2$ but the conditional mean is dependent of $x_2$ https://en.wikipedia.org/wiki/Multivaria...
the generalized gamma distribution is a generalization of the two-parameter gamma distribution: https://en.wikipedia.org/wiki/Generalized_gamma_distribution However I cannot find an implementation in R (or python) that let's me use this in a GLM framework, so something like glm(y ~ x, family(GenGamma)). I could only fi...
I have been given a dataset with 7 groups of students each with 20 people in them. All 140 students completed the same pre-test before undergoing an education program - however each of the 7 groups had their own post-test. None of these tests had been used before (no idea of validity/reliability). Is there a statistica...
I have a logistic regression model that I was doing using the glm function in R. A reviewer commented that we needed to assess the impact of random effects. I used glmer, from R package lme4, to assess that, adding a random effects variable. But the estimates and standard errors of the fixed effect coefficients in the ...
Having this Data : clientId zipCode codeHeatingType countingType consumptionProfile householdCount squareFootage 01 75015 ELEC P012 A400 6 25 02 75002 GAZ P011 A600 3 30 and the A...
What are the broad steps required to solve a question like this? Let $Y=aX+b$, where $X\sim\text{Exp}(\lambda)\,,\:\lambda>0$ and find the characteristic function of $Y$.
Suppose that there are two attributes, x1 and x2, in the dataset. Further suppose that the values of x1 are 100, 105, 110 and the values of x2 are 1000, 1005, 1010. Now, if I standardize these attributes by subtracting mean and then dividing by standard deviation I will obtain the same values for x1 and x2. The spread ...
I'm fitting a population growth model (Monod's model with one extension) with R package FME. My data is a series of growth curves, with several replicates for different initial concentrations. I have a estimation of the error in each measure (one estimation for each replicate for each time-point) that I'm using for th...
We choose two samples: One with inhabitants of City A One with inhabitants of City B The height and weight of samples were measured. The differences of height and weight of samples of two cities were statistically significant (P-value < .05). How can I calculate which of these differences (height or weight) is more ...
I understand word embeddings and word2vec. In this paper: https://arxiv.org/pdf/1603.01547.pdf they are saying a new type of word embedding. Our model uses one word embedding function and two encoder functions. The word embedding function e translates words into vector representations. The first encoder function is a ...
Why we do spectral decomposition of a Markov matrix, when a Markov matrix is not always symmetric?
It's sometimes said (e.g. in this talk) that doing univariate analysis before multiple regression may lead to kicking off useful features and other mistakes. So, my questions are as follows. Are there any simple example models showing that such an effect may occur? If so, does it mean I need not to make univariate ana...
I'm trying to compare the variability within two samples which are quite different in scale (pupil capacity of different types of educational establishment (nursery, primary and secondary schools). My approach is to calculate the standard deviation for each sample, then divide that by the sample mean. I've not seen thi...
I've been reading about mantel tests and Procrustes but I can't quite figure out if they require the samples to the same in matrix 1 and matrix 2? Basically it's the same features measured in multiple groups of samples and I want to examine if some groups are more highly correlated with each other than the other groups...
In the book pattern recognition and machine learning (formula 1.27), it gives $$p_y(y)=p_x(x) \left | \frac{d x}{d y} \right |=p_x(g(y)) | g'(y) |$$ where $x=g(y)$, $p_x(x)$ is the pdf that corresponds to $p_y(y)$ with respect to the change of the variable. The books says it's because that observations falling in the ...
In a paper I found an iterative algorithm based on Bayes working with the following distribution and update criteria: In another source, I found the same update criteria in a whole different context. My Questions: Is there any literature/paper/book where these parameter definitions and parameter update criteria can b...
Surprisingly I have not found any literature. I would like to know if it is possible to define a (generalized) mode for general probability distributions, possibly defined on an infinitely dimensional space. My thought is that it should be related to $ P(B_\theta(r))$, where $B_\theta(r)$ is a ball centered at $\theta$...
I have a dataset (3000 rows) as below, as one can see the dataset also contains few important string columns as Location,Country,Injury,Time. Can we predict the Survived feature using any predictive model? Year Location Country Age Injury Survived Time 0 2016 chittwan Nepal ...
I want to compare the f-measure of method 1 with the result of 3 other methods. F-measure of M1: 0.800 F-measure of M2: 0.630 F-measure of M3: 0.619 F-measure of M4: 0.612 how can I say that the M1 significantly improved the result in compare with other methods?
How does the amount of training data affect the complexity of a linear kernel in support vector machine?
I conducted a principal component analysis (PCA) with direct oblimin factor rotation in SPSS. Because by that time I didn't know any better, I used the COMPONENT MATRIX for interpretation. I added the items that loaded highest on factor one to form a scale, than I added the items that loaded highest on factor 2 and for...
We know that $E\left( I\left\lbrace X_{(i)} > x\right\rbrace\right) = P \left( X_{(i)}> x \right)$. Where, $X_{(1)}\leq X_{(2)}\leq,\ldots,X_{(n)}$ are order statistics of either independent $X_i$ or not independent $X_i$. We also know that $P \left( X_{(1)}> x \right) = \prod_{i=1}^{n} P \left( X_i> x \right) =\left( ...
First of all sorry but I am a little bit of a newbie to advanced stats hence why my question may sound silly. I am trying to perform a classification task where I assume that my data is generated by a multivariate Gaussian distribution. For that purpose I estimate the covariance matrices from my sample data, but for so...
Consider running a restaurant. During each shift there are approx. 30 people working on different positions (Managers, Waiters, Cooks, etc). Day in week, daily or nightly shift,.. At the end of each shift there is data about turnover, turnover in specified categories, # of products sold, etc. Which algorithm can produc...
Is there an ensemble classifier that results in sparse solutions for the feature vector like Lasso Regression? With Logistic Regression, I can choose L1 penalization from the penalty hyperparameter. Is my only option to build an ensemble with VotingClassifier to do this or is there an out-of-the-box ensemble classifi...
I have a sample mean ratio of 16 (as in, 16 male to 1 female) and a standard error of 2 (sample size is 10, normal distribution). I want to find the mean and standard deviation (not error this time) of the ratio of female to male. I first find the reciprocal of 16 to calculate the mean ratio, 1/16. I know that standar...
The title is self explanatory: I am interested in which models are suitable for forecasting time series with a lot of zero values in it. Which forecasting models are recommended?
I have read that weka MetaCost's implementation refer to the implementation explained in Pedro Domingo's paper (1999). But I didn't find any explanation of weka CostSensitiveClassifier implementation. I just found that, with CostSensitiveClassifier, the user can choose between applying the cost to training set (reweigh...
I have seen many code samples which use the setting while reading data: train <- read.csv('train.csv', stringsAsFactors = F) test <- read.csv('test.csv', stringsAsFactors = F) From a little search I understand that it prevents conversion of string to factors and treats them as vectors. But what are factors and why a...
How does the pnorm function in R work? I mean how it computes $P(X<10)$ with only the mean and standard deviation given. Does it work same like $z$-score to compute percentages?
I have some paired data, obtained by measuring the response of subjects to the same stimulus given twice. I would like to show that the response does not change the second time, which means that the ratio between the two responses is 1. Is it correct to use a one sample t-test to do compare the ratio of the two respons...
Of the employees that work for Hapolonians Incorporated, 35 percent have an MBA and 40 percent are over the age of 35. Of those employees that have an MBA, 30 percent are over the age of 35. Calculate the probability that a randomly chosen employee has both an MBA and is over the age of 35. How would I approac...
The $X$ and $Y$ have joint pdf s.t. $f(x,y) = e^{-y}$ for $0 \leq x \leq y$. I need to find the $\text{Cov}(X,Y)$, so I got marginal $f_{X}(x) = e^{-x}$ and $f_{Y}(y) = ye^{-y}$ and$\text{Cov}(X,Y) = \mathbb{E}(XY)- \mathbb{E}(X) \mathbb{E}(Y) = 3-[1-e^{y}(y+1)] \cdot [e^{x}(x^2+2x+2)]$. I have no idea about how to get...
Say, I have 2 parameters, and based on my dataset, I have iteratively calculated the correlation coefficients between them by taking the correlation of the first i terms, where i ranges from 1 to the size of the dataset. Now, if I plot these cumulative correlation coefficients and I find a plot which is - (i) almost a...
The place that I work has different groups of portfolios (x1, x2, x3, ...) worth different values. Each month there are transactions with these portfolios, and their value decreases each month. The acquisitions happen in different times, so the data size for each portfolio varies. What I want to do is construct a mode...
Background: There are 5 ways to represent a mathematical idea: words/text, tables of numbers, plots/figure, symbolic expressions, flowcharts/graph. When I ask about "graphs" (below) I do not mean a picture of the relationship of x-vs-y (aka plot), but I do mean the nodes-and-edges, graph-theory version. I also presu...
Can't get the trace to converge in my simple polynomial fitting program. I will include an example of the 'a' parameter below. They only thing I can think of is that because I'm using logarithmic data, and the log-likelihood is causing a problem? I'm quite new to this, and I'm unsure. Hence I'm directing my question he...
I am fitting GAMs (in R using mgcv) to count data and am uncertain about how to select from among competing models. In my model specification I am using "ts" as my smoothing basis and a negative binomial distribution. As I understand it this essentially adds an extra penalization to the the smooth and thereby has the p...
I have oscillating time series and i want to discriminate if there are in anti-phase or in in-phase. At least for cosine like time series it work great. Spearman correlation between cosine and -cosine = -1 (complete out-of-phase) and between cosine and sin = 0 (just in the middle between in and antiphase) import numpy...