instruction stringlengths 9 38.7k |
|---|
I need your assistance in choosing the right analysis method. A sociological research came to see if there are relations between people’s ethnicity and their opinion on who is suitable to be a president.
Subjects from five ethnic groups (whites, blacks, Hispanics ,Native Americans and Asians), and all ages (grouped to ... |
I am attempting to conduct natural language processing on website traffic, specifically trying to use supervised ML to identify possible malicious attacks. However, the problem is that it would take too much storage to use something similar to bag of words, because every time a new request would come in, the normalizat... |
I have the following problem:
The are two numbers unknown real $A_1, A_2$, and two known drawn approximations $B_1, B_2$ such that
$$A_i-B_i\sim N(0, \sigma).$$
Does there exist a function $f:\mathbb{R}^2\rightarrow\mathbb{R}_{\ge0}$, independent of $A_1, A_2$, such that
$$Pr\big(f(B_1, B_2)\le A_1^2+A_2^2\big)=0.5.$$
... |
My apologies if this is a simple question. I'm trying to measure if the average fitness of some variable increases over iterations. Each iteration consists of 10 fitnesses (discrete values), and there are 10 iterations. I've plotted the average fitness against the iteration.
How do I show whether the change in the av... |
I am doing an introduction to ML with tensorflow and I came across softmax activation function. Why is in the softmax formula e? Why not 2? 3? 7?
$$
\text{softmax}(x)_i = \frac{\exp(x_i)}{\sum_j \exp(x_j)}
$$
$$
\begin{eqnarray}
\sum_j a^L_j & = & \frac{\sum_j e^{z^L_j}}{\sum_k e^{z^L_k}} = 1.
\tag{79}\end{eqnarray}
... |
Suppose I have a highly skewed real-valued variable that takes on negative, zero, and positive values. One of the seemingly efficient ways to transform such a variable so that it's distribution becomes more normal-like and thus more suitable for further analyses is to use the Inverse Hyperbolic Sine (IHS) transformatio... |
I have a list $S$ of $N$ non-vector elements (in this case words or concepts), and I'd like to partition them into k subsets of similar words.
For each pair $(a,b)$ with $a,b \in S$, I have a number $p_{a,b}\in [0,1]$ representing a noisy probability that $a$ and $b$ are in the same class (I asked my respondents to gr... |
I have a variable $Y_i = Y_{1,i} + Y_{2,i} + \cdots + Y_{n,i}$. Specifically, $Y_i$ is a measure of consumption for an individual $i$ and $Y_{1,i},Y_{2,i},\cdots$ are consumption expenditures on various subcategories for that individual.
Following an individual and exogenous income shock $X_i$, I am interested in how i... |
In Machine Learning the standard practice for learning a Classifier --e.g. fitting a Logistic Regression model-- and then validating its performance is to split the original/available Dataset into a train and test dataset randomly --typically 70% of the data used for training and 30% for validation. Using the training... |
When air and noise pollution originating from traffic (shared) sources are considered, what statistical analyses (except correlation coefficient) you would recommend/suggest to study whether there exists any relation between their modelled values or not (in an urban environment)?
Googling this question would also retur... |
The correlation coefficient of the data pairs $(x_i,y_i), i=1,\dots,n$ is given by $$r = \frac{\sum_{i=1}^n(x_i-\bar{x})(y_i - \bar{y})}{(n-1)s_x s_y}.$$
Hence $r= 0$ iff $\frac{1}{n}\sum_{i=1}^n x_i y_i = \bar{x}~\bar{y}.$
How does one interpret this? I am teaching a course in Probability and Statistics for the Master... |
My data looks like this:
The sample size is 24 and only has two categories.
From what I understand, for goodness-of-fit, using chi-square test is for sample size > 30,
and Yates' correction for continuity or Fisher's exact test only worked for 2 x 2 table.
Is there another way to approach this?
2017/8/7 Edit:
For ex... |
Assume we have a data set of n points in d dimensions, represented by feature matrix X ∈ $R^{n×d}$ and corresponding output vector y ∈ $R^n$
. Let T = $τI_d$, where $τ$ ≥ 0, and $Id$ is the $d×d$ identity
matrix. We define a new feature matrix $X'$ ∈ $R^{(n+d)×d}$
and output vector $y'$ ∈ $R^{n+d}$ as follows:
$X'$= $[... |
NOTE: This is just a toy project - I'm trying to learn by doing. I am aware of the previous work in this area. This question is about how to correctly populate my training, validation and test sets in this specific example.
My goal is to use a CNN to classify images into 3 distinct categories:
normal
blurry
highly shar... |
Gauss–Markov_theorem states that OLS estimator is a BLUE estimator. My doubt is can there be any other linear estimator, other than OLS, which is also a BLUE estimator?
After going through the proof of why OLS is a BLUE estimator, I feel that only OLS estimator can be the BLUE estimator. Unbiased Linear Estimators from... |
What is Eta squared? Can you help give an example to demonstrate what Eta squared measures. Distinguish between variability due to the IV and variability due to subject variables.
|
I have a binary classification problem (i.e. is observation positive or negative) and I'm interested in what information I can obtain about observations in my test set. I don't care about the model parameters or observations in my training set. I have plenty of data and would just use an uninformative prior as the task... |
I have the following situation. In the explorative study, I had run several EEG experiments using Neurosky Mindwave (single-electrode EEG set). The device outputs real-time calculated "attention" values once per second in the range 0-100.
I had 8 participants and 4 consecutive sessions in 4 days (a session per day).... |
I am training a GAN model, and I am having a hard time fixing a NAN loss problem for my discriminator. Specifically, my discriminator's loss becomes NAN at the exact same iteration even with different hyper parameters. For instance, even if I use relu, tanh, leaky relu, the loss becomes NAN at iteration 4837. I've trie... |
Consider a naive Bayes classier with a binary class $Y ∈ {0, 1}$ and three binary features $X_1, X_2, X_3$ ∈
{0, 1}. You are given a set $D$ of $n$ training examples, i.e.
D={$(x^{(1)}_1, x^{(1)}_2, x^{(1)}_3, y^{(1)}), . . . ,(x^{(n)}_1, x^{(n)}_2, x^{(n)}_3, y^{(n)})$}.
Suppose for some example the posterior is $P(Y ... |
A model $Y=(\beta_0+\beta_1x)^{-1}+\epsilon$, where $\epsilon \sim N(0,\sigma^2)$ is to be fitted to the data $(x_1,Y_1), (x_2,Y_2), \dots (x_n,Y_n)$.
Is this a linear or non linear model, and why?
Show how it can be made into a GLM and state the link function?
Any help would be great!
|
This work is from a textbook where the answer is given as the MLE being $X_{1:n}$ where $1:n$ indicates the minimum value. The pdf of the distribution is given as:
$$
f(x;\theta)=\begin{cases}2\theta^2x^{-3}\hspace{10pt}\theta\leq{x}\\0\hspace{33pt}x<\theta;0<\theta\end{cases}
$$
Typically, I would calculate the log-li... |
I'm using prof Hyndman's fpp2 package in R to generate dynamic regression model with auto.arima. I want to see the R2, but it's not shown in the summary output. Just wonder it's not an important metric in dynamic regression? is it possible to quickly generate it?
thank you all.
|
I'm struggling to translate this answer into a working R function.
I have a population $V$ of $n$ weighted items. I want a sample $S$ of size $m$ selected by weighted random sampling. How do I define the probability of each item being sampled?
V = c("A", "B", "C", "D", "E", "F", "G", "H", "I", "J")
W = c(0.05, 0.05, ... |
I have been teaching statistics for many years at the university level - but this question is beyond my understanding - due to the variables involved.
Several years ago, I was entertaining a relocation to a different area and a different way of life. I was very unsure and skeptical - as the change would have followed m... |
I've been taking Andrew Ng's course on Coursera, and although it has been great so far, I loathe his lack of supplementary documents on proofs. Thankfully, there are some great articles found pretty good article on the backpropagation proof, namely, this one by Sudeep Raja.
There are some notation differences and even ... |
I have a typical water quality data set, containing a number of sites sampled across a couple of years, generally on a monthly timescale.
I want to estimate the 80th %ile for setting water quality objectives, which is fairly easy on a site by site basis. However, how can I do this where certain sites might be aggregate... |
I am interested in whether a mixed-effects model yields more power than a repeated measures ANOVA and why.
A fried of mine wrote this in an email the other day and I found it striking.
"Repeated-measures ANOVA does not account for random effects. It treats everyone in the same cell in a factorial design the same. Any ... |
When you sum N IID samples from a univariate distribution, the sum approaches a normally-distributed value.
Likewise, when you sum variables together, the moment-generating functions of their distribution can be multiplied to produce the resulting moment-generating function of the sum.
It would seem that you could expo... |
I understand that we need to normalize data for classification problems because otherwise the variable with the larger scale will dominate the result. But why don't we normalize for linear regression?
Could someone please provide an intuitive explanation or an example to explain the difference between classification al... |
I am using LDA (Latent Dirichlet Allocation) to extract topics. I want to do topic modelling and use the topics as features to do document classification. the reason for doing classification is to evaluate my LDA model.
the same as this link
lda , my question is that when I generated my topics, what should be the labe... |
I'm struggling to understand why the following R outputs don't yield the same value.
require(mvtnorm)
require(expm)
set.seed(123)
d <- 10
mu <- rnorm(d)
Sig <- tcrossprod(rep(1, d)) + 3 * diag(rep(1,d))
mvtnorm::pmvnorm(upper = rep(0, d), mean = mu, sigma = Sig)
[1] 0.01361526
attr(,"error")
[1] 4.808363e-06
attr(,"... |
I was solving logistic regression using IRLS (wiki) described in the wiki link. Now I have a doubt, if $X$ has dependent features then $X^TS_kX$ will not have full rank and thus will not be invertible in that case will solving
$$argmin_w \| S_k^{1/2}Xw -(S_k^{1/2}Xw_k + S_k^{-1/2}(y-\mu_k)) \|$$
which is least squares... |
In my understanding, econometrics estimates partial (ceteris paribus) correlations with the aim to primarily estimate causal relations. For that, it normally uses the whole dataset that is available. Econometrics can be parametric and non-parametric.
Meanwhile, machine learning is not interested in causality, but in "... |
Is there a closed-form expression for the distribution of the Sample Skewness and the distribution of the Sample Kurtosis of data sampled from an exponential distribution?
|
We often see the terminology "confidence ellipse". This is not correct: in dimension 2, an ellipse is a curve, and the confidence region is the interior of this curve, not the curve. Similarly, in dimension 3, an ellipsoid is a surface, not a volume. And I don't know any name for the interior of an ellipsoid (though th... |
The lasso and the elastic net are not able to handle variables with more than two categories and therefore a split of categorical variables into dummies is necessary for the application of these methods. This can result in several problems and therefore there exist extensions for the lasso to the group lasso or the spa... |
Name Pay Quartile
A 10 1
A 11 3
R code:
MQuantile <-with(M,ave(M$pay,M$name,FUN = function(x)ntile(x,n=4)))
I calculated quartile for the data points which have various count of distribution but one of my names has only two data points so when I calculate Quartile for this data it shows Quartil... |
I'm trying to find a distribution that fits my data in order that I can then predict a 5th percentile but none of the standard distributions seem to fit.
I'll explain my approach so far with examples below. I have then been trying to fit a Burr distribution in fitdistrplus but cannot find any suitable initial values.... |
I am working on an NLP project, my objective is to compute a Sentiment Analysis over short text message.
So far, I did not come up with a solution to account the emoticons. I want to use a machine learning approach, but I also would like to include somehow the emoticons in the text for the analysis.
Most of the researc... |
I am using the Kalman filter in a very standard way. The system is represented by the state equation $x_{t+1}=Fx_{t}+v_{t+1}$ and the observation equation $y_{t}=Hx_{t}+Az_{t}+w_{t}$.
Textbooks teach that after applying the Kalman filter and getting the "one-step-ahead forecasts" $\hat{x}_{t|t-1}$ (or "filtered estimat... |
If I know the distributional parameter of a distribution (lognormal, in this case) I can plot the density function. If I want to convert the density into a histogram, I should calculate the "height" of the bars associated with different intervals under the curve (i.e.,$ 0-99.9; 100-199.9$ and so on). How can I calculat... |
I am trying to predict sales quantity based on attributes of the item.Sales are aggregated by week wise and prediction is also done by week wise.I am having large number records with zero sales quantity than compared to positive sales(for 20 positive sales 250 zero sales records are there).I want to increase my trainin... |
I have a small dataset that shows the number of young patients in a disease registry is increasing over time. I suspect that this is just because the registry has become more successful over time and now captures a greater proportion of cases.
I would therefore like to plot the number of young patients in the registry ... |
I apologize if this question is a bit confusing.
Suppose we get to generate an $n \times n$ matrix, $M$, whose values are all between 0 and 1.
How can we generate a set of $n$ random variables, $\{X_1...X_n\}$ whose correlational matrix, $M'$ ($M_{i,j}=corr(X_i,X_j)$), is proportional to those values found in $M$ ($M_{... |
I'm trying to compute the posterior predictive distribution for a problem from samples of a Metropolis Hastings run.
So as I understand the formula is
\begin{equation} p(y^{new} | y) = \int_u p_{lik}(y^{new} | u) p_{post}(u | y) du, \end{equation}
where $p_{post}$ is the posterior p.d.f and $p_{lik}$ the likelihood.
M... |
I am now studying Student's T-test and trying to understand the assumptions of it.
I haven't seen any sources that describe why such assumptions are made.
For a T-test with two samples, why are both groups assumed to have the same variance?
|
I'm preparing for a data science interview. The main languages the organization uses are Python and R. I am familiar with those languages; I do regressions, t-tests, data visualizations in them. However, I often use Stata as it's usually more convenient for what I want to do.
Is there any website that can help me get t... |
I wish to get a better understanding of the meaning of the eigenvalues of a correlation matrix I am studying.
I have a correlation matrix of noise levels for 10 cells in a wireless network over time. Let's say I have 1000 time series points for each variable, I then normalise the time series points using a sliding win... |
Our research is entitled "Relation of Family Perfectionism on the Career Indecisions for Grade 10, 11 and 12 Students"
Independent variable: grade level
Dependent variable: family perfectionism and career indecisions - both can be measured by survey and using likert's scale to quantify
A sample of the survey can be fou... |
Suppose there is some sort of survey where people from various companies answer some questions.
Is it possible to determine whether overall results from the survey are significantly affected by answers from large companies? Or if the results don't really change with/without a large company.
I was thinking of doing som... |
I'm trying to make a simple outlier detection program that is able to correctly, or almost correctly, identify values in a data set that could be potential outliers because they don't fall in the distribution of the rest of the values in the same data set.
I can't use supervised techniques like classification or regr... |
I always believed that the p value was $P(H_0|Data)$ -- which to my rude shock I recently learned was not the case -- Note: I studied traditional frequentist probability.
How can one express the p-value in terms of Bayesian concepts -- assuming one can?
|
Say one has data from an experiment (control and treatment) that follows a gamma distribution. So:
$$X_{A,B} \sim \frac{\beta^{\alpha}x^{\alpha-1}e^{-\beta x}}{\Gamma(\alpha)}$$
where A is control and B is treatment.
Would one typically formulate a hypothesis in terms of
$$H_{0}\colon \mu_A \geq \mu_B $$
or say,
$$H_{... |
The following distribution came up in my research and I'm wondering if the general class has a name and if there are computationally efficient sampling methods for it.
Let $\mathcal{X} = \{0,1\}^{n}$ be the sample space; these are simply $n$ dimensional vectors with each component either $0$ or $1$. Let $a_1,...,a_n$ b... |
I am comparing frequency count data for observed behaviours in a 3 minute time frame, between two small groups of people. My hypothesis is that there will be significantly more of certain behaviours in one of the groups. As I understand it, frequency count data is by nature non-normal, so from what I have read I woul... |
After conducting a 3-Way in-between subjects ANOVA, I see there is a significant interaction among the 3 independent var, XYZ (2 levels). As a follow up, I conducted a simple 2-Way interaction between X*Y to check if they were influenced by Z (Gender: Male and Female). Again, here, there was a statistically significant... |
I am estimating a model with country and time fixed effects (years). Among the regressors I have a country-invariant variable (dollar oil price) which is of interest. I have noticed that some year fixed effects are omitted due to collinearity (equal to the number of oil price regressors: if I put oil and lag of oil, tw... |
I am trying to understand CP decomposition for a three way tensor. Lets have a tensor which has the dimensions I by J by K. When we apply CP decomposition, it decomposes the tensor as a sum of a rank-1 tensors.
$\sum_{r=1}^R a_r \otimes b_r \otimes c_r$
The question is each dimension is different, how do they sum up to... |
The primal feasibility is given below:
$$
y_i(w^Tx_i+w_0) \geq 1
$$
and is required when solving primal problem. But when we turn to the dual problem, the inequality becomes $\alpha_i \geq 0$ and we seem to have no way of ensuring that primal feasibility is achieved. How does the computer know that only fulfilling $\al... |
I run a rolling backward stepwise factor selection within each regression window with a Matrix of regressors X(137x481) and a vector Y(1x137). As you can see, the number of regressors is way higher than the number of datapoints
Looking at the rolling R^2 I noticed that is Always extremely high. This lead me to the conc... |
I performed with SAS an ANOVA and I got insignificant differences for each coefficient. So I planed to looked at the linear and quadratic effects of the Ca concentration (6 levels), and the linear was not significant, but the quadratic was.
I remember for multiple comparison, it is always require an significant model t... |
I'm flipping through Bayesian estimation literature and I'm trying to find something that is similar to the rejection region in frequentist approaches.
Intuitively, by setting the rejection region to a large quantity say 1 - 5% you can require there to be a large preponderance of evidence before you reject the null hyp... |
We see four data plots. The goal: How does the first principal component look for each plot a-d. For plot d, it is true that both clusters have same number of datapoints.
First principal component indicates axis with highest variance. I think first dataset (a) is diagonal line. I think (b) has infinite number, because ... |
I am currently analysing my thesis data which is looking at counts of different bat species across a number of sites, using the predictors: canopy gap fraction, canopy height, clutter index and woodland connectivity.
When I run hurdle models on individual species I see slightly different significant predictors (I expec... |
I saw that people sometimes use notation $p(x)$ and sometimes use $\pi(x)$ to denote pdf of a distribution in literature. For example, on page 2 of this paper by Green and Hastie.
Is there any reason to prefer one over another? Like one is more often used to denote posterior pdf or pdf known to a proportionality.
|
When people talk about neural networks, what do they mean when they say "kernel size"? Kernels are similarity functions, but what does that say about kernel size?
|
If we apply batch normalization to the input layer, is the resulting (trained) network equivalent to the same network without batch normalization with input standardization wrt biased mean and variance estimators?
Of course, the estimates vary during training, so the ending weights won't be the same, but if my intuitio... |
Hi I am trying to estimate the posteriors of four calibration parameters namely $c_1, c_2, c_3$ and $c_4$ in the following equation using Bayesian inference
$$
F=c_1 \cdot (i^{c_2}) \cdot(s^{c_3}) \cdot (1-\exp(c_4 t))
$$
I have the observed data for the output $F$ and inputs $i$,$s$ and $t$. I know the range of $c_4$ ... |
I have seen many papers using dynamic panel regressions when the lagged dependent is a regressor and the data has the standard panel format. so,
y(t)=constant + beta1*y(t-1)+ beta2*X(t)
is often assessed using dynamic panel data regression. My question is that I have a study where I want to use the predicted X in the ... |
So I have a very positively skewed distribution of latency data (pasted below). I've read that transforming the data to normality can have some unfortunate consequences in regression models. Any ideas on the distribution that I should use in a generalized linear model?
|
Hi I already use cv with grid search to find my best tune hyperparameter in caret. My question is, should I also use cv to get my final model, which I would use it to apply to the future data?
To put it another way, if I use cv with my best tuned parameter, the model I get is not trained on the entire dataset (as its 1... |
I have a time series daily data for about 6 years(1.8k data points).
I am trying to forecast the next t+30 values,
Train data independent matrix (X)=Sequences of previous 30 day values
Train (Y)=The 31st day value for each of previous 30 day values.
I followed the following methodology to forecast:
Y for t+1 is first... |
I have the following challenge: I have to create a regression model with multiple independent variables. When the model is put in production, it can happen that I get completely new values in my independent variable, which my model didn't know when it was trained. The predicted value would have a very high error. In th... |
Regarding the VaR formula:
VaR = -U-ZX
Where U is the average return, X is the standard deviation and Z is the negative number of standard deviations that specifies the probability level associated with the tail-risk.
I have read two papers that use this formula. However, one interprets a higher Z (in absolute terms) a... |
I've assayed two treatment groups at three time points. The time points are "days post inoculation" (specifically, 0, 20 and 40 days), so the interval between the measure is meaningful.
I've modelled my data three ways, all REML.
1) With "time" as continuous, "treatment" and "time" are significant, but there's no int... |
I'm trying to find out whether there is a statistical method for comparing a distribution of sample proportions to a distribution of population proportions.
For example if I have only two groups, A and B in a sample, and the proportions of people in A and B in that sample compared to the proportions of people in A and ... |
With item-based collaborative filtering, we utilise item ratings of similar users to a given user to generate recommendations. Research has often suggested using a hold-out test set to evaluate the algorithm e.g. 20% of data with 80% for training. However, what if in the hold-out set all ratings of a certain item are h... |
Let's suppose that we run a experiment consistent on the time it takes to execute a fixed piece of code. We know that the environment in which this code will be executed (the machine) will fluctuate due to a high number of different factors that we will assume are impossible to directly control. So we define the result... |
Question
Define the matrix $A \in \mathbb{R}^{m \times n}$, the vector $b \in \mathbb{R}^m$, and the function $\mathrm{pen}: \mathbb{R}^n \to \mathbb{R}$. Then, put the minimizer $$\hat{x} = \arg\min_{x \in \mathbb{R}^n} \|b - A x\|_2^2 + \mathrm{pen}(x).$$ I seek to understand the claim that
We can express the minimi... |
From Kullback-Liebler divergence of matrix factorization;
\begin{equation*} \mathrm{X}\approx\mathbf{WH} \tag{1} \end{equation*}
How equation $(2)$ is derived to constant equality in equation $(3)$?
Why does $X_{f,t}\log{X_{f,t}}-X_{f,t}$ disappear?
\begin{equation*} d_{\mathrm{KL}} (\mathbf{X}\ \vert\vert \mathbf{WH}... |
This is a confusion sparked by problem 9.12 in Gelman and Hill (2007). An experiment on 50 cows was conducted to estimate effect of feed additive on milk fat. Four diets (treatments) were considered with different levels of additive (0.0, 0.1, 0.2, 0.3). Other covariates measured were lactation(seasons of lactation), a... |
I am having a problem understanding how to estimate support for models when the number of samples is different. The scenario is as follows:
Suppose the log-likelihood of models $M_1$ and $M_2$ of some data $\mathbf{x}$ are $\ell_1$ and $\ell_2$ respectively, and $\ell_1 > \ell_2$, and that both models have the same num... |
I would like to find CI from the median value for non normal data (heavy tail to one side). I read about the bootstrap method and would like to implement it using the bootci function in matlab. I have 2 questions:
What does the 95%CI from the median mean? How many of future measurements are likely to be inside the CI... |
I found an interesting way to calculate a confidence interval for the Gini and respectively AUC coefficient for credit risk scoring.
Question: Can anyone explain me, why the sum
$$
AUC = \frac{1}{n \cdot m}\sum_{i=1}^n \sum_{j=1}^m S(X_i,y_j), \text{with}
$$
$$
S(x_i,y_j) = \begin{cases} 1 & \text{if } x_i > y_j \... |
When SPSS tests the AUC of a ROC curve against the chance area (0.5), which statistical test does it use for this? And what are its motivations to use it? This seems to be documented nowhere.
Because SPSS does not allow AUC comparison, I use Stata to do this.
In Stata, it is explained that a chi2 test is used to compar... |
I want to test a theory that predicts that certain measures are greater than or equal than others. Consequently, I want to perform noninferiority tests. Furthermore, I want to get rid of some confounders and random effects, and it seems that using linear mixed effects models is a good approach to do so. From what I rea... |
I need to generate a time series of random numbers. I want to do this such that I obtain a stationary Markov Chain with a $\Gamma[\alpha, p]$ marginal distribution, the probability density function of $P_t$ at $x$ is given by:
$f_{P_t}[x] = \frac{x^{p-1}\exp[-x/\alpha]}{\alpha^p\Gamma[p]} \quad x \geq 0$
then the cond... |
I wanted to ask whether it can make sense to include a variable in a regression model that is coded in the following way?
-1: something bad
0: something neutral
1: something good
The alternative of using a "good" and a "bad" dummy predictably runs into multicollinearity problems. Also, I am wondering what model woul... |
I am very new to design of experiments concept. I would like to design an experiment to understand the relationship between input parameters like amount of various ingredients, cooking temperature, time of cooking, etc. vs. the quality of a cake to be baked.
Assuming that all input parameters are continuous and range b... |
Apologies in advance if I've missed an answer here, but I have two problems that, compounding, seem to be tripping me up. I have a series of measurements taken at different times of day that appear to have a quadratic relationship (plot below). I'm trying to use a LMM (lmer), but I'm having trouble reconciling how to s... |
Given a known 95th percentile value of $n$, and assuming a log normal distribution, is there a way to calculate pairs of possible parameters (meanlog, sdlog)?
I was able to get fairly close numerically, with n = 95:
lim95 <- 95
t <- 1000
find.sd <- function(lgmn,q95){
x <- (seq(0,50,length=10000))
lsds <- qlno... |
I am building linear models by adding one variable at a time. I am interested in studying the effects of each variable and how those effects change as a new variable is added to the model. Basically, a step-wise regression that does not worry about significance.
Here is the code to my approach using the mtcars data as ... |
I have an optimisation problem that can be described as a simple set of linear equations in dot product form as $\mathbf{b}=\mathbf{x} \cdot A$, where vector $\mathbf{b}$ and matrix $A$ are known and vector $\mathbf{x}$ has to be estimated. Normally, this can be easily solved with linear least squares. However, both $\... |
GLM analyses are new to me so please excuse my ignorance in advance. I want to see if the number of road crossings differ across years for a specific taxa. I am working in RStudio and have found my glm to identify years as an influential factor, yet when I run a post hoc anaylsis there is no significant difference amon... |
A regression model fails at predicting high and low values.
Context:
I'm training a regression model where the input and output data has same dimension (energy). The input consists on previous values of the energy for a given time and the output is a value of the energy in the future.
I'm scaling both the input and the... |
I'm reading here that LASSO makes no particular assumption concerning the distribution of residuals, which somehow confuses me.
Consider a linear regression problem with 1 target $y$, $P$ features $\mathbf{x}$ and a training set $\mathcal{D}=(X,Y)$. When looking at this supervised learning problem through discriminativ... |
my goal is to investigate if a process has a unit root at different quantiles, hence, I use a QAR(1) model. I checked the PACF and only the first lag seems to be relevant. All my coding is done in R using the quantreg package by Roger Koenker. The estimation part is no problem, but I am somewhat stuck on how to start w... |
have a set of data as follows where we measured the change in aluminium or copper according to time, concentration of sediment, temperature and the site the water was taken from.
Here is a sample of the data
Id Temp Time Site Al Cu Alch CuCh
1 1 0 1 0.1402 0.0008 0 0
2 1 0 2 0.3554 0.0095 0... |
I'm learning about the K-means model.
I'm going to detect the anomalies using the k-means for that I need to calculate the distance between centers and point how should I do that.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.