instruction
stringlengths
9
38.7k
I realize that this Wikipedia page provides the proportional form of the conjugate prior to the gamma distribution with unknown $\alpha$ and $\beta$ parameters, as well as the posterior values of $p$, $q$, $r$, and $s$, which are the hyperparameters of the gamma likelihood (see the last distribution in the table under ...
I am trying to use Cronbach's alpha in order to see if some variables are measuring the "same", but I have some doubts about the correct use: Can I compute alpha for numerical, ordinal or dichotomous variables? If it is correct to do that, then may I mix dichotomous, ordinal and numerical variables? If Cronbach's al...
I know k-means is usually optimized using Expectation Maximization. However we could optimize its loss function the same way we optimize any other! I found some papers that actually use stochastic gradient descent for large scale k-means, but I couldn't get my question answered. So, do anyone know why is that? Is it b...
Suppose that we are given 1000 doses between 0 and 10 and various ordinal values (1 = normal, 2 = critical condition, 3 = death). So typical data points would of the form: $(5,1), (6,1), (10,3)$ etc. What is the purpose of using regression to obtain LD50? Couldn't we just look at the data and see at what dose $50 \%$ ...
What are the different measures of effect size used for chi-squared tests / binomial data? I'm already at least somewhat familiar with the phi coefficient and odds ratio. I've heard of Cramer's V and relative risk as well. However, I'm still not sure how to decide which effect sizes to report in different circumstances...
I need to know how can I combine in stata the DID (difference-in-difference) model with the PSM (Propensity score matching) with cross-sectional data. I had searched and there are tones of answers related to each of those models, but together I haven't been able to find them. Could someone please help me!! ??
I'm trying to understand how "user defined contrast coding" works. My question refers to the example from http://www.ats.ucla.edu/stat/r/library/contrast_coding.htm#User: #initial contrast matrix including the constant term mat = matrix(c(1/4, 1/4, 1/4, 1/4, 1, 0, -1, 0, -1/2, 1, 0, -1/2, -1/2, -1/2, 1/2, 1/2), ncol =...
I came across a simple question on comparing flexible models (i.e. splines) vs. inflexible models (e.g. linear regression) under different scenarios. The question is: In general, do we expect the performance of a flexible statistical learning method to perform better or worse than an inflexible method when: The number...
I have a response variable which is the number of days it takes for an insect to emerge from the pupal stage. I measured this daily, and most of the individuals emerged after about 20-21 days, with a tail of some individuals trailing as far off as 33 days. For ease of analysis, I have a variable called, "ClaustPer", wh...
I'm building a dashboard and would like to show an automatically generated chart to quickly give a high-level view of how well my organization is doing. The organization has a large corpus of content, much of it with quality problems. We're tracking each known error in an issue-tracking system. We want to reduce the nu...
If this is too elementary a question for CrossValidated and should go elsewhere please let me know. I've been given a linear model in R similar to: model = lm(y ~ x1 + x2 + x3, data=sampleset) ...that when fed a set of data and plotted produces the graph below: The light blue center line represents the linear regress...
I have generated 100 2D correlated MVN variables in R, on which I run prcomp. When I plot the projected points along the first principal component (in the original coordinates) with the original data overlaid, I have a bunch of points along a line (as expected) yet they do not seem to correspond to the original points ...
F-tests can be two-tailed (to test that $s_1^2 \ne s_2^2$) or one-tailed (to test that $s_1^2 > s_2^2$). How can I modify Levene/Brown-Forsythe to be "one-tailed", that is, to test $s_1^2 > s_2^2$ instead of $s_1^2 \ne s_2^2$? Here is a demo: The image shows normally distributed training data (n=1000) and a model. An ...
have a normal distribution. I would like to compare two input probabilities from this population to measure how "similar" they are. Everything is subjective but I wanted to be able to say that $x$ is more "similar" to $y$ than $z$ to $y$, using some sort of an equation against the normal distribution. For example, if t...
I've seen examples of constructing multivariate distribution with univariate marginals coupled together via a normal copula (see Mvdc function from copula package in R). However I was wondering whether I could simulate density with multivariate marginals via a normal copula? Just to clarify how I attempted to solve...
I am hoping to understand best way to test statistical significance between 2 dependent population groups. For example, consider a usability test. When 100 subjects were tested, 50 of them clicked (=50% click rate). However, 50 of the subjects were male, 40 of whom clicked for an 80% click rate for males. The question...
Is there a name for this sort of chart below (sourced from New Zealand's Ministry of Business, Innovation and Employment, for whom I work but I was not involved in creating this plot)? It consists of rectangles where the area is proportional to a variable, and resembles a sort of cross between a pie chart, a mosaic pl...
Is there an existing method to solve this kind of regression problem? Given a set of $n$ training data $\{(x_1,y_1)\ldots(x_n,y_n)\}$, find $\beta$ and a set of functions $\{f_1,f_2,\ldots,f_n\}$ to minimize $\sum_{i}\left(y_i-f_i(x_i)^T\beta\right)^2$ where each $x_i$ is a length $m$ vector, $\beta$ is a length $m$ we...
I am working with a regression problem. I have some features which are only available for a few instances. But with those few instances based on those features we can build a model which gives reasonable results. At the same time I have other features which are available for almost all instances. How should I combine ...
I start with a vector of random numbers sampled from a normal distribution: R<-rnorm(100, mean=0, sd=30) I would now like to create 3 variables that are correlated with each other with a pre-specified correlation. In addition I would like to have these three variables correlated with R with a pre-specified correlation...
I would like to reduce the amount of data I have before conducting an analysis. My data consists of several sets of questions assessing comprehension of various topics (e.g. 4 questions assess comprehension of one concept, 4 questions assess comprehension of another concept and so on). I would like to sum the question...
I have a model with a continuous dependent variable (DV) and 9 independent variables (IVs). My model is a mixed-model, because 7 of the 9 IVs are nested within the two levels of another IV (lets call it X1) which is applied in a repeated-measure design to the same group of subjects (zero at first trial and 1 at the sec...
My study is assessing whether there is a correlation between two medical conditions (endometriosis) and bleeding disorders. The case participants have endometriosis and the controls do not. In both case and control we are measuring a number of different haemostatic variables (clotting factor levels, platelet number, pl...
Let $X$ be a sample from the distribution which is the mixture of the useful signal with the distribution $\xi(\theta)$ and a uniform noise $U[a, b]$. The probability of observing $U[a, b]$, the parmeters $a$ and $b$ are not known. I would like to estimate $\theta$. How do I do it? By the mixture I mean weighted avera...
I have met two k-fold cross-validation strategy. Both method divides the data set to k-folds, say k = 10. First one chooses the validation set elements randomly while the second one chooses incrementally. Let me explain this with an example: Method 1 chooses 3 random folds in order to use as validation set and remainin...
I was reading the vignette of the R package chemometrics (link). In the second paragraph (right below the first equation) of Page 12, the author writes: the OD (Orthogonal Distance) is calculated in the original space as the orthogonal distance of an object to the PCA subspace or, in other words, the distance betwee...
Bootstrap examples for density estimation usually start with resampling from the empirical distribution of the "micro data", e.g. here on Normal Deviate talking about confidence intervals for nonparametric estimates of the density at some point. But if one is interested in a property of the density (e.g. excess mass at...
I am testing the statistical significance of some explanatory variables in a factor model, using the Fama-MacBeth two-pass regression (also known as the Cross-Sectional Approach). Assuming my dependent variables are stock returns, and that my explanatory variables are macro factors, such as Inflation, Oil prices, Indus...
I need to optimize parameters of a Gaussian shaped function to best fit my data points using maximum likelihood. I first make an initial estimate for the parameters (mu, sigma and peak) and apply a gradient descent (fmincon in Matlab) algorithm to optimize these parameters. The cost function is the sum of the negative...
I have three variables, A, B, and C. It seems obvious that if X = A-B and Y = C-B that there should be a correlation between X and Y. When I've done this in matlab with random numbers, this seems to be the case with a mean r of about 0.5. The fact that there is a correlation makes intuitive since because X and Y are...
I am looking for a common trial design for comparing 6 different sunflower cultivars, and a way to analyze it as a part of a course I am taking. The common know-how in my class is to set the trial in 4 randomized blocks, each plot with 50-100 plants, gather the grain as bulk from each plot, and compare the means in TU...
I have recently discovered Principal Curves while trying to solve the problem I will describe below. The principle of Principal Curves is to fit a cloud point to find the "path" running along that points. My goal is to use something like this to fit a set of GPS tracklogs running along a road, so that the result would ...
tldr version: What's an algorithm I can use to classify different series with very different standard deviations across a single variable? I'm working with data that follows changes of stock prices through non-sequential, uncorrelated, instances of time. I would like to group stocks together that tend to change price ...
I have a set of $N$ high-dimensional vectors. I use some approximation routine to make my output faster. Now I would like to evaluate the error of the approximation. Typically I use the RMSE to compute errors, but I'm getting stuck here on how to do it right. For each vector $\vec x_i \in \mathbb R^D$ I have approximat...
How should I prove that for a given series $x_{t}=\frac{3}{2}x_{t-1}-\frac{1}{2}x_{t-2}+w_{t}$ that is non-stationary, $y_{t}=\nabla x_{t}$ is stationary? I attempted to get an equation based on the lag operator $B$, defined as $\nabla x_{t} = (1-B)x_{t}$ but I can't obtain roots greater than 1 (which is the condition ...
Question: What is a quadravariate distribution? Motivation: I found a reference to quadravariate distributions in Priestley (1981) Spectral Analysis and Time Series on p325, but no definition (the author seems to think it is common knowledge). 10 minutes of googling revealed that the term gets used in quite a few paper...
This is my first time at stack exchange, hence please pardon me if I miss something. I have multiple questions and I am tearing myself as curve-fitting and estimation is foreign land to me, I am ready to learn given directions and ideas. I am trying to model liquidity (ease of trading) of a security. In my case the sec...
I have run a psychology experiment where participants received one of three sets of instructions (between-subjects). Either they were told to approach the experiment a certain way, told to approach it a different way or it was not specified how they should approach the task (it turned out that some in this group did it...
I am working on a paper, and have a problem regarding ellipsoid and Trivariate Normal Distribution. Suprisingly I can't find much in literature but I found your in one of your answers: Because this construction has nothing to do with "confidence" per se, the objective is to establish some convention for describing t...
Ljung Box test tells that the following time series is white noise (p=0.9746845 for the current run). How could this be? x=rep(10,1000) x[500]=-10 Box.test(x,type="Ljung-Box")$p.value
I have just completed a simple exercise with 2 variables (X and Y) to understand how K-Means clustering works. The results look like this, My questions is, if I have another column Z, how should the scatter plot be plotted to include the new variable Z? Would a 3 dimensional scatter plot chart be required? And how do ...
In bivariate linear regression is there a direct relationship between sample size $n$, coefficient of determination $r^2$ and $\sigma_\beta$ (the standard error of coefficient $\beta$)? Assume data have been normalized so both target and predictor variable have $\sigma=1$. Putting the question another way, does $\sigm...
Suppose that I have a set of data sets $(m_i)$. Each of this data set $m_i$ is related to a parameter $\hat{\theta}_i$ that I know. Then I have two models providing me HPDs intervals for each $\theta_i|m_i$. I want to assess/compare the performance of the two models. Obvisouly I can simply look how many of the $\hat{\...
we have ran an experiment where we compared three interaction techniques for a 3d docking task. So we had two factors: the aforementioned technique type and a factor representing the direction translation (i.e.: if participants had to move an object that appeared close to their viewpoint and move it in depth or vice ve...
I have two frequency tables, one representing observed data and one representing modeled data. I am looking for a Goodness of Fit measure, checking whether the model data fits the observed data. Problem is, my counts are rather small (most are smaller than 5), and so Pearson Goodness of Fit fails to operate on these da...
I have a set of predictors in a linear regression, as well as three control variables. The issue here is that one of my variables of interest is only statistically significant if the control variables are included in the final model. However, the control variables themselves are not statistically significant. Here is h...
I am a new R user, having some difficulties validating/replicating results from Stata (which a colleague uses) in R. We are investigating the time (TIME<-c(1:7)) course of biomarkers (BIO<-biomarker) (repeated measurements over multiple days) in 2000 subjects (SUBJECT) in linear multilevel models. The 'basic' structure...
I have a pretty standard situation of a study in which repeated measurements are taken from the same individuals. There are two factors: "Group" (with 25 individuals in each of two groups) and "Day" (time is treated here as a categorical variable). To keep things simple, let's consider only two time points, Day 1 and D...
I am testing the statistical significance of 60 strong correlated quantitative variables in 2 groups, with small sample size, non normality and presence of outliers. I have implemented a permutation test based in the t-test statistic for deal correctly the correlation structure of the variables; but I think this permut...
We have N samples, $X_i$, from a uniform distribution $[0,\theta]$ where $\theta$ is unknown. Estimate $\theta$ from the data. So, Bayes' rule... $f(\theta | {X_i}) = \frac{f({X_i}|\theta)f(\theta)}{f({X_i})}$ and the likelihood is: $f({X_i}|\theta) = \prod_{i=1}^N \frac{1}{\theta}$ (edit: when $0 \le X_i \le \theta...
I am measuring teachers' beliefs about education practices before and after a specific training workshop to determine if the workshop has a positive effect in changing teachers' beliefs towards reformed teaching practices. My problem is that I am unsure how to analyze the data. I can say that their beliefs were more tr...
Say I have $n$ independent observation of two random variables $x$ and $y$, which may be correlated, and I want to estimate $r=E[x/y]$. I can use $\bar{r}=\sum_i \frac{x_i}{y_i}$ to estimate $r$ but how do I determine confidence intervals? Edit: a single observation is of the type $(x_i,y_i)$ and obviously I can comput...
I am trying to implement LDA using the collapsed Gibbs sampler from http://www.uoguelph.ca/~wdarling/research/papers/TM.pdf the main algorithm is shown below I'm a bit confused about the notation in the inner-most loop. n_dk refers to the count of the number of words assigned to topic k in document d, however I'm not...
Even after reading the original paper on LASSO, I am still confused as to how to apply LASSO for variable selection when the response variable y is a matrix (and not a vector) of n dependent variables with t observations each. As an example, the response variable y is monthly household consumption for 50 households o...
I have a very basic model development question. The objective is to develop a predictive model. Let's say I have a dataset with 50,000 observations. Take a random split of this dataset into train (N=25000) and validation (N=25000) datasets (we know some folks prefer a test dataset but assume we are not going to do tha...
This is a homework problem. If I could have some hints on how to solve it that would be great. Mean and Covariance of a Mixture of Two Distributions: $$ I = \left\{ \begin{array}{l l} 1 & \quad \text{if subject in group 1}\\ 0 & \quad \text{if subject in group 2} \end{array} \right.$$ Suppose $\mathbf{Z}=...
I want to calculate the z-score for a distribution for which I know the odds-ratio, and the p-value. I also know the upper and lower 95% confidence limits for the odds-ratio. An example with two-data points is shown here. OR OR_95 OR_95U p-value 0.997804 0.970573 1.025798 0.876215 1.039562 1.010116 1.069866 ...
Let $r(\pi, \delta)$ denote the Bayes risk of an estimator $\delta$ with respect to a prior $\pi$, let $\Pi$ denote the set of all priors on the parameter space $\Theta$, and let $\Delta$ denote the set of all (possibly randomized) decision rules. The statistical interpretation of John von Neumann's minimax inequality...
I am fitting a model using the auto.arima function in package forecast. I get a model that is AR(1), for example. I then extract residuals from this model. How does this generate the same number of residuals as the original vector? If this is an AR(1) model then the number of residuals should be 1 less than the dimensi...
Could someone please explain how a pooled OLS is set-up when the regressors are aggregate variables that are time-varying only (i.e. do not vary for the cross-section at each time t)? If the pooled regression is expressed as: $$\;Y_{i,t} = \;X_t \;\beta_i + \;\epsilon_{i,t} $$ The response vector $Y$ is stacked: in ot...
I would appreciate if someone could help me write the mathematical equation for the seasonal ARIMA (2,1,0) x (0,2,2) period 12. I'm a little confused with how to go about this. I would prefer an equation involving $Y_t , e_t, θ$ and $Θ$.
I am trying to find optimal weights for a linear combination. I already know the signs of the weights (+/-). Specifically I have gene expression data where 100 genes belong to a certain pathway. I know which genes are regulators or not (signs) for those 100 genes. I am trying to compute a pathway score for each sample...
I have some MATLAB data; the first column is some message length, and the second column is how often that length occurs. Something like this: 15 1 40 12 200 5 215 2 My first instinct to visualize this data was to put it in a bar graph, as so: The problem with bar graphs, though, is that there is an implied equal...
Are there any limitations for using Cohen's kappa with sparse data? I need inter-rater agreement between 2 raters for ~15 items, and the data in the contingency table is quite sparse (0 in some cells, lots of values < 5).
The following process $X$ is generated as the sum of a structure $y$ and an $AR(1)$ process with $\phi=0.4$ and $\sigma_{\epsilon}^2=1$: N=200 # length of time series t=1:N A=20 # amplitude of the structure y = rep(0,N) a = 30 b = 170 y[a:b] = A * (t[a:b] - a)/ (b-a) # the structure (see the plot below) X=y+arima....
I found that $AR(1)$ process $x_t=\phi x_{t-1}+\epsilon_t$ is not always Gaussian given Gaussian innovations $\epsilon_t$. This only happens when the $AR(1)$ model coefficient is very large. This goes against with the theory (If the white noise $\epsilon_t$ is a Gaussian process then $x_t$ is also a Gaussian process). ...
I am building a multivariate Gaussian Process model that predicts output $X_i$ and $Y_i$ jointly from input location $z_i$. At the end of it all I want to be able to plot my best estimate of $X_i$ against $Y_i$ where I know that $$\begin{pmatrix} X_i\\ Y_i \end{pmatrix} \sim N_2 \begin{pmatrix} \begin{pmatrix} \mu_{X...
I have two groups of samples with a proportion of mutations in each sample being a particular type (the proportions are represented as a fraction of 1). How to I check if that type of mutation is significantly likelier to happen in one group over the other?
I'm reading Bishop on EM algorithm for GMM and the relationship between GMM and k-means. In this book it says that k-means is a hard assign version of GMM. I'm wondering does that imply that if the data I'm trying to cluster are not Gaussian, I can't use k-means (or at least it's not suitable to use)? For example, wha...
I have some p-values that I want to convert to q-values. The issue I am running into is that the qvalues being generated by storey's qvalue package are all in a very tight range (i.e. .25-.35). I am not sure what this means. I am working with a ridiculously small dataset, given the number of hypotheses, could that be...
Suppose $\theta$ is the probability that a Bernoulli random variable is one (therefore $1-\theta$ is the probability that it's zero). I have a sequence of $n$ of these i.i.d. Bernoulli random variables, $m$ out of which are ones. It is a well-known fact that $\hat{\theta}=m/n$ is a maximum likelihood estimator (MLE) ...
Preamble of the problem I am currently trying to apply Conditional Restricted Boltzmann Machines on a time series dataset problem, in particular, the dataset constitutes of 10 day stock market recordings, and in each day, 50 stock value recordings are logged that are 5 minute apart from each other. Therefore, to my pre...
I have log(return) data as time series, how I can fit this data in a Generalized Pareto distribution and estimate the parameters of this distribution, any kind of resource pointer with clear code would be good for me, If it can be done using open-source like R or Python that would be great.
Is it ok to try and estimate the parameters $c$ and $p$ of a standard AR(1) model of the form $$ X_t = c+ pX_{t-1} +e_t $$ solving the normal equation $$ \Theta = (X^T X)^{-1}X^TY $$ where $\Theta$ is the parameter vector, $X$ a vector containing the $X_{t-1}$ values and $Y$ the $X_t$ vector? The $Y$ vector would obvi...
In linear regression there are two approaches for minimizing the cost function: The first one is using gradient descent. The second one is setting the derivative of the cost function to zero and solving the resulting equation. When the equation is solved, the parameter values which minimizes the cost function is given ...
using this code pvalue = rep(NA, 100000) n = c(352, 198, 170) group = rep(1:3, n) for (i in 1:100000){ x=c(rnbinom(352, size=0.9563, mu=2.27), rnbinom(198, size=1.0468, mu=2.27), rnbinom(170, size=1.3264, mu=2.27)) kruskal = kruskal.test(x ~ group) pvalue[i] = kruskal$p.value} result = length(pvalue[pvalue<=0.05])/10...
As I understood from my experimentation on some multivariate data-sets, anomaly detection (AD) heavily depends on the underlying distribution of data. Like, for ex., you can devise a method to detect anomalies supposing a Gaussian distribution for your data, and then end up with a failure if it is actually a power-law....
I have difficulty understanding how self organizing maps (SOM) are doing dimensionality reduction. Can anybody provide a useful explanation to me? Suppose we have 20 training data points in 50 dimensions. Let's say, I have specified 3 by 3 SOM (lattice with 9 points), I embed my manifold (3 by 3 lattice) to 50-D space ...
This is a homework questions. Can you guys give me some hints? Let $U_{(1)}<\cdots<U_{(n)}$ be the order statistics of a sample of size $n$ from a Uniform$(0,1)$ population. Show that $F^{-1}(U_{(1)})<\cdots<F^{-1}(U_{(n)})$ are distributed as the order statistics of a sample of size $n$ from a population with density ...
I used the following R code to fit a probit model: p1 <- glm(natijeh ~ ., family=binomial(probit), data=data1) stepwise(p1, direction='backward/forward', criterion='BIC') I want to know what does stepwise and backward/forward do exactly and how select the variables?
Let $(X,Y)\sim N(\mu_x=1,\mu_y=1,\sigma^2_x=4,\sigma^2_y=1,\rho=1/2)$. Compute $P(X+2Y\leq 4)$. How do you compute probabilities of a bivariate normal? For a regular normal distribution I remember we had to use tables or software because there is no close form solution for the normal CDF.
Let's say that I am developing a glm on a continuous response variable. I've read a number of tutorials on glm and the estimation that it utilizes. However, I'm a little lost on the specifications that are required for developing a glm in R. According to the glm help page, family is supposed to specify the residual di...
How would one derive the density or pmf of a distribution that is shifted to the right ? For example, a Poisson distribution that is truncated at zero , is shifted to the right . And it only takes values from $x = 1$, to $x = \infty$. How can I derive its probability mass function ? Do I derive this from the poisson di...
I've used the confint() function of R package metafor to calculate heterogeneity in random effects models in a meta-analysis. I get sensible values for the various parameters (tau, tau^2, I^2) for most of the calculations I have run, however am getting back 0 values for all three parameters for one particular analysis...
Suppose I have a data vector v, in which all values are greater than zero. Now, I want to see if it follows a shifted Poisson distribution. Can I do it by shifting everything to the left first, and fitting a Poisson in the usual fashion? For example, in R I can fit a Poisson by using the "fitdistr" function. Can I do ...
I am a statistician running into an odd problem, and it feels like I am missing a key point here. I have a true model (generated by me so I know truth), and a PREDICTED model that estimates certain parameters of the true model, and I want to test validity/accuracy of the PREDICTED model. I do the same exercise with 2 ...
To develop a new questionnaire for measuring lifeguards' vigilance, after gathering data from different literature, I found 20 scales contributing to lifeguards' vigilance. Then I started to design questions for each scale in the way that in each scale, there are some questions (4 to 10 questions) with different face b...
Is it necessary to always include the random intercept in a mixed model? Can we drop it sometimes? How can we know when it is or it is not possible to drop it? Would its exclusion adversely affect the model specification? Is that effect always considerable? How can we know when it is considerable and when it is not? Ar...
Given a Poisson distribution with parameter $\lambda$ (basically a Poisson process), how can I prove that this Poisson process is independent and stationary increment? Or the memoryless property: $$P(N(t+s)|N(t))=P(N(s))$$ From what I learned, the basic definition of a Poission process includes self increment and then ...
Background I'm currently looking into how reliable confidence intervals are on bounded scores (EQ-5D) and I compare regular asymptotic, robust and botstrap-based confidence intervals. The robust (alias heteroscedacity-consistent) perform really well but have a significant over-coverage in small samples. This gets bette...
I'm trying to implement Pettitt test in R following papers like this pdf (pp. 5 & 6), or this pdf. But, I'm misunderstanding something, because having tested it with some data, I think that output is not correct. Here is the code: pettitt <- function(x, alpha=0.99) { # Pettitt AN. 1979 A non-parametric approach to the ...
I saw a paper that uses Gaussian kernel for calculation at covariance matrix of given variables. Is it mathematically Correct or not? if it is okay,what is the intuition behind ? What about using any distance function instead of Gaussian kernel?
I've come across related forums, but can't seem to fit them to my problem -- I have significant interaction in a multi-level framework between a three-level categorical predictor (condition assignment - one of which is a control condition and the other two experimental conditions) and a two-level categorical predictor...
Well my objective is to predict solar energy radiation at a particular location given some features like wind, temperature, humidity ... I have a total data for 10 years where I have the measurement for the features at 100 locations(nearby) and the solar energy measurement at the target location for each day. The origi...
I am trying to use exploratory data analysis to decide which model to use with my data for prediction either linear regression/neural networks etc, basically I am focusing on linear and non linear models. What kind of exploratory analysis can I do to decide whether a linear model is good enough for me or a non linear m...
I have a clustering results by different unsupervised algorithms in the form of coordinates (x,y) and class (it's currently binary). I would like evaluate the quality of clustering by some value. Most of the used techniques assuming that the closely located entries in the plot are related, and if they are from differen...
Hi there I have a very important question for my statistical analysis which needs to be finished in a few days. First of all I have to say that I have not much knowledge of statistics and therefore have problems to understand most of the answers for similar questions. My question is: I have conducted a survey with nine...
I'm looking for visualization ideas for the following data: I have a $10\times 12$ grid of points $(x_i,m_j)$, where the $x_i$ are a set of distances (e.g. 1,2,..., 10 m) and the $m_j$ are the 12 months. At each $(x_i,m_j)$, I have 4 values $q_1,\ldots,q_4$ which total to 1. I'm trying to show how the proportion of ...
I'm investigating using a trimmed mean to measure the location of various distributions. The distributions sometimes are heavily contaminated and sometimes not. Usually they follow something similar to a log-normal or possibly mixed log-normal distribution, but often the data is "all over the place". I've looked at the...
I understand that one of the advantages of GEE is that you make no assumptions about the joint probability distribution, relying instead on the mean, the variance and the associations (corr). Why then do we specify a family in the command for gee? model <- geeglm(y~x, data=data, id=id, family=gaussian('identity'), cors...