instruction stringlengths 9 38.7k |
|---|
Setting the scene: I have 32 samples of biological diversity. Each sample's diversity was calculated from a plot randomly generated in a area (that was defined as an "area" by me). However the problem here is that I didn't have equal number of plots in each area. In some cases I only had one plot in one area.
Question... |
I have a list of invoices and a list of payments. (both with order ID)
I want to test if the amount of unpaid invoices is significantly less than 10% using binomial test in Excel
How do I do this?
|
I have a problem regarding my final year research project which is developing a monetary model to predict the currency rate EURO/LKR using regression analysis.
I used the multiple linear Regression method to build the predictive model. The independent variables are correlated with higher VIF values. And the tests show... |
I'm reading through the math of xgboost:
https://xgboost.readthedocs.io/en/latest/model.html
Under the ADDITIVE TRAINING section of the objective function, I saw that in the derivation of the objective at step $t$, a claim is made about how the GENERAL form of the objective function for any loss function (MSE, logisti... |
I have read Christopher Olah's excellent LSTM article (I do not have enough reputation to post the link) and found this post and this post. Although I think I understand the mathematics and LSTMs at a high level, I find myself still confused about what exactly LSTM blocks are. What I mean, is that this:
I know is a la... |
i am going to do a Monet Carlo simulation to calculate the p value of kurtosis test statistic. For that i need the asymptotic distribution. I know that is normal distribution. But i dont know the parameters.
Can anyone help ?
|
I am using this R code:
library(lmtest)
TS <- read.table('Test.txt', sep='\t', header=TRUE)
grangertest(X ~ Y, order = 3, data = TS)
grangertest(Y ~ X, order = 3, data = TS)
I am getting these results:
Granger causality test
Model 1: X ~ Lags(X, 1:3) + Lags(Y, 1:3)
Model 2: X ~ Lags(X, 1:3)
Res.Df Df F P... |
Suppose I have n observations, which are all normally distributed with the same mean (which is unknown) but each has a different variance (the different variances could be called $v_1, ..., v_n$ for example, which are all assumed to be known).
What is the best estimate of the mean? And further, how does one compute the... |
Suppose $y|\theta \sim$ Exponential$(\theta)$, and the prior distribution of $\theta$ is Gamma$(α,β)$.
(a) Suppose we observe that $y \geq y'$, but do not observe the exact value of $y$. What is the posterior distribution, $p(\theta|y≥y')$, as a function of $\alpha$ and $\beta$? What are the posterior mean and varianc... |
I have $n$ sensors, each of them providing a value $y_i$ for a measurement with a corresponding standard deviation $\sigma_i$. I know that the most probable value $Y$ is given by
$$Y=\left(\sum_{i=1}^n \frac {y_i}{\sigma_i^2}\right)\left(\sum_{i=1}^n \frac {1}{\sigma_i^2}\right)^{-1}$$ My problem is that I do not remem... |
Consider error of hypothesis h over training data errortrain(h) and error over
entire distribution D of data errorD(h). Hypothesis h in H overfits training data if
there exists an alternative hypothesis h´ in H such that:
errortrain(h) < errortrain(h´)
errorD(h) > errorD(h´)
I am struggling to find literature on that... |
I'm doing a biology course and am very inexperienced with stats. My supervisor recommended that I go away and try an ANOVA with block design, but I hadn't heard of this. Having looked up about it, I can't tell the difference between that and a nested ANOVA. Please could someone explain? I will be running it in R and ha... |
R squared is calculated by doing 1 minus the the squared error of the predicted line divided by the squared error of the y mean line. When the line is flat, the y mean will have a squared error of close to zero, because the y mean line is also flat. Because of the low squared error from the y mean line, the R squared o... |
I need to model my data into a function like shown in the following picture. But how I can do this mathematically? Is there any similar function to model data that should increase on smaller values fast and converge to 1 relatively slow?
|
i'm having a little trouble to prove that this random variable does not converge almost surely:
$X_{n} =
\begin{cases}
0 & \text{with probability}: 1 - \frac{1}{n} \\
1 - \frac{1}{n}, & \text{with probability}: \frac{1}{2n} \\
1 & \text{with probability}: \frac{1}{2n}
\end{cases}$
I have already shown that $X_{n}$ co... |
I am working on time series. Theorem A5 of this document http://www-stat.wharton.upenn.edu/~stine/stat910/lectures/11_clt.pdf claims proof of asymptotic normality for autoregressive process of a special type (idependent white noise) of the sample mean. Also, the Wold decomposition says that it is almost possible to rep... |
1D cross correlation is the correlation between two 1D vectors. 2D cross correlation is the correlation between two 2D matrices
I was reading this link which talks about 1D cross correlation.
Can anyone provide me a real-life example of a 2D cross correlation, and show me how can I manually calculate a 2D cross correla... |
On my 4 variables logistic regression model, exhaustive grid search finds a much better solution than sklearn LogisticRegression.
Grid search delivers:
accuracy: 55.11%
log reg coefficients: 0.58 -0.19 -0.03 0.20
Sklearn LogisticRegression delivers:
accuracy: 53.16%
log reg coefficients: 0.0015 -0.0010 0.0... |
I have collected this empirical data, and would like to know which function describes this data (3 curves) at best.
I have try non linear fit in R, but not good fit.
How can I discover the relation between y and x in R?
The data:
"n";"d1";"d2";"d3"
3;0.517638090205041;1;1.4142135623731
4;0.390180644032256;0.765366864... |
I am trying to find the Joint density of $X_{(n)}-X_{(1)}$ and $X_{(n)}$ for Uniform distribution $[0,1]$, where $X_{(1)}$ and $X_{(n)}$ are the smallest and largest observation (of $n$ samples).
Firstly, I found the density of $X_{(n)}, X_{(1)}$. Let $U=X_{(n)}$ and $V = X_{(1)}$.
$$
\begin{aligned}
f_{U,V}(u,v)=n(n-... |
I have made a model with continuous and categorical(binary) predictors, with the dependent variable being continuous.
Can I create an interaction variable between 2 binary predictors and add it to the model while excluding the 2 predictors it came from?
It seems to me it would be valid in the sense that, if for example... |
My professor posted a slide which said:
Let $(E, (\mathbb{P}_\theta)_{\theta \in \Theta})$ be a statistical model based on observations $X_1, \cdots, X_n$, and assume $\Theta \subseteq \mathbb{R}$.
Let $\alpha \in (0, 1)$.
Confidence interval of level $1 - \alpha$ for $\theta$: Any random (i.e., depending on $X_1, \c... |
When doing MCMC, samples are not independent. The normal strategy is to retain every Nth sample for some N. The result samples should be samples from the target distribution.
What if we kept all the samples and then at the end randomly (uniformly) sampled from those?
Would we be sampling from the target distribution?
|
I have started learning about lasso from this review ("Least Squares Optimization with L1-Norm Regularization" by Mark Schmitd).
The optimization problem is:
$$\min_{\beta } \left\{ \frac{1}{N} \sum_{i=1}^N (y_i - x_i^T \beta)^2 \right\} \text{ subject to } \sum_{j=1}^p |\beta_j| \leq t$$
where $t$ controls the amount... |
I am trying to replicate a logistic regression analysis from a paper using R in lme4 (the specific analysis in the paper uses the glmfit function in Matlab). In it, they conduct a logistic regression on a binary outcome (0 or 1) to determine the beta coefficients of 8 predictors (using the betas as evidence for how muc... |
I need help deciding which statistical analysis I should run.
I am examining individuals with or without a chronic illness and if they differ on 2 questionnaires (1 is health literacy and the other is self-efficacy). The health literacy measure is a 4-point Likert scale, and the self-efficacy measure is a 10-point Like... |
Here is the distribution of my response variable that I have to regress:
1 2 3 4 5 6 7 8 11 15
2 9 3 7 7 7 6 5 7 1
Its a medical score that can take integer values from 0 to 24. The question is: what tool to use?
I have the following options in my mind:
Linear regression. The response is not conti... |
In a study where I compare the male vs. female university students (independent variable = gender) on 20 different outcomes (each referring to a wellbeing measure), can I apply a false discovery rate (FDR)?
Across the literature it seems that FDR is predominantly used for situations where your independent variable has ... |
I have 2 years gas data from corn field. 4 treatments are replicated in 4 blocks. My samples look like:
**treatment block samplingTime Year gas_conc**
trt1 A day5 2015 0.5
trt2 A day5 2015 0.34
trt3 A day5 2015 0.3
trt4 ... |
Take the following sample linear regression equation:
$$
\hat{y} = 20 + 50X
$$
I understand how a change of units in X that consists of simple scalar multiplication would alter the regression equation. For example, if we suppose X is measured in millimeters and we change it to centimeters, then the equation would becom... |
I read that when adding a irrelevant variable to a multiple regression, the variance of the other regression coefficients will increase.
However, does adding a relevant variable (to combat omitted variable bias) increase the other regression coefficients in the regression model? How would the variance on the other coef... |
I read this part in the paper but i didn't fully understand.
"we additionally want the normalization to obey the convolutional property – so that different elements of the same feature map, at different locations, are normalized in the same way"
1- what is the meaning of "convolutional property" and "normalized in th... |
I´m reading the chapter 13 "Adventures in Covariance" in the (superb) book Statistical Rethinking by Richard McElreath where he presents the following hierarchical model:
(R is a correlation matrix)
The author explains that LKJcorr is a weakly informative prior that works as a regularizing prior for correlation matrix... |
I have the number of amino acids in cytoplasmic domain for enzymes and non-enzymes for CD proteins.
I want to generate a probability density distribution for enzymes and non-enzymes using their number of amino acids in cytoplasmic domain. I think the number of amino acids is a discrete variable (count data). In that c... |
I understand that a stable distribution is a distribution whose linear combination of two independent random variables with this distribution has the same distribution (ignoring location and scale parameters). I haven't found a specific definition for a translationary invariant distribution but it seems its usage in sc... |
I have a highly imbalanced binary classification problem. Right now I perform a 10-fold cross-validation while training my model (Convolutional Neural Network). Each fold generates its own F1-score, then I average all 10 F1-scores to produce the mean F1-score.
The question is if I select an optimal threshold for each ... |
I have a dataset that has 5 features; 2 continuous and 3 categorical. If I use one hot encoding on each of the categorical features, I end up with some 600 features for each observation. I then use tsne to reduce the dimensionality of the data from ~600 to 2. I plot the tsne results in a scatter plot. You can see some ... |
What is auxiliary loss that is mentioned in the PSPNet(Pyramid Scene Parsing Network) paper link ?
I'm quoting the part of the paper down below
An example of our deeply supervised ResNet101 [13]
model is illustrated in Fig. 4. Apart from the main branch
using softmax loss to train the final classifier, another cla... |
It is a well known fact that (Making sense of principal component analysis, eigenvectors & eigenvalues) PCA can be understood as a transformation of axes given by the data when the data $X_1,\cdots,X_n$ are generated by $L^2$ random variables. Such an explanation collapse when the data generating mechanism does not hav... |
I am reading meta analysis such as this one in page 89.
It says the weight assigned to each study is $w_i=\frac{1}{v_i}$
where $v_i$ is the within-study variance for study $(i)$.
The weighted mean $\bar{T_•}$is then computed as
$$\bar{T_•}=\frac{\sum_{i=1}^kw_i T_i}{\sum_{i=1}^kw_i}$$
I want to do a meta analysis on ... |
What are the costs and the benefits of adding more variables to multiple regression?
Adding a relevant variable can prevent bias in the estimate of the other regression coefficient but can also increase variance of other regression coefficient.
Adding an irrelevant variable can increase the variance of the estimate of ... |
I'm learning about locally linear embedding. The cost function for finding embedded data is given by
$\Phi(X) = \Sigma_{ij}M_{ij}(X_i.X_j^T$)
Why we need to select the $2^{nd}$ to $(P+1)^{th}$ lowest eigenvectors of $M$?
|
I've got a dataset comprised of a bunch of "paired" time series, where the data in each part of the "pair" are dependent on each other, but I'm actually concerned with (dis)proving that the two time series in each pair are significantly more similar to each other than they are to all the other series in the dataset. Ho... |
I'm currently doing an empirical project in econometrics. I examine the effect of globalisation and some other control variables on poverty, doing OLS cross section given a sample of 74 countries (OECD and highly industrialized countries are excluded).
Now I have quite a problem in understanding how to interpret the c... |
Is the model below an example of nonlinear regression?
$$y = \beta_1 + \beta_2^2x$$
Some books say, it is, but I'm not convinced as $\beta_2^2$ can itself considered a constant denoted by (say) $\beta_3$.
I have studied other examples of nonlinear regression and been convinced about them.
The question differs from a... |
I have a stochastic process that's represented by $X_t = \epsilon_t \times \epsilon_{t-1}$ where $\epsilon_t$ ~ $N(0, \sigma^2)$ and iid. I'm asked to find the expected value of $X_t$ and the autocovariance function $\gamma(t, s)$ for all $s, t$.
I've worked out the problem, but I am not sure if this approach is right... |
I have already removed three outliers from the ANOVA and ANCOVA analysis to improve the models. I want to report the descriptive statistics and p-values.
First I removed these outliers, and then I applied the analysis. My question is, for publication, should I provide the information before or after removing the outli... |
Suppose you have data containing a set of features and a target variable you wish to model. You obviously want to remove any outliers from your data. Univariate approaches may not be sufficient as some seemingly abnormal values of a single feature may not be so abnormal when considering the values of other features al... |
Initially $y$ is a function of $x$, then $x$ is a function of $y$. Even just a hint would be dearly appreciated.
|
I am studying the part of lack of fit test on linear regression analysis.
let
$y_{ij}=\mu_j + \epsilon_{ij}$, $i=1,2,...n_j$, $j=1,2,...,k$
be the full model. ($\epsilon_{ij}\sim N(0,\sigma^2)$, i.i.d)
And the reduced model is
$y_{ij}=\beta_0+\beta_1x_j + \epsilon_{ij}$, $i=1,2,...n_j$, $j=1,2,...,k$
that is, there is... |
I have been reading many deep learning papers where each of them follow different architecture. I cannot see what the logical sense or the intuitive sense behind each layer in each architecture. I got a sense that many of those architectures are just arbitrary ones that we found them work in a perfect way for our appli... |
I'm trying to find probabilities for a scenario that works exactly like hypergeometric distribution, except that every time you make a draw, you replace it with a "failure"-object. So eventually you'd end up with no successes among the population. What I'd like to describe is the probability of a certain number of succ... |
I am totally new to machine learning and I'm trying to use scikit-learn to make a simple logistic regression model with 1 input variable (X) and a binary outcome (Y). My data consists of 325 samples, with 39 successes and 286 failures. The data was split into a training and test (30%) set.
My goal is actually to obtai... |
I am trying to solve the next exercise but I don´t know how to solve this.
Let $F$ be the multivariate distribution function of a random vector
$X\in\mathbb{R}^p$ and let $F_i$ be the univariate distribution of its
$i^\text{th}$ component $X_i$.
For $0<u<1$ let $$F_i^{-1}(u)=\min\{r\in\mathbb{R}:F_i(r)\geq u\}.$$
... |
I am trying to solve the next exercise but I don´t know how to start.
Let $X\in\mathbb{R}^n$ be a random vector which is exchangeable in the sense that $X$ has the same distribution as $(X_{\pi(i)})_{i=1}^n$ for any fixed permutation $\pi$ of $\{1,2,...,n\}$.
a) Show that the covariance matrix of $X$ equals $$\Sigma=\a... |
I understand that if a graph is close to the shape of a bell shape (and the mean tends to zero, and the SD is close to 1), then we can say it is normally distributed. Visually inspecting a normal curve can be subjective as well. How should I confirm if the residuals of the curve below is normally or approximately norma... |
I am studying the book 'learning from data' by Mostafa. I understand that the number of dichotomies for positive rays on the number line is $N+1$ (ie if you have one point, $x$, on the number line, you have the ray from $0$ to $\infty$ and the ray from $x$ to $\infty$ for example).
What I am wondering, though, is what ... |
I have sales data of my organization for last 3 years and based on that I have to forecast Budget amount for next Fiscal Year. Sales data is available across different Geographies for various Product subscription.
Now, I have gone through some blogs related to different Time series modeling on Analytics Vidhya and Mach... |
I ran a linear regression model using four regressors. The four regressors all share the same scale / unit.
Here is the regression table:
I realize there is multicollinearity between Ethnic and Ac Age, I even tested the correlation between them (Pearson r = 0.81 with p-value<0.001).
Here is my question, I want to make... |
Hi all I have the following question:
Given that the pdf of Y is $\frac{1}{\Pi (1+y^2)}$ for $y\in (-\infty, \infty)$, what's the probability of $Y^{-2}$ being in the interval [1/4,4].
My initial reaction is to simply integrate $Y^{-2}$ with 1/4 and 4 as the limits. Am I on the right track?
|
I am trying to solve a problem where I need to find Covariance between X and Y random variables. I am given that $Cov(X) = a$ and $$Cov(Y) = \left(\begin{array}{ccc}
3&-2\\
-2&5
\end{array}\right)$$
But I am not sure about how can I find Covariance between 2*2 and 1*1 matrix. Can someone please help me or point out to ... |
What are the pros and cons of weight normalization vs batch normalization in general and for convolutional neural networks specifically?
|
Waiting the next course of Andrew Ng on Coursera, I'm trying to program on Python a classifier with the softmax function on the last layer to have the different probabilities.
However, when I try to use it on the CIFAR-10 dataset (input : (3072, 10000)), I encounter an overflow when it computes the exponentials. Indeed... |
I realize this question might be confusing, so I'd first like to explain my setup: Imagine you have the earth split into grids. At each gridpoint there is a vector, and let's imagine I have two Dataframes in this format.
For simplicity let's assume those are recorded windspeeds and temperature at different timepoints(t... |
Linear regression can be formulated as either:
$E(Y|x)=\theta^\intercal x$
or
$Y|x=\theta^\intercal x + \epsilon$
which implies $\epsilon = Y|x - E(Y|x)$.
The assumptions are:
The relationship between $X$ and $Y$ is linear
$\epsilon\sim N(0, \sigma^2)$ (Gaussian error, homoscedasticity)
$\epsilon$ and $X$ are independ... |
Let $x_t$ be a $1$ x $(k+1)$ vector of explanatory variables for observation $t$. Show that the OLS estimator $\hat{\beta}$ can be written as:
$$ \hat{\beta} = \left(\sum_{t=1}^n x_t'x_t\right)^{-1}\left(\sum_{t=1}^n x_t'y_t\right)$$
I have no idea where to start with this, could someone provide a hint?
|
I want to perform One-way analysis with permutation test. In this link, I found some instructions how to proceed in R. In that tutorial, the example data set has equal sample sizes by factor:
I was wondering to apply similar approach with unequal sample sizes by factors:
I believe that in this situation, some sort ... |
I'm trying to fit a GLMM on simulated response time data (continuous, positively skewed) obtained from hypothetical participants (Subject) responding to the same set of hypothetical items (Item), so it's a fully-crossed design. I intend to include several crossed-random effects for Subject and Item, so in lme4 language... |
I'm reviewing material for an exam in statistics. Can anyone tell me why the answer to this question isn't C? In my view, the five number summary in C is clearly more symmetrical than D. Am I missing something here?
|
For the inference in a dynamic bayesian network (DBN), forward and backward algorithm can be applied:
$P(X_k | o_{1:t}) \propto P(o_{k+1:t}|X_k) P(X_k|o_{1:k})$. By using this method, observation from time $1:k$ can be discarded, the posterior distribution $P(X_k|o_{1:k})$ after time $k$ is used as a prior to estimate ... |
I'm new to Bayesian analysis, and still getting acquainted to some of the basic ideas. I'm working through Gaussian Processes for Machine Learning. Stepping through Chapter 2 I'm very confused with this Figure 2.1, page 10 showing an example of a Bayesian linear model.
Here (a) shows the prior, p(w)~N(0,I), (b) shows ... |
Recently I became curious about what I imagine to be an old problem: the fidelity of histograms to an underlying data set. CrossValidated has a number of questions on the subject of "optimal histograms" such as:
Calculating optimal number of bins in a histogram
But the answers looked more like heuristics than metrics ... |
Suppose $X_i$ conditioned on $\mu$ is iid $N(\mu, \sigma^2)$ and $\mu$ is distributed as $N(\mu_0, \tau^2)$. Is there a way to estimate $\tau^2$?
|
I have a continuous dependent which is the concentration in the blood and several independent variables. I applied the linear regression and it seems that there is the violation of assumption.The R square of the model is 0.06. We have enough sample size around 900 observations but I was wondering if it is reasonable to... |
I am interested to show the historical temperatures in my city, but I have many missing values. Indeed, I have 4 diferents geographical points (stations) in the city with historical registred temperatures. My data base is organizaed by monthly along the last 50 years. For each of the 4 points in the city and for each m... |
When calculating ACF and PACF, what is the rule regarding differencing? For example, I have an increasing time series- looking at instrument drift. Differencing returns what looks like white noise. When I do ACF and PACF, do I use the raw values or the differenced values?
I've done both, just playing around. The ... |
I am running a double log model. My dependent variable is GDP growth per capita. My independent variables are military expenditure as share of GDP and gross capital formation as share of GDP. All three variables are in log form. My question is, how can I interpret my results when my variables are in log and ratio f... |
Hi all,
I need some advice on possible algorithms that I can apply to the following problem (if possible with pointers to implementations of these algorithms).
The dataset:
I have some dataset about boreholes drilled in the earth. For each of the boreholes we know that there are some intervals which contain a certain... |
In causal inference, the consistency assumption states that there are no multiple versions of treatment. Specifically, for a potential outcome unit $Y_i$ and a binary treatment vector $\mathbf{Z}$,
$$
Y_i(\mathbf{Z})=Y_i(\mathbf{Z'}) \ \ \forall \ \mathbf{Z},\mathbf{Z'}:\mathbf{Z}=\mathbf{Z'}
$$
In literature, it says... |
I'm currently putting together a with-in subject, experimental study that has one IV with 2 levels (i.e. gender: female and male) and two DVs (salary and perceived competency score).
What would be a suitable statistical test to analyse the data collected?
Edit: Sorry, I probably should have included that. The research ... |
Given a set of data and training points, suppose we obtain a polynomial regression of the form
$$f(x) = w_0 + w_1 x + \ldots w_n x^n$$
Is there a rule of thumb as to what order of the polynomial is it
more likely to overfit? For example, can we say that as the order of the polynomial grow, the likelihood of overfittin... |
Working with ANES data; N=4,271. Unfortunately, and the group was undersampled (N=20).
|
Like this example, it shows (Intercept) and x, why not slope? And I'm not sure x means what?
x <- c(1,4,12,34,86,99)
y <- c(12, 48, 500, 1000, 1200,3242)
plot(x, y)
lm(y~x)
Coefficients:
(Intercept) x
27.65 24.73
summary(lm(formula = y ~ x))
Call:
lm(formula = y ~ x)
Residuals:
... |
Jackman (2009) writes on p.xxxi-xxxii:
Consider researchers analyzing cross-national data in economics,
political science, or sociology, say, using national accounts data
from the OECD. [...] one can feed the OECD data to a computer program,
and have stan- dard errors and significance tests reported for various
... |
I am trying to implement the Nelder-Mead algorithm for optimising a function. The wikipedia page about Nelder-Mead is surprisingly clear about the entire algorithm, except for its stopping criterion. There it sadly says:
Check for convergence[clarification needed].
I tried and tested a couple of criteria myself:
Sto... |
I have a sample $X$ and two normal distributions $\mathcal{N}_1$ and $\mathcal{N}_2$. I would like to determine from which of these distributions $X$ was more likely sampled.
However, $p(x | \mathcal{N}_1)$ and $p(x | \mathcal{N}_2)$ are both $0$ as the normal distribution is continuous. A sneaky (but maybe wrong?) wor... |
I’m trying to use PyMC3 to sample from a maximum entropy distribution over binary patterns of length $N$, constrained by means and pairwise correlations. The distribution is given by:
$$P(X)=\frac{1}{Z}\exp\left({\displaystyle-\sum_i{\alpha_ix_i}-\sum_{i\ne j}{\beta_{ij}x_ix_j}}\right)$$
and is parameterized by the alp... |
I build CNN network over documents with triplet loss. And compare documents with cosine similarity. It does really find similar docs and catches interesting dependencies. But simple tfidf model does it better in terms of my test set.
I use convolution over words (with word2vec embedding) in a sentence and then make sec... |
I ran a linear regression with one dependent and one explanatory variable. The data covers log returns of an index and log returns of a stock (natural logarithm).
log return of stock = Alpha + Beta + log return of index + error
The p value for the Beta estimate is <2e-16. I googled the meaning of this number, which me... |
My experimental design is GRBD's (generalized randomized block design) with split plot (strips 1&2).
I made my model with the lmerTest package to check the effects of g_diversity and t_diversity on the response variable decomposed_weight:
m3b<-lmerTest::lmer(decomposed_weight ~
g_diversity:t_diversi... |
I have a timeseries of model data and a timeseries of observation data, for the same timeframe.
The model fits the observations quite well, except when spikes occur: spikes are almost always overestimated, sometimes a little bit, sometimes a lot.
I would like to quantify this spikes' overestimation, but I don't want th... |
I'm considering the case of a factor which is detrimental to performance but including also, a quadratic term to allow for the existence of a non-linear relationship. In all cases, both linear and quadratic terms are negative.
Does this mean that the factor is not only detrimental to performance but is increasingly so ... |
I have the following data from a Research paper:
S1 : n = 30 / Rest : n = 66
SH 11 / 8
For this to calculate p-value I have done it like following:
library(MASS)
x = matrix(c(19,11,58,8), nrow=2, byrow=T)
D = factor(c("S1","SH"), levels=c("S1","SH"))
m = glm(x~D, family=binomial)
summary(m)
Call:
glm(form... |
I want to experiment with a multi-level machine learning structure. Here is a conceptual plot:
On the first level are multiple learning algorithms that provide input for a second algorithm (the 'output layer').
My question is:
How do I generate the input for the second level during training?
I came up with two options... |
It is well-known that if two random variables are jointly normal and uncorrelated, then they are independent. Does anyone have an intuitive reason why this is true? Explanation in terms of data is greatly appreciated.
Updates:
After seeing the answer by @kjetil b halvorsen, I feel I should give some more details. As fa... |
I have read about logistic regression on Quora and also from different online source and they said that,
$$logit = b_0+b_1x$$
Where
$logit = \log(\frac{p}{1-p}) = \log (\frac{probability-of-event-happening)}{probability-of-event-not-happening)} = \log (Odds)$
$or,\log(\frac{p}{1-p}) = b_0+b_1x $
My question is we kno... |
I have a linguistic dataset consisting of 389 sentences and my aim is to classify these sentences into meaningful groups. If the size of the dataset would be smaller – say, only twenty or thirty sentences – I could just read each sentence, compare it to other sentences and conclude that:
- sentences 1, 3, 8, 14 and 20... |
If I train a machine learning model, how do you explain the relation between model metrics and a predicted output?
For example with a Logistic Regression, through a series of parameter tuning CV iterations I find a model that preforms 0.95 overall accuracy, 0.75 precision on positive class, and 0.66 recall on positive ... |
I'm trying to run the lmrob() function in the R package robustbase, using data from a mixed factorial design study. My dependent variable is repeated (pre+ post) and I have two independent variables. I'm entering the post-measurement as the dependent variable, and controlling for the pre-measurement.
The function I'm ... |
I have the following problem with determining whether there is a general structural break in my panel data. Suppose we have 100 countries producing rice from 2000 to 2010. Now for a certain country I can detect a structural break almost automatically in an endogenous manner. However, this would produce structural break... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.