instruction
stringlengths
9
38.7k
Is the data transformation to the uniform [0,1] always required in copula modeling, even for Archimedean copula? I have read some sources stating that the first step in copula modeling involves transforming the data to the uniform [0,1], but doesn't Archimedean copula have a special property to handle data that is not ...
You can take the mean of any number of values, including just one value - in that case, the mean will just be equal to that value. Standardized means (standardized first moments) are always equal to zero. You can't calculate variance (the second standardized moment) for only one value, though - you need a minimum of tw...
I want to assess how a predictor differs in its associations with 2 different dependent measures (i.e., a continuous measure of objective memory and a categorical measure of self-rated memory). I also have some covariates I want to control for (i.e., age and gender). The initial idea was to run OLS regressions, predict...
This may be a dumb question but I was wondering about the appropriate chronology to adjust model parameters in a glm when performing variable selection. Suppose, one has a set of predictors $x_1$, $x_2$, ..., $x_n$. The dependent variable $Y$ is a count variable, so either poisson or negative-binomial distribution are ...
I have to predict a fault (automotive related) as much in advance as possible. Right now I have found a solution that is somewhat satisfactory (a good number of true positives and a low number of false positives) but it doesn't feel optimal. I know that usually this fault appears when a variable X drops (although it's ...
Some distributions, like the Cauchy distribution, don't have a finite variance, and therefore the central limit theorem does not apply to them. If I have a thousand randomly selected observations from a Cauchy distribution, though, I have a finite sample with a finite mean and variance. Since I can calculate a mean and...
I was wondering if there's any relation between the two metrics. Both measure the distance between distributions (or samples of them). And they seem quite similar. The energy distance can be summarized as twice the mean of the between sample distances minus the means of the within sample distances of each sample: $$ED(...
I designed a simulation example to understand how splines can work in modeling non-linear functional effects of covariates in a regression framework. I generated the data from the following model: $$ y_i = 2 + f(x_i) + \epsilon_i $$ where $f(x)=2* sin(x)$ and $\epsilon\sim N(0, 0.5^2)$. Then I used the B-spline design ...
There are two things which confuse me about the Grubbs-test: (1) The first aspect involves the two or one-sidednes of the test: Lets assume I want to check if my W6 dice, where I expect the probabilities to be $p_i=1/6$ each, is biased. I throw the dice $n$ times and get $h_i$ as frequencies for my $m=6$ categories $i\...
I am confused about how the above paper gets the correlation of the coefficient estimates $Cor^2(\hat{\gamma_j}, \hat{\gamma_k})$. The covariance matrix of the coefficient would be $(Z^TZ)^{-1}\sigma^2$. If the $Z_j$ and $Z_k$ are independent, so the diagonal of this matrix would be 0. But how the author can get the c...
I used the function friedman.test to test for differences between multiple conditions and then used friedmanmc as a posthoc test. As a result, three comparisons are said to be "true" about the statistical significance, however with one p-value being 0.06. Here are the crucial parts of my results: alpha: 0.05 Compariso...
I am running code in R where I repeatedly evaluate the multivariate normal density of a high-dimensional object for thousands of sequential iterations. I am using dmvnorm() to do this. My understanding is that, under the hood, dmvnorm() computes the inverse of the covariance matrix to evaluate the MVN density. But I al...
I am having a bit of trouble understanding endogeneity. If I have a regression specification where the "true" model looks like this: $y = \beta_1 x + \beta_2 z + \epsilon $ And we lack data on $z$, so we run: $y = \beta_1 x + \epsilon $ What confuses me is that this is only problematic when $ x $ and $ z $ are correlat...
My question is essentially the same as in this thread, however the answer given wasn't especially exhaustive in that midas_r_ic_table must take the "table" argument, a table that can be generated via expand_weights_lags, another function that requires restrictions. Thus, even though midas_r_ic_table can output the mode...
From wikipedia, the assumption we are making in multinomial logistic regression is that we take one class as "reference", say class $K$, and we assume that $\ln\left(\frac{\mathbb{P}(X=k_0)}{\mathbb{P}(X=K)}\right) = \beta_{k_0}^TX_i$. This very much feels like a GLM, though I do not know what is the distribution used ...
ADF testing showed that the series are I(1) stationary. After taking a first difference, the ACF and PACF looks the following way, which is nothing I have came across in the literature, where mostly they only mention dampening signatures. Every single spike is significant in the ACF function and it has an oscillating p...
How does training of word embeddings lead to the clustering of similar words in the embedding space? What causes that effect?
I developed a prediction model using stepAIC after univariate analysis. glm(formula = outcome_m6 ~ age.x + lesion_size + index_cat.x + pain.x, family = binomial, data = data) The following is the summary info of the model. Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) 2.7372 587.8717 0.005 0....
I don't get why equation 7 is true, can someone explain me why? This is part of the proof of the invariance principle in copula theory.
On the Wikipedia article for exponential families the density of a distribution on a measure space $(X, \xi)$ from an exponential family is written as $$f_{\theta} \colon X \to \mathbb{R}_{\ge 0}, \qquad x \mapsto h(x) g(\theta) \exp\left( \eta(\theta) \cdot T(x) \right)$$ for $\theta \in \Theta$. On two occasions the ...
My typical workflow in the past, when creating machine learning models, has been to do the following: Decide on some candidate model families for the task at hand. Divide dataset into train and test sets. Set aside the test set, and pretend it doesn't exist. Do some EDA on the training set. For each model candidate, (...
Let $X_1,X_2,\dots,X_n$ be iid Beta($\theta,\theta$) samples. Is there a UMP level $\alpha$ test of $H_0:\theta=1$ vs $H_A:\theta\neq1$? We first test $H_0:\theta=1$ vs $H_A:\theta<1$. The likelihood ratio is $$\lambda(X)=\frac{L(X|H_0)}{L(X|H_A)}=C\prod_{i=1}^{n}\frac{1}{x_i^{\theta_A-1}(1-x_i)^{\theta_A-1}}=C\exp\lef...
can you guys help me solve this equation and go from : to this one : I have tried something but my result gives me this : p(θ, φ, z| α, β) = p(θ, φ, z, w|α, β)/p(w|α, β) the equations are taken from this paper : https://coli-saar.github.io/cl19/materials/darling-lda.pdf
I'm performing a meta-analysis and am trying to extract a Cohen's $\hat{d}$ effect size measure from a paper; however the paper does not report any means or SDs. They do, however, report the results of a welch's t-test. If this were a normal two-sample t-test I could directly compute the cohen's $\hat{d}$ as $\hat{d}$ ...
I'm reading a paper by Judea Pearl titled "Detecting Latent Heterogeneity" from 2015, which can be found at this link: Detecting Latent Heterogeneity I'm having trouble understanding a derivation in Appendix B of the paper. Here's the excerpt: \begin{array}{ll} M: \quad & Y=\beta X+\gamma Z+\delta X Z+\epsilon_1 \\ & X...
Typically in textbooks, it is assumed that measurement noise $\nu_{t}$ is normally distributed. Suppose that $S_{t}$ is a signal. Then a measurement equation is $$ S_{t} = x_{t} +\nu_{t} $$ where $$ \nu_{t} \sim WN(0,\sigma_{\nu}^2)$$ However,my signal data has the following structure: $$ S_{t}= \beta_0+\beta_{x}x_{t}+...
I am working on a curve fitting problem where I have a series of real data points, and I want to fit a curve to this data. The derivative of the function I am trying to fit has the form: f'(x) = -sqrt(K1 * x^2 - K2 * x) Here, (K1) and (K2) are constants that I want to optimize, and (x) is the independent variable which...
This problem was originally asked in another post as a minimum viable problem, such that all the details were generalized away. Posters on there seemed to want more information, so this is the more detailed post. Explanation of Problem The data comes from a large database of 226,838,098 million weibos (Chinese tweets)....
I did a meta analysis of percentages using metamean in RStudio. Should I have used metaprop instead? For the SD argument in meta mean I used the SD for the binomial distribution.
Suppose that two observations $X_1$ and $X_{2}$ are drawn at random from a distribution with the following probability density function $f_{\theta}(x)=\frac{1}{2\theta}$ if $0 ≤ x ≤ \theta$ or $2\theta ≤ x ≤ 3\theta$, otherwise, $f_{\theta}(x)= 0$ where $\theta > 0$ Determine the maximum likelihood estimator of $\thet...
So, I know yet another Precision, Recall question which is asked umpteenth times now. I wanted to ask some specific business related questions. Imagine if you are building a classifier to predict which patient who are diagnosed with certain disease are most likely to going to become eligible for treatment in next 3 mon...
Let's say study 1 finds a HR in group X vs control of 1.5. Study 2 finds a HR of 5.4 in group Y vs control. As I understand it, HRs involve the rate of the event happening. Since we do not know the amount of time that each study used, we could imagine they are different times, and the HRs aren't comparable. That is, we...
To estimate the parameters of a truncated distribution (lognormal for example), we can use the Maximum Likelihood Estimation or Method of Moments. For the Method of Moments Estimation, one needs to write down the mathematical expression of the expected value of the truncated lognormal distribution. Is it possible to do...
I want to define rare event in competing risk. How many percent of the event must exist to be able to say that the event is rare? It can be said based on the EPV. But if the occurrence of the event is low, with what percentage can we say that the event is rare?
I am using a logistic regression classifier and Gridsearch to optimize negative log loss. After generating its learning curve to test for overfitting/underfitting, my model seems to return this learning curve. Note that my y-axis is log loss, and my x-axis is my iterations. Is this a sign of good fit? I wasn't sure as ...
I'm currently implementing Baum-Welch algorithm for Semi-Continuous Hidden Markov Model (SCHMM) as described in Huang, Xuedong. Semi-continuous hidden Markov models for speech recognition, 1989, pages 96-97. In SCHMM one assumes that emission probability given a state follows a mixture of gaussian pdfs that are shared ...
I am interested in the ratio of random slope variance from a random slope and intercept model. I fit the model using lme4 as model_slopes <- lme4::lmer(trait ~ covariate + (covariate | individual_ID), data = example_dataset) and calculate the ratio as : $R_S^2$ = ${V_S \over V_p}$ = ${V_VV...
I am currently working on an algorithm that aims to reduce dimensions and map data within the non-negative orthant. Subsequently, the mapped data is utilized as input for a classifier. The classifiers I have employed thus far are 'LogisticRegression (LR)' and 'MultinomialNB,' both of which are part of the sci-kit learn...
I have been using the lowess smoother to calculate trends for time series data for a while now but until now my data was always without gaps. I now have to work with data where there are quite large gaps in time (~2h for minute sampled data so ~120 missing samples) and by reading the documentation and looking at the ac...
I recently came across a paper which uses the following formula to empirically estimate the extremal correlation coefficient $\chi_{ij}$ between two variables $x$ and $y$ as follows: $$ \chi_{xy} = \frac{n}{\sum_i^n \min(\hat F_X(x_i), \hat F_Y(y_i))}, \qquad \text(1)$$ where $x,y\in\mathbb{R}^n$ and $\hat F_X(x)$ is t...
I'm using Bootstrap for testing the mean by creating samples centered around H0 Private Sub Boostrap() Dim datanew() As Double N = UBound(Victor1) ReDim Preserve datanew(N) As Double For I = 1 To UBound(Victor1) datanew(I) = Victor1(I) - xlApp.Average(Victor1) + Val(H0.Text) N...
I am working on optimizing a GP-based multi-fidelity surrogate model and I found this publication very helpful: 'A Tutorial on Bayesian Optimization' by Peter I. Frazier (July 10, 2018). and I have some questions regarding the conclusions on Expected Improvement (EI). In chapter: 4 Acquisition Functions, These alterna...
In Introduction to Statistical Learning it is written The standard least squares coefficient estimates discussed in Chapter 3 are scale equivariant: multiplying $X_j$ by a constant $c$ simply leads to a scaling of the least squares coefficient estimates by a factor of $1/c$. In other words, regardless of how the $j$th...
I am trying to use a repeated measures ANCOVA to look at differences over time between groups in SPSS. I was following this helpful thread (What is the correct way to add and analyse covariates in a 2x3 Mixed ANOVA in SPSS), but the example only uses two timepoints. Does anyone know how it might be extended to involve ...
I am new to researching modeling and forecasting using the GARCH model. So I am still confused about the result that I get. I forecast stock return volatility using Eviews. The best ARIMA model in my case is ARIMA(1, 2) based on the highest adjusted R squared value, and the lowest AIC and SIC. Then, I continue to model...
I am currently facing a problem with my GARCH model, specifically with the forecasted results. It appears that all the forecasted values are turning out to be identical, which leads me to suspect that these results are inaccurate. I would greatly appreciate any suggestions or guidance on how to resolve this issue. In o...
I am comparing several combinations of two columns of non-normally distributed paired data: I used R with the following syntax: wilcox.test(x, y, paired=T) I tried to replicate this test in GraphPad Prism using Wilcoxon matched pairs signed rank test with or without the method of Pratt. The obtained p-values do not ...
Let $\Theta = \{0,1,\frac{1}{2}\}$, show that for all $m \geq 1$ $S_{m,\Theta} = \ln (3-2^{-m+1})$. In the previous question was asked to show that when $\Theta = \{1\}$ that for all $m \geq 1$ $S_{m,\Theta} = 1$. I've managed to do that by computing $S_{m,\Theta} = \ln(\sum_{i=0}^m \Big( \frac{1}{3}\Big)^{i}*\Big(...
I want to determine how big the time lag is for two time series. In this example, how long the twitter sentiment about a stock leads the stock price. I use Python with statsmodels.tsa.stattools grangercausalitytests. The granger causality matrix provides values: Granger Causality number of lags (no zero) 1 ssr based F ...
I have a question about a linear regression I would like to perform. In my experiment I have two treatments and a control which have 4 repetitions of 20 genotypes each. I have performed linear regression on this data which worked fine. I wish to perform a linear regression on the differences between the treatments and ...
I am struggling to determine which test to use to compare the percentage data derived from continuous data. I am studying specific sleep characteristics in the context of depression. I have a population of n = 717 individuals, out of which n = 74 suffer from depression. I would like to compare the percentage of sleep t...
I have a 1000 sample of an electrical test at each 4 different time, so I do simple descriptive statistic to obtain standard deviation at each 4 different time. Can I then use skewness on standard deviation itself to know if all my standard deviation is symmetrical? From my search, I only see people choose either one a...
I have followed the tutorial here for Multiclass semantic segmentation using DeepLabV3+. My question regards a preprocessing function. In the following block, is it not problematic that resizing the mask image can cause change in original values, if the aspect ratio is different from the original? def read_image(image_...
I have a dataset with 5 categorical variables that relate to before/after numerical data. I need to plot the relationship between the categorical data and the numerical results. Each category relates to a part of the research in which kind_of_measure is related to how the measure was taken, cause_variation_turb and ass...
I am trying to write down the log-likelihood for the multivariate skewed student-t distribution, but I don't really get how to define it exactly. Could someone please tell me the definition as in how it is written down? I am using the following univariate skewed student-t (see below). I believe that it follows from: Fe...
maskgit and diffusion - can you explain the similarities and differences between these two types of models?
I'm fitting a Gamma GLM using glmmTMB and noticed that choosing link = "log" or link = "inverse" results in parameter estimates that are significant in opposite directions. Any idea why this is happening and how to fix? See dput below for data x = structure(list(var1 = c(0.252214238219584, 0.392393931685829, 0.1447456...
I have a study like this: We recruits 20 teacher to participate in the research study. We use a step-wedge design where 10 of them are randomly assigned to a group that will receive an app and 10 teachers are randomly assigned to a group that will receive the app after the study is complete . The study lasts 8 months....
Based on some preliminary exploration, here are some interesting observations about kurtosis for when you're calculating kurtosis for groups that have fewer than 4 observations. First, here's the relevant R code. One_Observation_Groups <- list(1, 3, -100, 0, 1000) sapply(One_Observation_Groups, function (x) { y <- su...
I want to compare two 1-factor models: (a) a congeneric model where the loadings are optimally weighted; and (b) a parallel model where the loadings are fixed to 1 (equally weighted). # (a) congeneric model (optimally weighted) model_1f_congeneric <- ' total_factor =~ bdi01 + bdi02 + bdi03 + bdi04 + bdi05 + ...
I have a dataset with around 42000 samples. For each sample I have a continuous variable "abs_error" (coming from a experiment ran before, not relevant here) and the subject's race and sex. I want to test if the error is significantly different for subjects of different races and sex, i.e. compare white males, white fe...
In algorithms that perform better with data normalization or deep learning problems such as classification, how normalizing data does not bias our algorithm? I mean, in training or even testing, we can normalize data and columns with very big values compared to others, will become like them. But, in prediction for one ...
I am trying to see if there are differences in how comfortable people are in adopting children at two time points. Their responses are ordinal ex. very likely, somewhat likely, not at all likely etc. Normally I would do chi2 but the data is not independent (how important is this assumption - does it make the chi2 value...
In Imbens & Wooldridge (2009, p. 19), they define the normalized difference as: whereas the cobalt's package standardized mean difference uses by default (for the ATE) "the 'pooled' standard deviation (i.e., the square root of the mean of the group variances) in calculating standardized mean differences" (https://ngre...
I am running a planned missingness design to pilot some items for a questionnaire I am designing. Specifically, I want to test 80 items and every participant (N = 300+) receives a random 10-item subset of the 80 items. This, however, leads to 20-40 data points per item, thus ~90% of missing values. As I want to evaluat...
I want to estimate the impact of economic sanctions on GDP and other macroeconomic indicators on Italy in 1935 with DiD. I have observations of GDP of Italy (treated) and of other countries (control) from 1929 to 1938. I created a time dummy equal to 1 if Year $\ge$ 1935 and a treatment dummy that is equal to 1 if the ...
Background: We are using a research tool that uses computer vision to quantify facial expressions (ie whether someone is smiling) from a webcam. The raw output for this tool is time series data showing the probability someone is smiling at time x. I want to compare data while people watch two different advertisements, ...
I'm using a synthetic dataset in which I sample from three independent Bernoulli random variables x1, x2 and x3 with p=p1, p=p2 and p=p3 respectively. I wish to "introduce dependence," or make the variables no longer independent to varying degrees. I tried to do this by introducing another random variable, x0, such tha...
I'm looking for info on how to compute both the partial spearman correlations and p-values for complex survey data. There was a similar question for pearson correlations here: Partial correlation coefficient with complex survey data. Thomas Lumley had the following answer to that question: svyvar() will estimate the p...
I want to train a neural network that is as simple as possible, that is able to classify datasets. I have 5 MedMNIST datasets that each contain a number of labels, and with complex features. I'm seeking a simple neural network solution that is able to be able to just identify the source of an image, without the need to...
I have a data set $\mathbf X$, with around 20 predictors, which is a matrix of parameters of a surrogate model. For each observation $\mathbf i$ of $\mathbf X$, the surrogate model was trained to predict a different simulated response vector $\mathbf y_{sim,i}$ and its parameters were recorded. In every observation, th...
I am interested in determining the expectation for a person's wordle score. If the person guessed the word every time, this would be straight-forward using simple expected value calculations. However, how would one handle the the fact that sometimes, you need more than $6$ guesses? At the outset, the data we're work...
Let $\{P_\vartheta \mid \vartheta \in \Theta\}$ be a family of probability measures on $(\mathbb R^n,\mathfrak B_{\mathbb R^n})$, parametrized by the subset $\Theta$ of $\mathbb R^m$. Consider the following σ-finite measures: $\lambda$, the Lebesgue measure on $(\mathbb R^n,\mathfrak B_{\mathbb R^n})$; $\mu_A$, the me...
This is a question concerning the definition of the p-value in a more general than ordinary case. Let $X\sim f(x;\theta)$ be a population and $(X_i)_{i=1}^n$ a random sample (i.i.d. $\sim f(\cdot;\theta)$, by definition). Let $(\mathcal X, \mathcal B)$ be the sample space (if $X\sim f(\cdot;\theta)$ takes real values, ...
There is a dataset consisting of 1100 in vitro fertilization cycles from 800 patients, indicating that some patients have undergone more than two cycles. The dataset contains 1100 rows. Each cycle begins with the measurement of a “hormone” level. Additionally, there is an "ethnicity" variable with three categories: Cau...
I have a lot of zeros in my samples; I found the following algorithm to deal with zero-inflated data before testing them: find the proportion of zeros in each subset. assume that in the subset with the smallest number of zeros all zeros are true. from each subset, remove the proportion of zeros equal to the proportion...
This is a different situation from rolling average or time series smoothing. Say I have 10 samples and four variables (x, y, S, T) associated with each sample. The results of a function R = y/x^e, i.e. R1 - R10, are correlated with S. In fact, e is the value of the exponent the maximizes the correlation between R and S...
I have the following data for three treatments used on a subject. Each subject is observed and given a quality value of 1-5. The numbers in the table represent the number of subjects in each trial group that were given the corresponding quality ranking. Treatment 1 2 3 4 5 a 1 1 20 0 10 b 0 5 13 3 0 c 1 4 1...
I'm a master student currently working with taxonomy and cultivation of wild edible mushrooms. In my experiment, I'm evaluating the effect of 4 distinct solid culture media and 4 temperatures on the mycelium growth and the biomass production of different mushroom strains. A separate experiment was done for each strain,...
I am assessing the effect of 5 predictor variables on species abundance. I have created 12 generalized linear models in R that have the same response and five predictors. Rather than run a complex model with one response, five predictors and a 12 way interaction, I opted to subset the dataset out and run each group sep...
Say we have a process where not all data is available at the beginning, and we need to estimate mean and standard deviation to normalize them, what would be the update for the tracking variables? Somehow I feel that the mean we can just track it with a simple average: $$ \mu_{t+1} = \frac{\mu_t \cdot t + \mu^\text{batc...
In page C4 of Chernozhukov et al (2018) the authors introduce a debiased ML estimator $\check{\theta}_{0}$ for scalar parameter $\theta_{0}$: $$ Y = D\theta_{0} + g_{0}(X) + U, \quad \mathbb{E}[U|X,D] = 0 $$ $$ D = m_{0}(X) + V, \mathbb{E}[V|X] = 0 $$ $$. \hat{V} = D - \hat{m}_0(X) $$ $$\check{\theta}_{0} = \big(\frac{...
Suppose I have a stationary time series, if I pool the data together it will look like a Gaussian distribution. However, I don't think it is proper since it might be auto correlated and Gaussian distribution assumes iid. What's the proper way to represent this series using distribution? Suppose I do ACF and PACF test ...
Q) Take $\Omega=[0,1]$, with the $\sigma$-field of Borel sets and $P$ the Lebesgue measure on $[0,1].$Find $E(\xi |\eta)$ for $\xi(x)=2x^2$, $\eta(x) = \begin{cases} 2, & \mbox{if } x\in[0,\frac{1}{2}), \\ x, & \mbox{if } x\in[\frac{1}{2},1]. \end{cases}$ The definition I'm using is,Let $\xi$ be an integrable random va...
I'm trying to understand if possible to generate a time series forecasting program that is able to deal with multiple values for each time step. Examples like this tensor flow guide show time series forecasting with a single set of data for each time step but is it possible for the timestep to also have multiple sets o...
I have two independent random variables $X$ and $Y$, and a constant term $a$. Furthermore, $\mathbb{E}[Y]=0$. I want to show that $$ \mathbb{E}\Big[\mathbb{E}[X+Y/a|aX+Y]\cdot\mathbb{E}[X|aX+Y]\Big] =\mathbb{E}[X^2]. $$ I would like to execute the towering property of expectation to evaluate this but it doesn't quite w...
In Shahar & Shahar (2010), the authors argue that in a typical pre/post observational study on two longitudinal outcomes $Y_0$ and $Y_1$: the change score $\Delta Y=Y_1-Y_0$ causes the post-period outcome $Y_1$, or the post-period outcome $Y_1$ causes $\Delta Y$. Which is true? If either statement could be true, does...
Problem This is more of a theoretical question than a practical one... Let's say I have three Random Variables: $Y$, $X_1$, and $X_2$. With the following properties: Cor($Y$,$X_1$) > 0 Cor($Y$,$X_2$) = 0 Cor($X_1$, $X_2$) > 0 You run two regressions: $$ Y = \alpha * X_1 + \epsilon $$ and: $$ Y = \beta_1 * X_1 + \beta...
I would appreciate if someone could introduce me a good reference for power transformations and Box-Cox transformation. I'm elementary in statistics and I want to learn them properly. Thank you very much in advance.
I want to recreate/reproduce a demand time series from real demand data given by a car rental fleet operator. Our contract with the operator has ended so we cannot use the real data as it is so I would like to synthesize a new demand time series that has similar characteristics to the real one. The real demand time ser...
I am using eviews 13 and I want to run these equations Co c yd yd(-1) Co c yd co(-1) With quantile regression I want to test the residuals for normality and conclude that since it's not normal I should use quantile regression. My models have structural breaks which I intend to fix with time based dummy variables. Sh...
Can you recommend a statistical model for predicting national blood demand? I am seeking recommendations for a statistical model to predict national blood demand. I am aware that there are several methodologies available for establishing prediction models, including regressions, time-series analysis, and machine learni...
I have the following dataframe in Python: import pandas as pd df = pd.DataFrame({'id': [1,2,3,4,5,6,7,8,9,10], 'group': ['a', 'a', 'a', 'b','b', 'b','b','c','c','c'], 'val':[1,0,1,0,1,1,0,0,1,1]}) print(df) id group val 0 1 a 1 1 2 a 0 2 3 a 1 3 4 ...
I was wondering if I could get some help with understanding this problem. Suppose at each period you receive a random amount of money that follows normal distribution $N(0, 1)$. If the total money you've received is less than zero, you die at some period. I want to get the probability of survival at period $t$. For two...
Context: I am working on a predictive model. Let's call it $f$. The outcome that $f$ is trying to predict is binary. It makes predictions as probabilities, i.e. for a given input $x$, $f(x) \in (0,1)$. Its performance seems to be so-so: The AUC is 0.67 and the average precision is 0.73 (compared to 58% positive cases i...
here is the sample data. I have spectroscopy data as X-variables (from X1 to X80) and corresponding Y variable. I need to run plsr model in R using "pls" package. There are two sheets. In one X-variables are raw (without any pre-processing). and in other sheet X-variables are vector-normalized Here, what I have done. l...
I am planning to run an analysis on data where each participant rated (scale 1 to 7) two types of products - three products of type A and three products of type B. I am only interested to know whether on an average, ratings for type A and B differed. I am not interested in product level stats. To illustrate, the data f...
I am given two variables $X$, $Y$ of which I expect a linear relationship, so it is reasonable to set up a simple linear model $$Y = \alpha + \beta X + \epsilon.$$ However, I know that both variables are also time-dependent in an expectedly 'similar' way, with both seasonality and trend. Therefore, I refined the linear...
I have two models looking like this, where just the fixed effects differ, but the random effects stay the same # Example one H2RS <- lmerTest::lmer(BZ ~ 1 + SV + ZP + (1 + SV | VPN), data = dailyfin) H4RSN <- lmerTest::lmer(BZ ~ 1 + SV + SV_DIFF + ZP + (1 + SV | VPN), data = dailyfin) I want to know which of these mo...
I was wondering about the asymptotic efficiency of the Interquartile Range (IQR) in the Gaussian case. I have calculated it empirically using a Monte Carlo estimator, and it appears to be equal to that of the Median Absolute Deviation (MAD) (36.75%). However, I have not found any literature on this topic. Specifically,...