instruction stringlengths 9 38.7k |
|---|
This is a screenshot from Bayesian Data Analysis by Gelman.
I am a little bit confused by Equation 1.4 (first and second lines), having read Equation 1.3.
In Equation 1.3, the variable of integration is $\theta$. I understand the example scenario presented of having a set of objects weighed already, $y$, on some scale ... |
The common knowledge is that OLS only makes sense if both the response and explanatory variables are stationary (ignoring exceptions like cointegration), as otherwise, there could be effects of spurious regression. It seems most posts I've come across suggest making Y and Xs stationary first (by differencing, removing... |
For $X_1,\dots,X_n$, i.i.d $X_n \sim \mathrm{unif}[-\theta,\theta]$, the ML: $\hat\theta_{MLE}=\mathrm{max}\{-X_{(1)},X_{(n)}\}$. Find the density function. Hint: For $x_1,\dots,x_n$ : $\textrm{max}\{-x_{(1)},x_{(n)}\}=max\{|x_1|,\dots,|x_n|\}$.
Here is my work:
First i find the CDF for $\hat\theta_{MLE}$ and then dif... |
I am new to the forecasting domain. I am dealing with a forecasting task where we had a very high abnormal demand for our products during the pandemic. However, in recent months, the demand trend is continuously decreasing, but since I am using the historical data from two years ago, my trained models keep over forecas... |
I have a large dataset consisting of the geographic location, company, and date of accident. I also have a grid with a cell size that is 6 miles x 6 miles to disaggregate the data, since the dataset is much larger than the one shown (>1 million location points over a provincial scale). I am trying to calculate the pr... |
Inside the book "The Elements of statistical learning", I stumbled upon the following notation (Ex. 2.7)
$$E_{\mathcal{Y|X}}(f(x_0) - \hat{f}(x_0))^2$$
where $\mathcal{X, Y}$ are two random variables representing the training data.
I would like to know how to formally define $E_{\mathcal{Y|X}}$. I know what a conditio... |
My apology for stating my question with an image. The following image shows that the posterior distribution is as follows with the given information:
I wonder how the posterior has been calculated, analytically.
|
Consider the following two-player game. The players simultaneously draw one sample
each from a continuous random variable X, which follows $Uniform\ [0, 100]$. After observing the value of her own sample, which is private information (that is, opponent
does not observe it), players simultaneously and independently choo... |
I am comparing two studies. Each study consists of an affected (cancer) and control groups of patients, for which a number of biomarkers (gut microbial species) were studied. For each biomarker univariate testing is performed (Mann-Whitney or Kruskal-Wallis) and the p-values are then adjusted using the Benjamini-Hochbe... |
I have a dataset that includes a variable called SoundDirection. The variable contains 6 levels, each one scored in a likert scale from 1 to 5.
In the experiment, every participant had to listen to 40 stimuli. Every stimulus was presenting a different type of SoundDirection. For each stimulus, the participant had to sc... |
Is there a nonlinear counterpart of multicolinearity. i.e. if two variables x1 and x2 are nonlinearly dependent on eachother in such a way that makes interpretation the coefficients of a specific nonlinear model using these two variables problematic?
|
I have a binomial variable $R$ drawn from $binom(N, p)$, and I'm interested in the variance of $R$, given $R \ge Q$. The pmf of this variable $R^*$ is
$$
\phi_{R^*}(l) = \frac{\phi(l, N, p)}{P}
$$
where $P= \sum_{l=Q}^G\phi(l, N, p)$ is the probability that $R \ge Q$, and $\phi$ is the binomial pmf.
Are there any bound... |
I'm implementing Sparse and variational Gaussian Process (SVGP) using GPflow library using minibatches. I've been trying to search for details regarding the time and memory complexities e.g. from this source, but it remains a bit unclear how to get these estimates.
I basically have a data matrix consisting from about t... |
I performed linear regression analysis to assess the associations between continuous variables. I found a significant p-value but my confidence interval includes zero. What does it mean? Here are the results;
β= -0.267
SE: 0.000
95 CI= -0.002 to 0.000
p=0.000
|
Lets say I have a time series, create a training and test set, and I want to compare the predictive accuracy of two models, by measuring e.g. the mean absolute error (MAE) over the test set. I know that two sets of predictions can be compared with the Diebold-Mariano (DM) test or similar.
In my case, I examine performa... |
I have a task in my experiment, where participants had to select an emotion out of 7 options dependent on a video they saw. The participants were split between three groups. Now I want to check, if there is a significant difference in hit rate between the groups and I am not sure how to do this.
I transformed the data ... |
I am trying to understand the differences between event studies and DiD analysis.
In particular, if I want to estimate the specific effect of an event like certification adoption, CEO appointment, or a specific technology introduction on firm performances, what is the most appropriate approach?
I have seen both papers ... |
scores <- c(26, 25, 14, 13, 10, 8, 22, 13, 10, 8, 8, 5,
30, 25, 10, 10, 7, 5, 43, 31, 12, 8, 2, 4,
45, 31, 31, 10, 10, 4, 53, 23, 10, 1, 1, 1,
12, 16, 15, 16, 37, 28, 21, 20, 21, 15, 21, 17,
23, 27, 47, 27, 24, 59, 9, 23, 21, 12, 13, 14,
18, 17, 13, 18, 19... |
Consider the random variable $X$ to denote the event that the confidence interval cover the unknown parameter or not. Thus, X will follow the Bernoulli distribution with a parameter $θ$, i.e. $X~Be(θ)$, where $θ=0.9$. Given that we collect $n$ random variable $X_1,X_2,…,X_n$. What is the smallest number of confidence i... |
I wanted to compare ARIMA(1,1,1)-GARCH(1,1) and ARIMA(1,1,1) model forecasts with a Diebold-Mariano test, but I know that it cannot be used for nested models. Is ARIMA-GARCH technically nested within ARIMA and thus I cannot use the test? I'm just unsure on how to interpret whether these models are nested or not? Thanks... |
As far as I know all methods / models making assumptions about data distribution, data scale, etc. but whenever I read a paper (political sciences) the researcher(s) are violating them (some). E.g. treating ordinal data as metric or "pseudo-metric", don't care about normal distrbution. I always askmyself are they doing... |
Group High is a year in which there was a high temperature change and group Low is a year in which there was a low temperature change. The classes represent an the percentage of coverage for a species on a plate. E.g. class 0 = 0% growth, class 4 = 50-75% growth, class 6 = >75% growth. (I will not compare an amount of... |
Suppose I have a data sample and I want to test whether normal distribution with mean $0$ and variance $1$ fits this data sample. If I understand the chi-squared test correctly, I think that I should use the chi-squared statistic with $r-1$ degrees of freedom (where $r$ is the number of bins I divided the data into) fo... |
I would like to put together my own R function for MCMC simulations rather than using a R package or Winbugs. This is purely to ensure I understand what is going on.
I have used the R Nimble package to construct a very simple model and to run the simulations.
The model code is as follows and from what I can see has ran... |
I have a survival/duration dataset with competing risks. The start years for the durations vary and range from 2010 to 2019. Each individual may only start once, e.g. during 2010, and therefore cannot be in the risk groups of the other years. Follow-up ends after 200 days, i.e. the individuals are treated as censored, ... |
Suppose that we are interested in the following model:
$$y_i=\beta_1+\beta_2x_{i2}+\beta_3x_{i3}+u_i$$
Here, there is a dummy variable $d_i$.
I am wondering whether the following estimators are equivalent:
[OLS using only the observations with $d_i=1$] versus [OLS $d_iy_i$ on $d_i1,\;d_ix_{i2},\; d_ix_{i2}$]
That is, u... |
I'm trying to understand the transformer architecture for NLP.
The main issue is regarding the attention weights. The same word can have different attention weights in different sentences, right?
|
I'm working on a difference-in-differences project where we're matching up to 5 control subjects to each treatment subject using a combination of techniques to estimate treatment effects (ATT): exact, propensity score, and Mahalanobis matching.
Our 1:5 matching rule is somewhat arbitrary - are there more rigorous rules... |
I have just started learning about Autoregressive–moving-average model (ARMA). On the Wiki page, it has been mentioned that:
ARMA is appropriate when a system is a function of a series of
unobserved shocks (the MA or moving average part) as well as its own
behavior. For example, stock prices may be shocked by fundamen... |
I am writing the results of my thesis, and I have a few questions on how to report P-values.
When is it appropriate to give the exact P-value, instead of writing e.g. P<0.05 (also in case of non-significant P-values)?
If I have a P-value of e.g. 0.016, should I report it as P=0.01 or P=0.02? Or if it was 0.0167, shoul... |
Came across an interesting problem.
You’re clearing out your garage for a garage sale, and you want to get rid of as much stuff as possible quickly. You found a dresser and decided to sell it to the first person offering 220 dollars or more. Assume offers to buy the dresser are independent exponential random variables... |
Generic scenario: Brains have been collected from two different populations. They then have been cut into thin sections (serially) for the purpose of looking at the expression of proteins in specific areas. The sections are thin enough that we can take multiple sections which will correspond to the same brain area (so ... |
I am working on various risk score estimation problems. I assume individual subjects are associated with a true risk
$$ r_i = f(x_i, \varepsilon)$$
where $x_i$ is some available information about the subject and $\varepsilon_i$ describes aleatoric uncertainty about the risk, which I assume to be heteroskedastic. (I.e.... |
I'd like to know how does perfect collinearity affect measures of fit (R squared and R squared adjusted). A mathematical approach is not necessary, just the general intuition is fine.
|
I have a data set where some x input has a 0.59 Pearson correlation with variable y (sample size is about 300). After performing simple linear regression I get the following standardized residuals scatter plot and qq plot:
Regression result and scatter plot relating x to y:
The residuals scatter plot seems fairly ra... |
I am required to interpret a suitable ARIMA model for the above ACF and PACF plot. My first instinct from the slowly decaying ACF plot and the sharp drop after lag 1 of the PACF tells me this is an AR(1) process, so a possible model would be ARMA(1,0).
BUT could the slowly decaying ACF indicate the presence of a trend... |
This questions needs a toy example to be explained. I apologize if the question is not clear.
Suppose we have an observational study in which we want to evalute the association between exposure to Drug A and the risk of cancer. The two groups (exposed vs. non exposed) are fairly balanced according to baseline character... |
I'm using auto.arima to fit my model. When I used the default CSS-ML method, I noticed that the residuals are not normal. So I want to use a method that doesn't require the normality assumption. I'm guessing CSS would work, since the method simply tries to minimize SSE but I'm not quite sure. If I use method='CSS' with... |
In the paper PonderNet: Learning to Ponder (Banino et al. 2021), the authors define the following "Parity" task:
input vectors had 64 elements, of which a random number from 1 to 64 were randomly set to 1 or −1 and the rest were set to 0. The corresponding target was 1 if there was an odd number of ones and 0 if there... |
I came to know from the Youtube Video here (Timestamp 1:03:55) that Reparameterization trick only works for continuous latent variable. But, I am not clear as to why it does not work for discrete latent variables. Reparameterization changes z as $\mu$+$\epsilon$*$\sigma$. We can determine mean and standard deviation of... |
The Zero and One tricks are used to sample from a model not included in the basic functions in BUGS:
http://www.medicine.mcgill.ca/epidemiology/Joseph/courses/common/Tricks.html
I have a general and simple question about INLA: is it possible to use similar tricks for sampling from the posterior of models not included i... |
For a distance between two clusters A and B of objects given by $d_{AB}=\left \|{m_{A}-m_{B}} \right \|^{2}$ , where $m_{A}$ is the mean of the objects in cluster $A$, show that the formula expressing the distance between a cluster $k$ and a cluster formed by joining $i$ and $j$ is
$d_{i+j,k}=\frac{n_{i}}{n_{i}+n_{j}... |
(See "Edits" at the bottom for partial resolution.)
I am interested in generating point estimates for each cluster in my data using geeglm.
However, when I use as.factor() over the predictor variable (and don't fit an intercept), the standard error estimates are all equal to 0.
This also occurs for the example provid... |
Please that might sound basic for all of you but I am not an expert and I need to estimate the following model using OLS regression: R= a + β1 RM + β2(z)RM + ε (the model is called conditional CAPM, and please ignore that I didn't write the notations because they won't affect my question. My question is how to estimate... |
I'm using the classic "use-case" example of clustering pixels in a photograph. I've tried K-means, agglomerative clustering, and DBSCAN. When I plot the RGB coordinates in 3-D space, all 3 techniques return variations of a similar clustering scheme. As an example, here is how K-means clustered the data:
What I'd like ... |
I aim to check the robustness of 2 groups t-test when samples come from lightly skewed distributions. To approach the problem I though about performing a Montecarlo based robustness analysis using experimental sample sizes and zero centered means, but, for setting the expected skewnes and variance of each group populat... |
A lot of what I've seen for Bayesian approaches to removing outliers is for a linear model, not a normal distribution. Is there a way we can take a Bayesian approach to remove outliers from a normal distribution? I used Turing to get the means and standard deviations of a theoretical distribution and want to remove out... |
I see a similar problem in How do I fit a constrained regression in R so that coefficients total = 1?
Specifically, my model is
$Y_i= \pi_1 X_1+\pi_2 X_2 +...+ \pi_K X_K +\epsilon_i$ with $\pi_k \ge 0$ and $\sum_k \pi_k =1$ . That is $\pi$'s are probabilities.
and I need to minimize $\sum_i(Y_i -\pi_1 X_{i1}-\pi_2 X_{i... |
Problem Summary
I want to know the minimum sample size needed for a given confidence level and margin of error when performing indirect sampling where samples from the two populations are not one-to-one.
More Details
I would like to sample from a population $P$ of finite size which is unknown and assumed to be large. E... |
A recent survey of residents in Texas concluded that 55% of Austin city residents and 46% of Houston city residents broke a bone at some point during their childhood.
Let’s say Austin has 5200 residents, and Houston has 4500. You independently choose two residents with replacement from the combined 9700 and learn th... |
I want to estimate a VAR-model with 6 variables, all of them are stationary. But when I analyse the time series by examining ACF, PACF and auto.arima in R. auto.arima confirms that two of the time series are ARMA(2,2), two AR(2) and two AR(1). Now I wonder if estimating a VAR-model is the correct method in this case? A... |
I am running a staggered diff-in-diff model, looking at legalization's effect on various variables. For context, only a percentage of all states have legalized, and the year they legalized differs across those states, hence the staggered approach. I am looking at the treatment (legalization)'s effect on variables (in t... |
Imagine that I have time series data which are time-correlated, non-scalar, and of unknown, but identical distribution
From this time series I have a function that takes an subset of X as input to calculate a scalar quantity Q
What I would like to know is how do you estimate the standard deviation of ? That is to sa... |
I have a model where I try to model the linear trend in my response over time
The trend may vary by elevation and location
As far as I understood the mgcv package in R, a GAM model would look like:
Y ~ Year + elevation + Year:elevation +s(lat, lon, bs="gp") +
ti(lat, lon, Year, d=c(2, 1), bs=c("gp", "tp"))
I hav... |
I want to characterize the correlation of a set of variables with a target variable using Spearman correlation since I expect the relationship to be monotonic but not necessarily linear. Specifically, I want to test if one set of variables is more correlated with the target variable than another, and if adding a variab... |
After running an experiment generated by a Latin Hypercube design, what next? Just pick the best point? I guess there’s no ‘modeling’ or ‘curve fitting’ going on right? So you basically just choose the optima of the runs as your parameters?
Is there more to it? Thanks.
|
I recently came accross the algorithm of Matrix Factorization for a recommendations system.
One of the tutorials I followed can be found here.
According to it given the initial matrix $R$ and the goal to factor it into two matrices $P$ and $Q$ with $k$ latent features the error for each known entry is calculated using... |
I am running linear mixed effect models using the lme4 package in R with the following output.
> anova(model)
Type III Analysis of Variance Table with Satterthwaite's method
Sum Sq Mean Sq NumDF DenDF F value Pr(>F)
allocation 0.03352 0.03352 1 21.943 0.9014 0.352750 ... |
A bus will depart every 10 minutes from the origin, and the time it takes to travel to station $A$ follows a Poisson distribution with expectation of 10 minutes.
Alice arrives at station $A$ around 9:00 AM, and her arrival time follows a uniform distribution with $a = -10, b = 10$. What is Alice's expected wait time s... |
This is a somewhat broad question, but I'm having trouble finding a good answer anywhere. I know many ML models will impose an independence assumption in the data. But I'm having a hard time really understanding what the practical implications are if that independence assumption is violated. For linear/logistic regress... |
I'm using Dr Frank Harrell's code in RMS 2nd edition. He goes into sparse PCA.
Does anyone know how to code a regression model after getting the sparse component grid?
require(pcaPP)
s <- sPCAgrid(ptrans$transformed, k=10, method="sd", center=mean,
scale=sd, scores=TRUE, maxiter=10)
plot(s, type="lines",... |
I'm running a regression to see if there is a positive or negative relationship between cvdrslt and smkcigst, but I'm not sure how to interpret this regression. Also why is the data for smkcigst NA, even though the dataset has no NAs for it and instead has 1 for all observations?
Does this regression show that there is... |
I am trying to understand the Q–Q plot.
Suppose I create a sample according a exponential distribution
> n=10
> v = rexp(n)
[1] 4.20905976 0.03434381 0.45344443 0.90680895 1.08972583 0.76248370 0.30751413 2.59427493 0.25876480 0.74835029
sort(v)
[1] 0.03434381 0.25876480 0.30751413 0.45344443 0.74835029 0.76248370 0.90... |
Suppose you have an (online) shop. You have a dataset containing $p$ features (representing customer characteristics) $X = (x_1, \ldots, x_p)$ and a feature $y$, representing how much money a customer with given characteristics has spent in our shop previously.
You want to know which customers you need to target to inc... |
I have downloaded the dates of every moose (Alces alces) observation worldwide on iNaturalist. This amounts to about $2 \cdot 10^4$ observations at present. I excluded one observation that was either incorrectly dated or was amazing evidence of time travel (they didn't have digital cameras in 1018, did they?). If we ta... |
I have built random forest classifier and regressor models on same data, target and independent variables. For classifier, I am giving a classification parameter that divides the data into more or less half good and half bad. When I then compare the important features given by the models, I see that they are different ... |
In our assignment we were asked to model the compressive strength of concrete (response variable: Strength) with predictor variables Cement (kg/m^3), Water (kg/m^3), and Coarse.Aggregate (kg/m^3). We had to use backwards stepwise model selection from a complete second order model to produce the final model.
#complete s... |
For example, I have a estimate of p = 0 (95% CI: 0, 0.01), and I want to know the sample size for this sample.
For $p\not =0$, I can compute the s.e. by $\sqrt(p(1-p)/n)$ to get the $n$, but not sure how to compute $n$ in this case?
|
Based on what I know, a moderation analysis is simply looking at an interaction between an IV and a moderator. However, people often refer to moderators when they talk about ANCOVA (analysis of covariance). In this situation though, one of the assumptions of ANCOVA is that there is no interaction between the IV and the... |
i want to create an index. it has 3 subindices A,B,C. each subindex further consists of 3 different variables A1,A2,A3,B1,B2,B3 and so on. in total there are 9 variables. i want to assign weights using PCA. my question is do i assign weights to the variables A1,A2,A3 then aggregate to find an overall score for subindex... |
My time series is very leptokurtic and non-normal, which is of course highly common for time series data. However, I don't exactly understand why that is not a problem for ARIMA modeling and GARCH modeling? I know that stationarity is the most important condition, but why is the non-normality of the series not an issue... |
In a clinical trial, let's say I want to test
$$H_0: \mu_1 \leq \mu_2$$
$$H_1: \mu_1 > \mu_2$$
$\mu_1$ belongs to the placebo group and $\mu_2$ belongs to the trt group. I used an independent two-sample t-test to compare the two means. I wonder how to express the confidence interval here. And should the point estimate ... |
My data has class imbalance-- that is, some classes have significantly fewer training samples than the others. I want to perform a train-validation split in such as way that the class ratios are preserved in both the training dataset as well as the validation dataset.
I tried looking for inbuilt functions that help me ... |
Information on the Girth (), Height () and Volume () for 31 cherry trees
yielded the following correlations : $r_{12}$ = 0.519, $r_{23}$= 0.598 and $r_{13}$= 0.967. If you were asked to setup a regression choosing a certain characteristic as the response
and the other two as predictors, which characteristic will you... |
I have the following problem:
Suppose that the probability of a football team (T) to win the match
with 2-1 is p1 and, given that T scores a goal, the probability that
the best player of the team scored it is p2. What is the probability
that the team T wins with 2-1 and the best player scored the 1st goal?
My thinkin... |
Assuming a 500k dataset. For statistical modeling purposes (selecting up to 10% of 500k as a sample). Should I clean the 500k dataset first before selecting a sample or select the sample first and then clean the data?
What if this goes into bigger datasets such as 1 million+ rows?
|
I'm a junior engineer at a small biotech company and have some (real) data from a fractional factorial DoE (3 factors, 2 levels, 4 test conditions with six replicates each). Currently, we use excel to analyze this data, although I'm more familiar with Matlab and SAS.
I'm trying to do a multiple linear regression with t... |
I apologize if this should be asked elsewhere.
I have the following information:
Where N=1808
I am trying to calculate a given percentile (in this case p99.723), or ideally, if possible, generate data from this information. Unfortuneately, I do not have access to any further data, as this information is from a Journal... |
I've been learning about time-to-event analysis and playing with open datasets + fitting various Cox and parametric models for practice.
Other than by visually inspecting the estimated survival curves for each model against the Kaplan-Meier estimates, how can I compare goodness of fit across Cox and parametric models? ... |
There are some papers and some R packages providing exact calculations for the CDF and the inverse-CDF of the (sample) Spearman rank correlation coefficient.
My question is: How difficult would it be to calculate the exact distribution of the Spearman rank coefficient of correlation for a given setting like this (just ... |
I am having trouble understanding if my data is cooked, and how bad, based on post-estimations for coxph. The regression and the cox.zph test is below. Based on the post-estimation, this looks bad because the values are significant and they are very different from 0.
However, I have over 2million observations. And this... |
I have yearly data. When I do a Dickey-Fuller test it gives me insignificant results, indicating that the series are non-stationary.
After differencing them the DFT tells me they are now significant and stationary.
When using an ACF/PACF plot on the original series it is obvious that an AR(1) process should be used.
Wh... |
Can I use chi square test with three variables ? The variables are organizational climate (11 dimensions), job satisfaction (7 dimensions) and customer satisfaction (5 dimensions). Likert scale. any suggestions.
|
I have the following joint distribution:
$$f(x, y) = 3x^2y^xe^{-x^3}(1 + x),\quad x \gt 0,\ y \in (0,1).$$
I want to simulate a sample of this distribution through the inverse method but I don't know if my procedure is right.
What I've tried
In order to simulate the random variable above I'll have to compute the inver... |
I have to do a user study for a paper to see how using or not using tool X affects the quality of something (defined in my study). The study goes like this: participant 1 uses tool X to do task A and then a survey after. Then participant 1 does not use tool X to do task B then a survey after. Participant 2 does not use... |
When evaluating a machine learning (or other statistical model) against multiple evaluation metrics, is there a standardized way to choose the "best" model? As a concrete example, for a two class instance segmentation model, both $F_1$ and symmetric best dice are important indicators of the model's performance, but th... |
Assume to observe 2 quantiles, x and y, associated with the z% probability. These quantiles are generated by 2 non-independent standardized student-t distributions X and Y.
In case of linear combination of x and y with the Correlation matrix, its distribution function is known?
Can I assume any initial condition on x a... |
Say I have the following model:
$$y_{it} = \gamma_i + \delta {T}_{it} + \zeta Z_{i(k)} + \epsilon_{it}$$
where $y$ is some outcome for household $i$ in month $t$. $\gamma_i$ denotes household fixed effects. $T_{it}$ is treatment dummy. Say I have 240 months worth of data. The variable $Z$ represents a vector of time-va... |
I have a dataset with two levels: the city level and person level, at the city level i have the categorical variable "poverty level", in my research estimating the effect of the "poverty level" is of paramount importance.
I am not sure how to include the poverty level in my model.
Here is mini example of my data:
libr... |
I have developed a machine learning model which has been trained on a preprocessed data by scaling and centering using h2o package of R.
I am able to use this model for prediction of new datasets with a blueprint of the preprocessing methods.
But if I make an API of my model and want someone to use it to predict outcom... |
I think that I am missing some concepts because I am not able to model adequately this series.
It is a times series over 12 years.
I tried with multiple AR and MA models, nevertheless, I can't model it.
I am including the ACF for the series.
Any suggestion?
|
I am told that one of the main benefits of Survival Analysis models are their ability to handle Censored Data. This is in contrast to standard regression models that are unable to do so.
For example, suppose researchers in a medical study are interested in knowing if a certain drug is able to prolong the life of patien... |
I am working on routing bus from one stop to another, for which Geolocation data inform of latitude and longitude is required. In addition to xy coordinates, distance matrix of locations is also created. How to encode coordinates into NN, encoding them directly does not help as it will affect predictions (which is not ... |
I'm working on a simple classification project with an imbalanced (minority-to-majority-ratio ~ 0.2) dataset that has ~4000 rows and ~200 features.
I noticed that, for my dataset, a simple logistic regression significantly outperforms most other classification algorithms. The ROC AUC score for the validation data in my... |
1._Some authors mention that they estimate sample size for chi-square test with continuity correction. For instance:
Sample-size calculation is based on Pearson's Chi-square test with a two-sided alpha error of 0.05 and 90% power. We calculated that we would need a sample size of 5300 participants per group using the ... |
I am dealing with an optimization problem where I'd like to regularize two parameters $a$ and $b$. The penalty should be $1$ if the parameters differ and $0$ if they are the same. The motivation is that a fixed transaction cost is incurred if the parameters are the same.
What are some possible differentiable approximat... |
I am currently implementing Linear Regression in Pytorch and sklearn and I get two different Mean squared error (MSE) values for both. MSE is lower for Pytorch Linear Regression.
Wanted to ask what the difference between linear regression in PyTorch and sklearn?
I understand for that Pytorch the workflow follows:
Crea... |
I am looking into the rugarch package and am trying to understand how the one-step-ahead forecast is calculated.
Specifically, I am fitting an AR(2)-GARCH(1,1) process with a normal distribution to the SP500 return series and would like to use the conditional mean as my one-step-ahead point forecast. The one-step-ahead... |
I want to replicate the results of "Chaos in Duopoly Pricing" by T. Puu, which can be found here: https://www.sciencedirect.com/science/article/pii/096007799190045B#section-cited-by. The model is
and here's Figure 3 in the paper:
But for some reason, I can't replicate the result of this rather simple model. My result... |
Im trying to evaluate my regression models using a normalised version of the RMSE,
nrmse = rmse(y, y_pred)/rmse(y, y_mean) where y_mean is the array of the same len as y filled with the mean value of y. Intuitively, if nrmse<1 then the model scored better than a random model that would predict the mean value.
Is this m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.