instruction
stringlengths
9
38.7k
What is the most suitable optimization algorithm for optimizing maximum likelihood estimator? In excel I used GRG non linear optimization algorithm, is that good enough? I want to write my own code to understand optimization better so I want to choose most suitable non linear constrained optimization algo for MLE. Che...
I came across a kind of classification problem. Suppose I have a dataset with labels, where each label is one of a1, a2, a3, b1, and b2. I want to make a classifier that estimates "coarse" label, a or b. Here is a concrete example. Imagine a set of animal images labeled by the its species. We want make a classifier tha...
I am trying to analyse my biological data which is derived from flow cytometry and describes the percentage of cells with a certain property. Data is available for two conditions: once the cells areuntreated and once the cells were stimulated. For the untreated condition I analysed 57 samples, for the stimulated condit...
I am in the process of designing a survey that will collect data from users of services provided by my organization. We will collect data from all those users (other smaller organizations) working with us; therefore, we will have data about the whole population. We will design the survey in such a way that we get only...
I have some simple conceptual questions that I would like clarified regarding MLE (Maximum Likelihood Estimation), and what link it has, if any, to EM (Expectation Maximization). As I understand it, if someone says "We used the MLE", does that automatically mean that they have an explicit model of their data's PDF? It...
When should we use PCA over factor analysis? Aren't they essentially the same thing except that factor analysis is modeling observed variables as linear combinations of unobserved factors? Whereas PCA is modeling components as linear combinations of observed variables?
I've fitted some weighted data to a nonlinear model (namely a Sèrsic light profile), using least squares. That is, I have fitted a weighted nonlinear least squares model of the form: $$I_r = I_0 \exp\left[-\left(\frac{r}{\alpha}\right)^{1/n}\right]+\epsilon_r$$ where $I_0$, $α$ and $n$ are parameters. How do I then fi...
I have two data files "train.txt' and 'test.txt' with single columns of data. I want to learn a model only on training-data and generate an output on test-data. I can't seem to find a way to do that. Most predict invocations seem to be just starting from the end of training data. I have always been c++ heavy, and am ju...
I want to estimate the following model $y_{it} = \gamma_{0} + \gamma_{1} x_{it} + \gamma_{2} \theta_{i} x_{it} + u_{it}$ where the $\theta_i$ is unknown but I can estimate it in another regression. Plugging in that estimate and rewriting the equation, I get $y_{it} = \gamma_{0} + \gamma_{1} x_{it} + \gamma_{2} \hat \th...
I'm looking for a method to determine if a 2-d dataset forms a single cluster or is split into two/multiple clusters - and what's the likelihood or p-value for this. Isolated data should not be considered as different cluster. Also, data has a non-parametric distribution. My approach is to apply an unimodal / bimodal t...
What I'm trying to do is predict some biodata based on time. Because the biodata are not normally distributed, I have modeled them with a poisson using a log link function ( E[y] = exp[BX]). What I'm trying to do is estimate the time at which the predicted curve reaches a certain threshold. (i.e., y=1 when x=?). Obtain...
The system: I have a bag filled with 1,000 balls All of them are either red or blue I want to gain some amount of confidence that all the balls are blue, but I'm very lazy and I only want to examine a sample as small as possible. Question: How large must the sample be to say with P confidence that N balls are blue? I...
I have some measurement results (about 10000 or even more). How can I say (which methods should I use and how to apply them) to check if my data is time series or is a statistical sample?
I am dealing with a text classification problem. Where I need to assign tags to a document. The amount of tags I need to assign varies from 1 to 5. I am struggling somewhat on how I should tackle this problem. What I tried was to encode every combination of tags with LabelEncoder() from scikit-learn, I framed it as a r...
What Exactly is the difference between decode and score? The documentation seems pretty sparse regarding this. My guess is that: decode represents the probability of the best sequence of states for a observation sequence. score represents the sum of probabilities of all state sequences for a observation sequence. Is th...
I am trying to do a small case study in 24 hours + change. For a dataset, I'm using GHTorrent.org. A general assumption about virtual work is that richer media leads to greater productivity. I have decided to focus on GitHub and to examine the effects of @mentions on issue resolution. My hypothesis is that mentions are...
I don't know how to grasp what this question is asking, nor how to attempt to solve it... The Polk Company reported that the average age of a car on US roads in a recent year was 7.5 years. Suppose the distribution of ages of cars on US roads is approximately bell-shaped. If 95% of the ages are between 1 year and 14 ye...
For a distribution, let's say I know the scores at the 10th, 30th, 50th, 70th and 90th percentiles. I also know the interquartile range and range. Is it possible to get the exact percentile rank of a given score? I'll be using R if that makes things any easier. As a more concrete example, I have the following informati...
Can anyone tell me how to obtain the 95% confidence intervals for the x and y coordinates of the vertex (peak in my case) of a quadratic fit? Is there a way to get these CIs in R? Thanks.
I have a question regarding principal component regression (regression of a DV on principal components). I have 4 components in my PCR and the third component is non-significant as a predictor. What does that mean? It's curious that the "weaker" fourth component however is significant. Can anyone explain this to me?
I am stuck with a stats question..... help please A television manufacturer is studying television remote control usage. One of the criteria they are measuring is the distance at which people attempt to activate the television set with the remote control. They have discovered that the activation distances are normally...
This is a homework question: Suppose that $X_0=1$ and that for $n\geq 1$ $$X_n\sim \left\{ \begin{array}{l l} U(0,X_{n-1}) & \quad \text{with probability $1-X_{n-1}/2$}\\ U(X_{n-1},1) & \quad \text{with probability $X_{n-1}/2$} \end{array} \right.$$ Determine the limiting behavior of $X_n$. My attempt: 1...
There are three groups that received different treatments and then learn a task which they are scored on over the course of 60 sessions. 1) How to choose a function to fit? -The best choice in this case would be s=asym/(1+exp((midpt-x)/rate)), but say you didn't know that. 2) How to compare the three groups to see if ...
I have a learned Hidden Markov Model (HMM) from a certain sequential data using Gibbs sampling. I have managed to obtain the transition probabilities (transition matrix) of the Markov chain and the params of the probability distributions of the hidden states. The only set of params that I have yet been able to obtain a...
I have 3 subjects. Each subject completed the same experiment with 4 randomly interspersed stimulus types. For each stimulus type the subject completed 120 trials on a 2AFC (2-alternative forced choice) task. From these I can calculate a percent correct. I would like to know if the overall percent correct is statistica...
1) How can I change classification threshold (i think it is 0.5 by default) in RandomForest in sklearn? 2) how can I under-sample in sklearn? 3) I have the following result from RandomForest classifier: [[1635 1297] [ 520 3624]] precision recall f1-score support class 0 0.76 0.56 0.64 ...
I'm new to statistics and have a question about my machine learning method. This method can distinguish between positive/negative examples. The result is a set of rules to define only positive examples. For each rule I have calculated the precision as follows: precision = $\frac{\mathrm{TP}}{\mathrm{TP+FP}}$ where: $\...
I have a data set that has been collected by a set of empirical experiments. Having plotted them on a graph, it seems that the data behavior is linear. On the other hand, some colleagues claim that the data are not linear. How can I show them the confidence level of being linear for my data? In other words, is there an...
I know this could be considered naive. But the fact is that I'm a computer Science student who have done introductory course in data analysis (Coursera) and a Econometrics I course at my University. While I understood the concept of CI, still I feel that there are lot of missing elements in my interpretation. So I sear...
I am not sure about the following tests/methods whether they belong to the category of univariate or multivariate tests. Univariate tests/methods: t-test,ANOVA,ANCOVA, univariate linear regression (Y=a+bX) Multivariate tests/methods: MANOVA, multivariate linear regression (Y=a+bX+cX+…), cluster analysis, partial least...
I'm trying to assess the uncertainty in hierarchical cluster analysis. It is a dataset composed of 409 observations and 27 variables (with a value ranging form 0 to 100). The dataset represents immunohistochemical scores in a gastrointestinal cancers. A meaninful clustering of observations and markers is observed with ...
First a theoretical question. I know that natively, an hierarchical clustering algorithm is of complexity on the cube of number of samples N. This is due to the fact that in each iteration, one has to go over the entire distance matrix to find the smallest value. But, it is possible to implement it in lower complexity...
Whilst I understand why median can be a better metric than mean in certain circumstances (e.g. you're creating/marketing a product, you want to use the median as it represents the biggest age group within your population and therefore real potential buyers, whereas mean age might be a number which doesn't correspond to...
I have found the following very useful theorem and I would appreciate some help comprehending it fully. Theorem Let $\{X_n \} $ be a sequence of random variables bounded in probability and let $ \{Y_n \} $ be a sequence of RVs which converge to $0$ in probability. Then $$X_n Y_n \rightarrow 0 \quad \text{in probabilit...
How can I convert predicted probabilities of a logit model into predicted binary response ? Can I consider 0.5 as cut point to convert probabilities to binary variable (0,1). Or should I use binomial distribution to generate binary variable where predicted probabilities are used as success probability. By the way I a...
Approach 1: lm.fit <- glm(response ~ 1, offset=log(lam), family="quasipoisson") summary(lm.fit) Approach 2: Feed summary.glm with a pearson dispersion. lm.fit <- glm(response ~ 1, offset=log(lam), family="poisson") summary(lm.fit, dispersion=sum(residuals(lm.fit, type="pearson")^2)/df.residual(lm.fit))
I have some data that look like: These data show between case (spinal cord injury) and control the number of drugs that patients in these populations were prescribed at any given time. I'm looking for a p-value to determine that the cases were prescribed more than >= 5 drugs at a significantly higher rate than the co...
I have the following model: $$ y_{i} = \alpha + \beta{d_{i}} + X^{'}_{i}\gamma + \epsilon_{i} $$ Where $d_{i}$ is a dummy variable and $X^{'}_{i}$ is a vector of control variables. I want to estimate the the causal effect of $d_{i}$. Suppose that the regression is saturated in $X_{i}$ so that $E(d_{i}|X_{i})$ is linear...
If I need to calculate a permutation-based $p$-value with significance level $\alpha$, how many permutations do I need ? From the article "Permutation Tests for Studying Classifier Performance", page 5 : In practice, the upper bound $1/(2\sqrt{k})$ is typically used to determine the number of samples required to achie...
One of the parameterization of the negative binomial distribution is NB($m,r$), $$\Pr(X = k) = \left(\frac{r}{r+m}\right)^r \frac{\Gamma(r+k)}{k! \, \Gamma(r)} \left(\frac{m}{r+m}\right)^k \quad\text{for }k = 0, 1, 2, \dots. $$ I would like to consider the parameterization NB($m$, $\phi$) where $\phi=1+\frac{m}{r}$. I ...
Let $X \sim N(0, \sigma^2)$. I want to show that $$E[|X|]= \sigma.$$
I estimated a linear probability model (LPM) $P(y=1|x_1) = b_0 +b_1x_1 + u $ and a probit model $P(y=1|x_1) = \Phi(b_0 +b_1x_1 + u) $, where $\Phi()$ denotes the cumulative normal distribution. The regressor $x_1$ is the same binary variable. I observed that the predicted probabilities for both models $\hat{y} =\hat{b_...
I'm reading the article Robust Uncertainty Principles: Exact Signal Reconstruction from Highly Incomplete Frequency Information (Candes, Romberg and Tao, 2004). In this article they are talking about recovering the function $f$ whose fourier coefficients are known on some domain $\Omega$, by solving the following opti...
I would do an over-dispersion test for a compositional data set (I don't have the original count values) for choosing later an appropriate regression model. Here is an example of my data set: X<-matrix(sample(1:100,100,T), 20,5) X<-X/apply(X,1,sum) colnames(X)<-paste("Comp", 1:5, sep="") rownames(X)<-paste("Id", 1:20, ...
What is the likely stats methodology used in this old OKCupid post?: http://www.economist.com/blogs/johnson/2010/10/sexuality_and_language And this: http://blog.okcupid.com/index.php/the-real-stuff-white-people-like/ Here's the problem setup: You have a corpus of users' self descriptions. Choose the common (issue #1!)...
I'm somewhat new to understanding statistics meaningfully, and the bootstrap in particular. Let's say you're doing something (polling, running experiment, whatever), and can afford to get 1000 samples. From what I understand, before the bootstrap method existed (> 25-30 years ago), you'd be better off with, say, 10 set...
I'm working on a time series containing hourly data for 8 days. Using the R forecast package, I'm trying to predict future data with stl. If I use only 7 days data, things work fine, but when I add the last day, the predicted values drop strongly. My questions: Visually the 8 days data still show a clear periodic tren...
I have large data set of $\approx 10^6$ points where each point contains the information of a (year, count) of a particular event. There are many counts for a each year. Looking at the histograms of counts for a given year, I've conjectured that they follow a Poisson distribution. By generating the Poisson distributio...
There are several functions in R to calculate the power of a test, for example, the pwr-functions of the pwr package. My question is how we get this function for ANOVA (pwr.anova.test)? I know that \begin{align} 1-\beta &= P(H1|H1) \\ &= P(F>F_{1-\alpha,k-1,N-k}) \\ &= 1-P(F\le F_{1-\alpha,k-1,N-k}) ...
Introduction I have a 300,000-row cancer dataset with around 60 variables (cancer stage, year of diagnosis, radiation therapy, histology, etc.) with a time variable ("number of months survived") and an event (alive or dead). The last two variables have complete values in the individual records. Survival months as outco...
I have two main effects, V1 and V2. The effects of V1 and V2 on the response variables are negative. However, for some reason I am getting positive coefficient for the interaction term V1*V2. How can I interpret this? is such situation possible?
I need to find the conditional variance of $Y_t$ given information up to time t. $Y_t$ = $\mu $ + $\phi_1$$Y_{t-1}$ + $\phi_2$$Y_{t-2}$ +$\epsilon_{t}$ Need to find the conditional variance of this equation. I need to find three step ahead forecast. Was able to do the first, but got stuck at second step. Var($Y_{t+1}$|...
My try ended in an awkward result. I thought it best to use the moment generating function (MGF) technique. We can derive the MGF of $W_n$ as follows: $$ E \left[ e^{tZ /n^2} \right]= \left(1-\frac{2t}{n^2} \right)^{-n/2}$$ from the chi-squared MGF. But the problem is that the limit of that as $n \to \infty$ leaves $1$...
I want to make a ranking of music genres. I have a list of artists and top genres with a value (1 - 100) which describes how much their music is from that genre. Now I need to organise the genres so the most popular is on top. Bellow I have genres from 4 artists (3 genres per each). We can see that Rock and Metal are b...
I have UMVUE $$\tilde\theta = \frac{(n-1)(U-n)}{(U-1)(U-2)}$$ for $P(Y=2)=\theta(1-\theta)$ where $U=\sum_{i=1}^n Y_i$ $Y_i \sim \text{geometric} (\theta)$ I am using delta method to find the variance of $\tilde\theta$ So far, I have defined: $$g(y)=\frac{(n-1)(y-n)}{(y-1)(y-2)}$$ $$g'(y) = \frac{(n-1)[n(2y-3)-y^2+2]}...
Can data sparseness appear due to either high sample size or high dimension? How different are the situations in the two cases? Thanks!
Based on the lack of responses to my previous network question, perhaps this is not quite the place to ask this question, but I'll give it a try. I am planning a series of studies that involve small groups of people. In a typical study, the participants will meet in groups of 4 to have a discussion about a particular ...
I have produced a model using the ctree function in R, and want to know whether this tree is actually explaining my data well. I am trying to explain the presence or absence of landscape disturbances using environmental factors. rpart gives an $R^2$ value, but since my data are not well-balanced (PRESENCE contains a r...
The problem: I have a set of means and covariance matrices of a number of multivariant normal distributions, each having a class label. Then I get single data points, one after the other, to which I want to assign one of the class labels or the label 'None', if it is unlikely that the point belongs to any of the given ...
I don't know how I'm getting this wrong. Calculate P[ X > 7|X < 9 ] So calculate P[X>7] given that X<9, I put X>7 as the numerator and X<9 as the denominator. For X > 7, since the binomial distribution has .45920 I subtract that from 1, and use X <= 8 for X < 9, that value is .64437 (1 - .45920)/(.64437) = .839269 Wron...
Does using the Bayesian estimator to complete SEM in Mplus mitigate some concerns with a limited sample size ($n=120$)? I.e. is this approach preferred over using the traditional ML estimator with associated $p$-values?
Im dealing with a VAR model where I also want to include exogenous variables. Based on my sampling, the exogenous variables in $t$ are independent from my other variables in $t$, but highly dependent on the other variables in $t-1$. Could there be some serious error from an estimation point, like simultaneous equation...
I read a journal article, in which the authors made a diagram based on regression results (beta weights). Pretty much looks like a path analysis: I'm very sure that path analysis/SEM was not employed as can be read from their paper: Both logistic regression and multiple regression analyses were used. Logistic regres...
When examining the difference between two proportions I typically use Cohen's h (i.e, the difference between two arcsin-transformed proportions) for the effect size. Does anyone know how I could calculate 95% confidence intervals for Cohen's h?
I can´t solve a conditional distribution problem using the simple Bayes´ Theorem for PDFs. The thing is, I know that X|Y ~ Poisson(Y) and that Y ~ Gamma(α,β). I´m being asked to find the PDF for Y|X but I´m complete clueless about how to do so. Can anyone point me in the right direction?
This is a homework problem. Between 10 AM and 6 PM visitors arrive at the Tate Modern Gallery in accordance with a Poisson process at the rate of 6 per minute. Determine the probability that 10 visitors arrive between 1:00 PM and 1:02 PM, given that 800 visitors arrive between noon and 2:00 PM. My attempt: I know that ...
I have some data X where the samples are not independent (they're correlated with each other), and I'm trying to do a regression of some continuous variable y on X. This sample correlation could confound my analysis. Hence, I thought of using ZCA whitening to correct for this inter-sample covariance in X $$ X_{\mbox{zc...
I am doing a project in which I need to estimate Weibull parameters for car part failures (I know the data follow Weibull). I have data for 1000 cars (part failure data). Now the problem is suppose some part fails after 6 years (from date of manufacturing) . But I have data for only the first three years. Now in three ...
Could someone maybe give an explanation and formulas in terms of sums or matrix operations for the calculation of variance based effects, and total effect indices? The information given on Wikipedia: http://en.wikipedia.org/wiki/Variance-based_sensitivity_analysis uses some notation ($E_{\textbf{X}_{\sim i}}$,${X}_{\si...
We are making algorithm for prediction of Conversion Rate (CR) for CPC advertising. We have historical (statistical) data that we can analyze in many projections (in many factors). For example we have such independent variables (factors, projections) as: keyword date source landing page among others. Then, when w...
If the effect size under analysis is too complex to allow for any other type of standard error estimate, is it appropriate to use bootstrapped standard errors to inform effect size weights?
I frequently read that Bonferroni correction also works for dependent hypotheses. However, I don't think that is true and I have a counter example. Can somebody please tell me (a) where my mistake is or (b) whether I am correct on this. Setting up the counter example Assume we are testing two hypotheses. Let $H_{1}=0$ ...
I would like to ask a question about lags I've included however I believe it's better if I first give you some more insight information about my topic. My hypothesis is ''the positive sentiment spread via Twitter can predict increasing movements on the stock market. So I've gathered approximately 60.000 'positive'twee...
Suppose I have a dynamic linear model as defined in the dlm-package for R, see Petris 2009. $y_t = F_t θ_t + ν_t, ν_t$~$N(0,V_t)$ $θ_t = G_t θ_{t-1}+ω_t,ω_t$~$N(0,W_t)$. A random walk without drift would be specified as $F_t=G_t=1$, resulting in $y_t = θ_t + ν_t, ν_t$~$N(0,V_t)$ $θ_t = θ_{t-1}+ω_t,ω_t$~$N(0,W_t)$. A “...
I'm investigating which methods are generally used to dichotomise an ordinal variable Y so that it maximises the between-group differences in the values of X and minimises the within-group differences in the values of X. Basically I want some kind of optimal (binary) binning of my variable Y (ordinal, ranging from let'...
I am new to the wonderland called Statistics. I studied a lot (finished Greene) about linear regression but I never got this clear in my head: if I am given data and asked to run a regression, what tests should I run to see whether data is appropriate to run a good regression? How do I know my data is good enough to gi...
Suppose, I have done: $n_1$ independent trials with an unknown success rate $p_1$ and observed $k_1$ successes. $n_2$ independent trials with an unknown success rate $p_2$ and observed $k_2$ successes. If, now $p_1 = p_2 =: p$ but still unknown, the probability $p(k_2)$ to observe $k_2$ for a given $k_1$ (or vice ver...
Background How often will it rain in the desert? One set of predictions assigns grades to different spots in deserts around the world. A past study correlates the grades to chance of rain per day. The grades ranges from extremely low (.01% per year) to much higher (20% per year), with most of the grades in the extreme...
Consider the 3-D real random vector $(X_1,X_2,X_3)$ which is uniformly distributed on the surface of a unit sphere. What can be told about the distribution of $(aX_1,bX_2,cX_3)$, where $a,b,c,$ are non-zero and non-identical real constants? Is it true to say that they are distributed uniformly on the surface of an elli...
I'm trying to calculate the correlation of two variables, but the array is disjointed in the middle - but I'm trying to obtain one correlation coefficient. See the excel file I uploaded. Because the disjoint in the middle, there is somewhat a jump in value and when I correlate the whole set I obtain a correlation coef...
Find the limiting distribution of $\sqrt{n} \left(\sqrt{\bar{X}} -1 \right) $ if $\sqrt{n} \left( \bar{X}-1 \right) \to N(0,1)$. Can you please check my work below? In principle, the Delta method should be of use here. We know that according to that particular method if $$ \sqrt{n} \left( X_n -\theta \right) \to N \lef...
I want to analyse temporal interactions of some time series by means of the Box-Jenkins approach to find out which time series are predictors of another one (with the help of prewhitening and computing cross correlations for some lags) and finally set up regression models. Besides I want to analyse the same time series...
I'm very new to Bayesian analysis, and I've come up with the following model. My goal is to get for each individual "test unit" a distribution that describes the lift in success rate under one of several test conditions. #data N <- 50000 #Number of test units T <- 2 #Number of test conditions succs<-structure(c(...N x...
Two sets of comparisons were performed between original clustering and the new clustering using several indices and metrics of performance. Below are the two initial clusterings or partitions (these should be the truth or original partitions), they are two because samples were taken from two different locations and th...
I have to do a cluster analysis and I'm asking which distance should I used. I know that 99% of the clustering are made using a euclidean distance, but I heard about the Mahalanobis distance and it seems to be better because it takes into account the covariance matrix of the data. Question : Why the Mahalanobis distanc...
I have a vector of observations (call it $Y$) and a vector of corresponding time (call it $T$). I want to test whether the change of observations are related to time. The errors here are i.i.d and mean is 0. Is there any method or test can do this? I guess I can try polynomial regression and then do the full model F-...
Suppose that you have a Poisson point process in $\mathbb{R}^d$ with rate (density) parameter $\rho$; I particularly care about $d=2$ if there is a solution in this special case. Given a finite realization, one can construct the minimal spanning tree of the ensemble. I'd like to know (model/approximate) the distribut...
I am trying to fit some binomially distributed data to a model. There is a reasonable systematic error associated with the measurements. This uncertainty comes from imperfect theoretical knowledge of one of the parameters assumed by the model. I can calculate this number by 3 or 4 different methods and model the uncert...
Suppose I've a model such as $Y = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \cdots + \beta_k X_k + \epsilon$. Now, there's high correlation between $X_1$ & $X_2$ (say over 60% but below 75%). Does that means this model has multicollinearity problem? Is there any relationship between highly correlated variables & multicoll...
let $B(t)$ is brownian motion. Find $d(M(t))^2$,where $M(t)=e^{B(t)-\frac{t}{2}}$,
I once read the following statement: Given the following equation $ Y_t= c + a Y_{t-1} + \theta_t$ If $c\neq 0$, then the t-ratio for testing $H_0 : a=1$ is asymptotically normal. If $c=0$, then the t-ratio for testing will converge to another nonstandard asymptotic distribution. But I do not know how to get the abo...
Is there another method to estimate standard errors of proportions other than $\sqrt{p(1-p)/n}$ where an estimated total population size is taken into account? For example if I sample 100 out of population of 100, I should have a standard error of 0. If I sample 100 out of a billion, it should have a higher error. I re...
I have a standard binary time-series–cross-section (BTSCS) model that I would like to specify as a mixed effects model using the lme4 package. I've read elsewhere that time-series–cross-section (TSCS) models can be conceptually understood as multilevel models (i.e., years [time] are nested within countries [cross-secti...
I performed a multivariate linear regression such that: fit<-lm(as.matrix(y)~mwtkg+mbmi+mage,data=x) where $y$ is a $500 \times 26$ multivariate outcomes. Then, I am wondering how to explain the anova(fit): > anova(fit) Analysis of Variance Table Df Pillai approx F num Df den Df Pr(>F) (Intercept...
I have carried out a linear regression. This is the form of the model: bounded (0-1) response variable ~ factor1 (2 levels) + factor2 (5 levels) + interaction between factor1:factor2 + factor3 (2 levels) Sample size is about 350. I have plotted the residuals against the predicted values from that model: As there is a ...
I am wondering whether there is a routine way to diagnose a multivariate linear model. For example: y <- rmvt(n=100, sigma=diag(3), df=3) # 3 response vars as spherical multivariate t-dist x1 <- rchisq(100, 2) # x1 distributed as chi-squared x2 <- rt(100) # x2 distribut...
I have a predictor variable (water height in metres) and a response variable (feeding rates of birds). The relationship between them looks similar that shown in the plot below. tidal_effect <- iris[,3:4] library(plyr); tidal_effect <- rename(tidal_effect, c("Petal.Length" = "feeding.rate", "Petal.Width" = "water.heig...
I'd like to display some two dimensional distributions, but I'm not sure how to properly tone map them. My distributions have some narrow spikes, so linearly mapping the probabilities to color hides most of the information. I've tried two approaches, doing a gamma adjustment or cutting off high values at some threshold...
While analysing a particular iterative method which reaches the fixed points of a multivariate function f(x, y) (x and y are N-dimensional vectors in this case), I was able to reformulate it in the following terms that is, as some kind of 'alternating' descent, in which x goes in the direction which minimizes y, and ...
I am really new to this topic of optimization. My question is, if this is actually something that can be done in python. Let´s say i am using a Data Mining tool in the background, doing complex regressions that cannot be described in an algebraic equation. Python is used to get the estimated result of an dependent var...