instruction
stringlengths
9
38.7k
Can someone help me interpret this graph? My independent variable is GSCM, my dependent variable is EP, and the moderator variable is SCT. This relationship is significant, but I don't know how to interpret the graph.
So I was volunteering on a research project and the main researcher would often talk about how an independent variable could be statistically insignificant in a single linear regression but it could be significant if included with other variables in multiple linear regression or visa versa. I was really confused by thi...
Many causal discovery methods assume the data follows an additive noise model. My question is, given an observed dataset, is there a way to assess the assumption? How to tell if the observed dataset follows an additive noise model? Thank you very much.
Let me take as a reference the paper that introduced diffusion models and let's take as a test case a Gaussian diffusion model. The reverse trajectory of a Gaussian Markov chain will have the same distributional form as the forward trajectory, thus only the mean and the covariance of the reverse trajectory need to be l...
Can you explain this passage please: "A key feature of HDBScan is that it clusters data of varying density, this is in comparison to DBScan, which tend to cluster data of varying shapes only."
Is it possible to describe AR(1) as stable in terms of a unit triangle as in the explanation below or not because a lack of a second degree characteristic polynomial? Consider the equation $$ \lambda^2-\phi_1\lambda-\phi_2=0 $$ If $z$ is a root of the "standard" characteristic equation $1-\phi_1 > z-\phi_2 z^2=0$ and ...
I am learning about hypothesis testing and I have a conceptual confusion about the differences between a likelihood ratio test and the p-values derived from testing the likelihood of the data under the null. My confusion comes from the fact that the LRT employs the null and the alternative, whereas the typical approach...
I have a transition matrix looks like: p_transition = np.array([[0.5, 0.5], [0.3, 0.7], [0.4, 0.6], [0.2, 0.8]]) Where each row represents the combination of states and column represents next state. For example, let A and B be two possible stat...
In employing stochastic optimization for applied problems, one typically runs algorithms like simulated annealing and genetic algorithms multiple times to get a sense of overall variability. Based on obtained results, the "best" candidate solution is usually saved. However "best" is not a very clear term, especially to...
I understand that the confidence interval for the mean is completely different from the confidence interval band for the regression model. I also understand that the confidence interval bad represents the confidence interval for a mean for each value of predictor variable. My question here, can I interpret the graph of...
I'm trying to build a clock in Minecraft that measures approximate time according to random events. For a deeper explanation as to why I'll make a comment below, but basically I want to make a clock that fires to approximate a given number of minutes by counting the number of sugar cane items that randomly grow from a...
I have the p-values, 95% confidence intervals, standard errors and coefficients of $b_i$ in the following regressions, which are estimated on different samples: $$ y = a_1 + b_1 x_1 + c_1 z + e_1 \\ y = a_2 + b_2 x_2 + c_2 z + e_2 \\ y = a_3 + b_3 x_3 + c_3 z + e_3 \\ y = a_4 + b_4 x_4 + c_4 z + e_4 \\ y = a_5 + b_5 x_...
Suppose that you have one realization $x = \{x_n\}_{n = 1}^{N}$ of the stochastic process $X = \{X_n\}_{n = 1}^{N}$ with state space $\mathbb{R}$. Assume that the process is Markovian, time-inhomogeneous, and has transition density function (t.d.f.) given by $$ f(n_1, y_1, n_2, y_2) = \partial_{y_2}\mathbb{P}(X_{n_2} \...
I need to prove K is a valid Kernel. x and y are positive integers, and K is the minimum of x and y. I know I should prove K positive definite. But May I see how.
I have the relative frequencies of elements in roughly 450 samples (with varying sample sizes). These elements are organisms in fecal samples. I am interested in finding extreme values of these relative frequencies per element. In context, this would refer to organisms that occur "too much" or "too little" in the fecal...
I want to derive 200 variables from the multivariate normal distribution. I will divide these 200 variables into 3 blocks. The 1st block will consist of 40 variables and will be low-moderately correlated with each other (0.30-0.40 maximum). The 2nd block will also consist of 30 variables, which will also be low-moderat...
I have a data set of 20-year population trends across 40 species. The species trends were recorded at multiple sites. We know whether a site had extra protected status or not. The data look something like this: Species, Location, Trend_%, Protected Duck, A, 55, Yes Duck, B, -43, No, Duck, C, 12, Yes Pigeon, A, 56, Yes ...
I am trying to interpret these 2 residual vs fitted value plots if anyone can help. I was reading about a cone like structure (heteroskedasticity) but am unsure if this is the case in the first one. Obviously this isnt great but i cant pinpoint what its telling me. The same in the second plot, this is really bad, i thi...
First question: is it possible to have a set of $k$ random variables $\left\{X_i\right\}$ s.t. each $X_i \sim N(0,1)$ individually, and $\text{Corr}(X_i,X_j)=\rho$, $∀i\neq j$? If those conditions are self-contradicting, then the rest of this post is just gibberish. Assuming we could have such $\left\{X_i\right\}$, I t...
I have to run A/B/n tests for a subscription service. Generally computing metrics for this situtation is ok: For example, coversion rate experiments. We have 1000 prospects in a group, and (say) 89 get through the entire funnel to become customers. So the empirical conversion rate is 89/1000 Now suppose we are in the...
I am working on an multi-label text classification problem at work and adapted model architecture from this notebook of Toxic Comment Classification challenge on Kaggle. I have trained the model, a person at work, after looking at the predictions, has said that "the model is concentrating only on some set of keywords ...
I have the following sequence: states_list = ['H', 'M', 'M', 'M', 'H', 'H', 'H', 'H', 'C', 'C', 'H', 'H', 'C', 'C', 'H', 'A', 'A', 'A', 'A', 'A', 'S', 'S', 'S', 'A', 'S', 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'C', 'H', 'H', 'H', 'H', 'H', 'S', 'H', 'S', 'S', 'S', 'H', 'H', 'H', 'H', 'H', 'H', 'C', 'C', 'C',...
I am looking at the effect of fertiliser on plant nutrients. One column is fertiliser type (ntype), there are 4 options: AS, SN, OR, and None. For each type there are different amounts/quantities (nquant): AS: 48, 96, 144 SN: 48, 96 None: 0 OR: this is where the problem lies, we don't know how much is in OR, it is an ...
I am willing run the wilcoxon rank sum test for different combination of variables, and using the base R code, I get a lot of warnings. The reason is that there are so many (about 30% of the whole data) ties. What is the approach to handle ties, when using wilcoxon ranksum test?
I have a panel regression that includes several individuals. I run regression. Here, the model looks approximately like this: $$ \log(Consumption) \sim \beta _{1}\log(Price)+\beta _{2}\cdot x_1 + \beta_{3} \cdot a $$ where x is marketing influence and a is dummy when the week had holidays or special dates. As I under...
As far as I know from binary classification FP error is a type 1 error FN error is a type 2 error I have this confusion matrix generated: And here I found how to read this confusion matrix: As you can see 10% elements of SSTI have been misclassified (first pic). If I look from SSTI side it was a FN error (type 2 er...
I am a bit confused about how to identify the seasonal component of a SARIMA model. I am currently looking at forecasting rates (ocean carrier rates to be specific). The first thing I did was to convert my original rates to the difference in rates, i.e. log(P2) - log(P1) as I wanted to forecast the change in rate itsel...
For my end-of-study work in architecture, i am comparing different reconstruction (~10) distances from reference 3D model. I'd like to test if reconstruction are different using statistical tests. On independent, random and simple normal samples I'd like to do those tests : Krustall Wallis test, to test if median of ...
I have a column vector $A$ with $n$ rows that changes over time. Instead of thinking about this vector as a point in higher dimensional space, I like to think about it as a curve on a plane where the horizontal axis is the elements' positions and the vertical axis their values. I created a graph in python that shows ho...
The following is a description of how the authors (Yongning Wang & Ruey S. Tsay) of this (2019) paper Clustering Multiple Time Series with Structural Breaks want to perform Gibbs sampling to obtain cluster memberships. i.e. let's say c can become 1,2 or 3, meaning an individual n can belong to cluster 1,2 or 3. If I pe...
I would like to seek expert advice on the topic above. I was taught to follow this workflow: Split dataset into training and testing Use training dataset to develop model Set hyperparameter in model Do cross-validation (multiple train-validation splits, tests, measures) Repeat with different hyperparameter set until ...
I am trying to conduct a statistical analysis on seed germination data. Effect of 4 different plant extracts on seed germination is tested. Seed germination follows binomial distribution, as it is categorical variable (seed either germinates or not). Experimental design: Each of 4 different plant extract treatments hav...
In Cario and Nelson (1996), we find the following. Let {$Z_t$, t = 1, 2, ...} be a stationary Gaussian $AR(p)$ process. $$Z_t = \alpha_1 Z_{t-1} + \alpha_2 Z_{t-2} + ... + \alpha_p Z_{t-p} + \epsilon_t$$ where {$\epsilon_t$} $\sim \mathcal{N}(0,\sigma^2)$ is a series of independent random variables and $\sigma^2$ is se...
In general, when doing hypothesis testing, we want to claim that the concerned statistic is different between the two population. Hence we assume as our null hypothesis that there is no difference in the two population and the alternative hypothesis that there is a difference between the two populations which we want t...
I am trying to perform a survival analysis for a stratified case-cohort study (1:2) where cases are patients with distant recurrence (DR) and the cohort is composed by patients without distant recurrence (non-DR). Sampling was stratified according to two variables (a = 2 levels, b = 3 levels; 6 strata in total) and the...
I have two measuring devices that I use to measure 20 samples over the course of three days. Each device produce 3 measurements per day. As a result, I have nine values per device per sample. Please let me know what statistical analysis I should use if I want to "prove" that there is no statistically significant differ...
If this has been answered elsewhere, or if questions like these are not appropriate here, then apologies in advance. Conducting some exploratory analysis for a survey study, where the aim is to predict anxiety severity using a set of predictor variables. The outcome variable for Anxiety is the GAD-7: a 7 item questionn...
I'm new to reinforcement learning and the code I'm running was created with the help of an advisor and based on the DDPG pendulum from keras.io code. The idea is to guide a robot along a space to try and find the source of a chemical plume. It runs alongside a simulator made in C++ that graphically shows the plume of s...
Observing a highly non-homogeneous area, I would like to statistically observe and evaluate certain phenomena. Below is an example set of fields, segmented into 3 zones (Z1, Z2, Z3) using a clustering algorithm that takes into account the values that parameterize the field. On the right, there are the same fields repre...
I have n 'features', (x_1, ..., x_n) and a target variable y. I use sklearn's mutual information score for feature selection to determine which features are the most important for the target y. I get a non-negative value for one feature/input to this y, although this is actually just a constant, and it has one of the l...
So, I have been analyzing audio data. I used the librosa package and used its .stft() function to calculate the Fourier transform of my audio data. I did the following- aud,sr=librosa.load(os.path.join(path,'genres_original',i,f'{i}.00001.wav')) aud_ft= np.abs(librosa.stft(aud, n_fft = n_fft, hop_length = hop_length,wi...
I am trying to build a model to analyze the relationship between COVID-19 mortality rate in each U.S. state or county (y) and independent variables (x) including: Vaccination rate: 1st, 2nd, booster COVID-19 policies: mask mandate, vaccine mandate, social distancing, quarantine mandate Amount of healthcare resources: ...
I have to use the same training set and I have to find two models, one of the family ${()=}$ and one of the family ${()=+\frac{7}{10}}$. After found these models, can I say that the model with the smallest MSE is the best one? Or they have the same value? I'm very confused.
I have around 50 items and I need to ask human graders to rank them. Is there any good resource on how to design this crowd sourcing task? For example, it will be tiresome to ask humans to rank 50 items at once. Also, considering all possible pairwise comparisons ends up with a huge number (50 choose 2). I know one can...
I am attempting to get every ordered combination of individuals in groups while keeping the order of the groups consistent. For example, there are four individuals in group 1, two individuals in group 2, and two individuals in group 3. The group size might change and the number of groups might change in different itera...
Warning: ML Noob. I have a 3D dataset (data at the bottom) with 2 feature variables and 1 target variable. Polynomial Regression produced unsatisfactory results and it seems that the relationship of my data is more logarithmic in nature. My goal is to use the curve_fit() function, or similar, to understand how differen...
When running an A/B test in python with scipy stats, we haven argument call: equal_var. More info here: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_ind.html But basically it means: If True (default), perform a standard independent 2 sample test that assumes equal population variances [1]. If ...
Recently I've been reading some materials about nonparametric methods. Two methods related to the word "kernel" rasied my interest-- Nadaraya–Watson estimator and RKHS method. What's the difference? What are the pros and cons?
is P(notB|A) same as not(P(B|A)) if not then what is the difference between them? this is taken from bayes question.
Please help me how to find the Fisher information matrix for the MLE of a Multinomial ... It is said that considering $n$ and $p$ constraints in multinomial distribution. In other words, when $p$ has $k$-dimension, real parameter number is $k-1$.
I'm trying to create an IPW model with a base model of MLP, yet from one run to another, all the propensity scores for each row in the dataFrame are distributed differently. Could you please help me understand this behaviour? and why it doesn't happen when using a base model of logsitic regression for such task? Thanks...
Coordinates and Labels Take the simple case of 3 distinct object classes and 5 instances of each class situated in 3D Euclidean space. The coordinates and labels might look like the following: import numpy as np np.random.seed(0) coords = np.round(2 * np.random.rand(15, 3), 2) array([[1.1 , 1.43, 1.21], [1.09,...
Recently, I found out that it is possible to simulate new observations from an Empirical Distribution Function (EDF) . Suppose I collected some data (e.g. heights of baksetball players): $x_1, x_2,\dots,x_n.$ I first create the standard EDF for this data To generate new observations from this EDF, I then generate some...
all I'm trying to determine the AR and MA of a time series by looking at the ACF/PACF plots but they doesn't look like the classic examples of the textbooks. it has 264 monthly values of a stock index from 2000 to 2022. The series is not stationary so I take a diff and then plot acf/pacf. As you can see the first and s...
I have the following crosstab the percentages. how can I use ttest_ind to calculate individual cell's p-value. agegrp 30-45 46-59 60+ sex Female 0.642857 0.7 0.909091 Male 0.357143 0.3 0.090909 # Is this correct ???? group1 = [???] # ( percentage of female*30-45 ) group2 = ...
I have about 10 classes, on which I train a CNN with a softmax output layer using one-hot encoding and categorical cross-entropy loss. The problem is that two pairs of these of these classes (let's say A and B, and also E and F) also have very few "in between" examples. So I would expect the following possible scenari...
I am conducting a reanalysis of some data. The dv is continuous (beta value ie neural activity) and the iv is categorical (position) with three levels (1, 2, 3). There are 126 observations. The original analysis was conducted in SPSS and the original paper reports F(2,82) = 43.058, p = 0.00. I am conducting my analysi...
I am trying to calculate the power I have/need in a study using 2:1 ratio of samples, when the analysis will be done using a linear model with treatment as fixed effect and covariate. I have so far looked at the pwr library in R where I can compute pwr.t2n.test(n1 = n1, n2=n2, alternative = "two.sided", sig.level = 0.0...
I am currently trying to understand the quasi-binomial model and have a rather basic question, which I seem not to be able to see an answer. The outcomes in binomial models are binary. So, 0 vs 1, car vs bike, red vs blue, or Madonna vs Cher. The outcomes for quasi-binomial models on the other hand can be continuous, e...
quite new to statistics and panel regressions, using it for a university project. I'm currently doing research with Mergers and Acquisitions data. For a defined time frame I have several M&A transactions, the respective deal volume, the industry and the country the target firm operates in as well as the year of the tra...
Proofs of asymptotic normality that I have seen involve taking the first-order taylor expansion of the score function (derivative of the log-likelihood) about the MLE estimate evaluated at the true value of the parameter, and then using the central limit theorem, law of large numbers, and Slutsky's theorem. If one assu...
Suppose we have two random variables that follow a multivariate normal distribution, $[x,y]\sim MVN([a,b], \begin{bmatrix} \rho_1 & \rho_3 \\ \rho_3 & \rho_2 \end{bmatrix})$ Then what is the distribution for the sum of x and y? That is, $z=x+y \sim N(?,?)$ Surely, $N(a+b,\rho_1+\rho_2)$ does not seem right, since we n...
Let the function $XOR:\{0,1\} \times \{0,1\} \to \{0,1\}$ be the function defined by $$\begin{align} XOR(0,0) &= 0, \\[6pt] XOR(0,1) &= 1, \\[6pt] XOR(1,0) &= 1, \\[6pt] XOR(1,1) &= 0. \\[6pt] \end{align}$$ Let $\mathcal{H}$ be the set of all linear classifiers on $\Bbb R^2$, where \begin{align*} h(x_1,x_2) = \begin{c...
I have a question regarding the Difference-in-Difference model. My data consists of three groups: control, intensity 1 and intensity 2. Both treatment groups have two moments of treatment, essentially creating four treatment groups (five including Control) and four periods (see table) Group Period Treat * Post ...
I am testing the effectiveness of a treatment on accuracy of decisions. I believe that the treatment will help people with low iq make more accurate decisions, and for people with high iq it won't make a difference because their decision making is already optimised. What i do is i split the sample in high and low iq. T...
I am trying to do classification on multi-class and multi-label data using feed-forward networks. I have mostly been using keras. Here's all that I have tried to address imbalance in my text data, but to no avail. using loss functions like binary cross entropy, cross-entropy, focal loss, source using class weights. I...
Background info: I've explored the dimensionality of a construct with a four-correlated-factor model, which yielded a good model fit but the factor correlations were too high (all above .70). A bifactor model could better capture the dimensionality of this construct, with one general factor and four uncorrelated specif...
I was learning about BYTD in an online tutorial here I understand that it is used a) to predict the number of purchases that will be made by the customer. b) Lifetime value of the cuatomer over a defined period. I see that the authors use a term called "Discounted cash flow" and assign 0.01% as monthly discount. Howeve...
I have an instrument that holds a correlated-factor model and a bifactor model (one general model and four orthogonal factors). I need to report the reliability of each subscale. I've computed Omega (model level and factor level) for the bifactor model, but I don't know how to compute Cronbach's alpha for subscales in ...
I am building a prediction model that tries to predict 'sales'. My dataset contains sales(quantity) and around 60 features. The features are mostly weather features (e.g. temperature, humidity, sunshine hour duration) and binary weekday(info) (monday 0 or 1, tuesday 0 or 1, holiday 0 or 1). I built my Generalized Linea...
I have model A: model = Sequential() tuple_kernel_size = (3, 3) pool_size = (2, 2) model.add(Conv2D(32, tuple_kernel_size, activation='relu', input_shape=(input_dim, input_dim, 3))) model.add(MaxPooling2D(pool_size)) model.add(Conv2D(64, tuple_kernel_size)) model.add(MaxPooling2D(pool_size)) model.add(Flatten()) model...
So , I am currently working as an Intern for Government Statistical Organization that does sample surveys & presents estimates on various aspects. My work is to present some statistical analysis using data from the published reports . Can I run ANOVA to check for difference between means for different groups in this ...
This may be too abstract for SE, in which case I will post in other forums. I am running a binomial glm, where my response variables should be A and B. Response A is actually a grouping of A1 and A2. I accidentally ran the binomial model with A1, A2, and B as my responses. I understand that if you run a binomial model ...
I have a data set with about 1 million rows of data. The most important fields are the id, the date_time, the customer and the score. Firstly I want to calculate the mean score for each customer (straightforward) but I want to consider the count of the score against each customer. Eg Customer A has an average score of...
I was looking at the following question, which appears to suggest that multiple indirect effects can be added together to calculate a total indirect effect. Multiple mediation analysis in R But reading the abstract of this paper leads me to believe that there is a way to calculate the total indirect effects all togethe...
I have a question regarding a a sinlge-choice problem in my time series course. My question is the following: Is the variance of a process in first differences larger than the variance of the undifferenced series? I cannot find anything on this either in the course material or on the internet. So my intuition is that d...
I understand that an accelerated failure time model can be conceptualized as a cox model which includes covariates whose effects depend on actual time, so the convenient expression of the partial likelihood due to Cox is simply not possible when the data arise from this type of model. If this is true, i.e. if $\log \la...
My understanding is that LGBM will, more or less, figure out on its own which features are important and which not Does it still make any sense to do any feature selection before training a LGBM model?
Into my model x is categorical variable with 3 categories: 0,1 & 2, where 0 is reference category. However number of "0" categories are much larger than others (1,2) which increases the chance of a biased outcome. X N of rows x=0 600 x=1 45 x=2 45 Let's say we have regression y~x+z+xz, where xz is the int...
this is my first post. I did already read various didactic materials and related posts here, but still had trouble figuring this one out. Sorry this is so long but I am trying to be as specific as possible, and also mindful that I might use technical terms incorrectly, so I'm spelling things out rather literally to be...
Autocorrelation estimator Given a wide-sense stationary process $\{X_t\}_{t\in\mathbb{N}}$ one can estimate its autocorrelation defined as $R[k]=\mathbb{E}[X_tX_{t+k}]$ from $N$ observations $\{X_1,X_2,\dots,X_N\}$ using the following unbiased estimator $$ \begin{equation} \hat{R}[k]=\frac{1}{N-k}\sum_{i=1}^{N-k}X_iX_{...
We have collected biopsy data and clinical data from 232 patients. The are in total 45 different clinical and histopathological variables available. What statistical method(s) is recommended to identify variables with prognostic predictive value? Is LASSO regression an option?
I have a classical multiple regression model: $y=b_0+b_1x_1+b_2x_2+b_3x_1x_2$ where $x_1$ is binary and $x_2$ is continuous and mean-centered. My question is about the interpretation of the estimate $b_1$. As far as I understand from multiple sources, the interpretation of $b_1$ in the presence of an interaction is as ...
While reviewing a paper, I came across the following problem: the authors tested two groups, let's call them A and B, in two different experimental conditions, X and Y. The outcome variable had three non-ordinal, nominal levels: a,b and c. If the subjects responded 'a' that was considered the correct or expected answer...
I've read some resources such as my Introductory Econometrics textbook that state the model parameters are $B_{0}$, $B_{1}$, ..., $B_{p}$ where $p$ is the number of predictors in the model. Other resources include $\sigma^{2}$ as well as one of the 'model parameters'. Is there a reason for the discrepancy?
I looked at the the R code here (How to compute Variability Independent of the Mean (VIM)) but have run into my own trouble trying to calculate variability independent of the mean. I have included my code where I am trying to repurpose it. I removed the set seed and made my own mini df with 3 sample subjects and blood ...
I am working with gamm4 models in my research and am having trouble understanding how to go about calculating confidence intervals for my models. EX model: m<-gamm4(turbidity~ year+discharge,data=data,random = ~(1|pool)) #where year is a factor and pool is a factor. I would like to calculate the confidence interval of ...
Can Generalized estimating equation (GEE) handle multilevel data? and how?
How does one determine the mean model and the variance model in simultaneous ARMA-GARCH modeling without using AIC? Rather than two step look at ACF/PACF of residuals squared of ARMA to specify the GARCH mean model order, and find p,q in ARMA of the series squared then use rugarch how does one find the specifications i...
Let $r_{s, t}$ and $r_{f, t}$ be the return rates of the spot and futures of a commodity at time $t$. The hedging ratio based on variance minimization is calculated by finding the minimum of the variance of the combined returns: $$\beta_t = \rho_{sf, t} \frac{\sigma_{s, t}}{\sigma_{f, t}},$$ where $\rho_{sf, t}$ is the...
Suppose I have a simple OLS model for a covariate that is not evenly distributed. Is there a way to get a prediction error estimate that reflects that greater uncertainty for covariate values with few samples. For example, in the following fit, the model is not a very good for the 3 samples with x=1, so I'd want much ...
If we have a sequence $X_n$ that converges almost surely, it makes sense to say that $\mathbb{P}(\lim_{n \to \infty} {X_n} = \mu) = 1$. However, does this imply that the number of failures, i.e., $|{X_n}-\mu| > \epsilon$ is necessarily finite for any variation of the sequence? Additionally, I'm also curious about the w...
This question refers to the statistical performance (usefulness) of synthetic minority oversampling technique in small samples. Suppose one has a data set with 300 observations, and two classes: 0 = 252 1 = 48 Is there any literature recommending (or not recommending) the synthetic minority oversampling technique for t...
I am trying to do a time series decomposition using this1 article as a guide--it uses statsmodels.tsa.seasonal.seasonal_decompose. However, the trend line I get does not extend to the beginning or end of my data's time period, it only sits in the middle. is this expected? any ideas around what I may be doing incorrectl...
I created a forecasting model Facebook Prophet and now trying to analyse the forecast errors (yhat - forecasted). Following are 3 graphs I plotted First one is raw forecast errors, second one is their ACF and the last one is residual plot (actual vs forecasted). Based on ACF plot (2nd plot) The X axis is the lag 40, ...
Given a probability space $(\Omega, \mathcal{F}, P)$, a random variable X is defined to be a function from $\Omega$ to $ \mathbb{R}$ such that for every $a \in \mathbb{R}$, the set $\{X \leq a\} := \{ω \in \Omega : X(\omega) ≤ a\}$ belongs to $\mathcal{F}$. From the axiomatic definition of a probability space, for eve...
TL;DR There are well-known tests to compare classifiers. How can we generalize to classifiers with random training steps? I am comparing two classification algorithms (A and B). I can see that typically algorithm A is better than algorithm B in terms of the out-of-sample error (error meaning misclassification rate). I...
y = b1 + b2*x + error test the null hypothesis H0; b1=0, b2=1 using R, I solved this problem like this. P <- read.csv("PS3-PPP.csv", header=T, na.string=".") m1 <- lm((log(PPP)-log(EX)) ~ 0, data = P) m2 <- lm((log(PPP)-log(EX))~log(EX), data = P) anova(m1, m2) These R codes are correct to test the null hypothesis?...
Background Suppose we have a box of resistors. The manufacturer rates these resistors at 100 ohms, but they have some variability. Let $x$ be the true resistance of a resistor chosen from the box at random. Suppose $$ x \sim N(\mu,\sigma^2) $$ We have an ohmmeter that can measure the resistance of the selected resistor...
I would like to use the normalized crosscorrelation coefficient NCC as a loss function in order to compare a output matrix A with a reference matrix B. NCC=Sum_{ij} (A_{ij}-)(B_{ij}-)/(||A||*||B||) with ||X||=SQRT(Sum_{ij} X_{ij}*X_{ij}) and is the arithmetic mean I tried to use the following Code as Lossfunction, but...