instruction stringlengths 9 38.7k |
|---|
I fitted a VAR model, individually all the residuals do not have autocorrelation, but if I use the serial.test I get different results:
Type 'ES' Edgerton and Shukur (1999) Test p.value=0.99
Type 'BG' Breusch-Godfrey LM-statistic Test p.value=0.45
Type 'PT.asymptotic'Portmanteau statistic p.value=3.442e-15
I underst... |
I am testing for the independence of a specific set of variables with respect to a common event. Despite having a fairly decent sample size (n=236), the event I am testing for is relatively rare (2% of the sample). Consequently, when constructing my contingency tables, many cells for various variables have an expected ... |
I (encountered this in my lecture) wonder why do we want the autocorrelation of our residuals to be mostly within 2 s.d. as a sign that residuals are consistent white noise?
More specifically
why do we want the autocorrelation of our residuals to be mostly within 2 s.d.? shouldn't the white noise be as less correlated... |
I'm using the "std2" option for tab_model(), which according to the documentation follows "Gelman's (2008) suggestion, rescaling the estimates by dividing them by two standard deviations instead of just one." That paper is here:
http://www.stat.columbia.edu/~gelman/research/published/standardizing7.pdf
Without a log te... |
Suppose I have a collection of different independent probability distributions, $\{ P_i(X)\}_{i=1}^N$, each with their own support $I_i$. I know that the $10^{th}$ percentile of a given distribution is given as $x_i^{10} | 0.1 = \int_{\inf(I_i)}^{x_i^{10}} P_i(x)dx$ and the average (mean) of the $10^{th}$ percentile of... |
I have data with columns like this:
ENTITY Avg_Score_1 N_obs_1 Avg_Score_2 N_obs_2
With sample values:
001 | 0.997 | 900 | 1.13 | 905
002 | 0.890 | 250 | 0.96 | 251
For about 1000 unique ENTITY values, and I’m wondering how to calculate the ICC between avg_score_1 and avg_score_2 for the whole dataset.
Specifically I’m... |
With R, I run these two tests and get very different results. Does anyone have any explanations?
Thanks in advance!
Here is the code:
response_distribution <- matrix(c(1298, 818, # Number of "No" and "YES" in condition "High"
4176, 2682), # Number of "No" and "YES" in condition "L... |
I am constructing a statistical model to examine the relationship between thrust force and kinematic data collected from tags attached to animals. The data is structured with 'slip' as a random effect nested within 'individual'. 'slip' describes the slipping motion of the tag, which changes the relationship between thr... |
Yesterday I asked a question about why my randomly generated distance matrices were leading to Matérn covariance matrices that were not positive definite. The answer there called my attention to the fact that my simplistic way of generating randomly generated distance matrices was not ensuring that such matrices obeyed... |
let $X \sim Bin(10,p)$
We would like to test the following hypotheses:
$H_{0}: p=0.5 $ vs $H_{1} : p=0.3$
The Statistic $T(x)$ is defined as $T(x)=x$ and the critical (rejection) region is $R=\{x:T(x)\le4\}$
I want to calculate the conditional probability of the null hypothesis given $T(x)\in R $
That is : $P(H_{0}\m... |
I was studying Bayesian plausibility but was stuck on some basic concepts. Bayesian plausibility condition is an equation that says $$\int_{\Delta(\Omega)}pd\mu(p) = P$$ Where $P$ is the prior distribution, $\mu()$ is a distribution over posterior distributions while $\Delta(\Omega)$ is the set of posterior distributio... |
How can I test the hypothesis that two variables are correlated with each other at r=1?
I am not looking for a Pearson or Spearman test. That can give me a p<0.05 if the two variables are correlated regardless of the correlation coefficient.
|
I'm building a hierarchical regression analysis, where I'd like to test that a variable X (continuous) predicts Y (continuous), over and above a model that includes variables Sex (binary), A (binary), B (continuous), C (continuous) and D (continuous). There are 58 observations (I know, it's a small sample for the numbe... |
Because my model had a negative prediction, I used the same log method for it, but a problem occurred to me when I do this method, it is true that r2 also reaches 99, but the results of cross validation do not match with the results of the model, now when I do not get log r2 drops to 82, but the results of cross valida... |
I am modeling longitudinal Days of Pill Supply with predictors Number of Rx's and Patient Race. I was not able to use linear regression (proc reg or proc glm) because of heteroscedastic residuals, so I tried negative binomial regression. Days of Pill Supply is over dispersed (conditional variances much larger than mean... |
I have two data sets containing scores of a test applied to two groups of people: A control group (neurotypical individuals) and a group of people with a specific neurological condition. The aim is to decide, by mean-comparison test, if there is strong evidence suggesting the test can indeed identify when an individual... |
I have a model specified as lmer(log(dv) ~ chosen*tasktype +(1|id)+(1|qs), data)
The key issue in the data is that the groups are not indepedent, i.e., id and qs partially overlapping in fixed effects. This why I do lme rather than ANOVA, as suggested in a paper.
I want to know the difference between group levels so d... |
I have read this answer already "removing-censored-observation". I understand that removing censored data induce a bias in the analysis. But I have somehow a specific case.
I am just interested into compare discriminative power of two models w.r.t to independant (of training) test data in a survival analysis setting.
I... |
I am wondering about the normality assumption. It is required because underneat all this, ANOVA is running a F test. The denominator of the F test is the sd of the residuals, thus we need these residuals to be normally distributed.
This leaves me wondering about the numerator: the numerator is the variance of means of ... |
I am relatively new to the causal discovery space and I have a clarifying question regarding the definition of an inducing path. In Causation, Prediction and Search (page 173), the authors state that a path $U$ is an inducing path "if and only if every member of $O$ on $U$ except for the endpoints is a collider on $U$,... |
I have a complex survey dataset with a response (dependent variable) bounded between 0 and 1, where I have applied multiple imputation to the dataset to account for missing data. The response formally speaking is a percentage, which is a summary of two numbers. However, I cannot recover those two numbers to employ bino... |
I'm trying to learn value function iteration by myself. Recently I'm solving this following problem:
Consider a real business cycle model with production function: $y_t=e^{a_t}k_t^{\alpha}$, where $a_t$ fluctuates overtime following a Markov process $\pi(a_{t+1}|a_t)$. The household's utility function is $u(c_t)=\dfrac... |
Say we have $k$ mutually independent normal random variables $M_1,\ldots,M_k$ where $M_i = \mathcal N(\mu_i, \sigma_i^2)$. We have another normal random variable $R = \mathcal N(\mu, \sigma^2)$ that is independent to each $M_i$. Let $T_1,\ldots,T_k$ be positive reals. What, then, is the following conditional probabilit... |
If a person throws a die twice the probability of two sixes coming up is 1/6 x 1//6=1/36. The probability, from his perspective, of the next throw being a six is 1/(6x6x6)=216. But a second person throwing the same die for the first time thinks the probability of a six is 1/6. How can the same event,throwing the die,... |
Which variance did i get?
And how to get the population variance?
I run my data with subsampling model like this:
#copy data#
cabaisubsampling <- read.table("clipboard",header=T,sep="\t")
cabaisubsampling$aksesi <- factor(cabaisubsampling$aksesi)
cabaisubsampling$blok <- factor(cabaisubsampling$blok)
cabaisubsampling$s... |
I am trying to analyze the data of a 2x2x2x2 full factorial design experiment. (It wasn't my idea.)
Mercifully, we have plenty of data per run, each run has the same amount of data, and normality and rough equivalence of variances are not an issue.
My question is this: Is it appropriate or necessary to incorporate th... |
I'll start by saying apologies for perhaps not wording things correctly, as stats is not my first language (lol). Please let me know if there is any other info I need to provide to make this easier to understand.
My research question is looking at how different landscape metrics affect species richness. The species ric... |
I have two independent random variables $X$ and $Y$. I have data for both $X$ and $Y$. Based on the data I want to empirically estimate the value of $E(X|X>Y)$. Please suggest how to proceed.
|
By simple math, we can have
$$
E_P[f(X)] = \sum_X f(x)p(x) = \sum_X f(x)\frac{p(x)}{q(x)}q(x) = E_Q[f(X)\frac{P(X)}{Q(X)}],
$$
which can be approximated by Monte Carlo sampling in two ways.
1. Normal (ordinary) importance sampling:
Let $X_1, \cdots, X_n$ be i.i.d. samples from $Q(X)$, and $\mu_1$ the resulted estimator... |
Introductory Problem:
I have $n$ points in 3-D space, where I know their X and Y coordinates (not Z), and therefore the distances between points in those 2 dimensions. Each of the three dimensions has a variable evolving in that dimension so that the further apart the points, the more they have evolved, and the less th... |
I am interested in the appropriate technique for assessing the agreement of the paired values of measurements made by 2 measuring devices, an equivalence test of the mean of the difference in the pairs or a Bland Altman analysis looking at if limits of agreement (ie the sample mean of the paired differences +/- 1.96 SD... |
I would like to fit a regression model but adding the genetic relatedness matrix (GRM; n x n matrix) to control for the association of the sample.
I am not sure what is the best package to do that. I have found the function glmkin but I am not able to obtain fit statistics. Please see this example:
require(GMMAT)
data(... |
I have a gravitational model where particles (n ~ 1000) are being pulled by a massive blackhole. The particles can be seen to get stretched due to this. I want to measure this aspect ratio (Length : Width) vs time plot.
An example of this stretching can be seen in this clipping (different colours show different times, ... |
I recently read the paper by Kunzel et al. on meta-learners, I encountered there the following statement:
I fail to understand this statement, as from my understanding, under the assumption of strong ignorability (and the continuous assumptions), for sufficiently large $n$ the leafs in Causal Forests can be treated as... |
When obtaining a significant result on a Chi-square test of a contingency table with 2 rows and c columns where c > 2, the Marascuilo procedure should be performed to interrogate the proportions (row 1/ [row total]), in order to find which proportions differ among the column pairs (column 1 vs 2, 1 vs 3, ... 1 vs c and... |
I'm trying to run a Gamma analysis in a self-paced reading data. However, the model successively fails to converge. I've seen some answers here trying to solve this problem for other people, but none of the solutions was feasible for me.
I couldn't get an example from my data because it's too long (more than 9k rows). ... |
In our meta-analysis, we have several potential moderators, both categorical (e.g. disease type, outcome type), and continuous e.g. publication year. Suppose we wish to investgate the effect of publication year on the effect size, within each disease x outcome combination. The number of publication year values varies a... |
I have count data as a dependent variables in my analysis. So, I am using a negative binomial regression model due to over-dispersion of data. Can I use and publish the Durbin-watson statistics for this model in my thesis?. Since the internet says DW statistics checks for autocorrelation in the case of OLS regression, ... |
I'm building a neural network (CNN) model for a regression problem with time-series data. Both input and output are multi-variate zero-mean timeseries data with time-varying variance. Currently, I am normalizing manually using a scale and shift approach such that the input and output data is between [0, 1], since I kno... |
I'm trying to optimize efficiency of a system, I've trained and tested multiple ML models such as polynomial regression, RFR, XGBOOST and MLP.
my initial thought was to use bayesian optimization to maximize objective function (I tried using my linear regression model as objective function, idk if it was the right choic... |
In Introduction to Quantitative Genetics (Falconer) , one of the ways of estimating heritability of a trait is by using a full-sib/half-sib model. In a full-sib/half-sib model, a number of males are each mated to to or more females to produce offspring. Heritability is estimated by comparing the covariances and varianc... |
Can someone please help me with this exercise and explain clearly to me?
For me personally, when I look at this exercise, the matrix (2) stand out obviously, as it is a isotropic matrix so, it must be the dataset 2. The matrix (1) is a diagonal matrix, so it should be the dataset 3. For the dataset 1 should have a posi... |
I ran an experiment in which 104 people evaluated 12 ideas. I manipulated the source of the ideas to see if they influenced idea evaluation (internal vs. external). Each respondent evaluated all 12 ideas, and the 12 ideas appeared in the two conditions.
I also have a second continuous IV (identity).
Now I need to analy... |
Let us say that I have some timeseries data, which can be described by a markov state model. And the time series has been sampled every $\Delta t$ time units. The sampling rate ($1/\Delta t$) must control how much infromation we can extract from the timeseries. A slower sampling rate will essentially miss faster transt... |
I am not a statistician and have limited knowledge about the underlying mathematics behind models but I am curious about something I found. I have count data, something like this: out of 150 words in a text, 50 are nouns, 100 are verbs. In another later text I have 200 words: 170 are nouns, 30 are verbs, etc. (this is ... |
I was working on a project where I implemented a CNN model with hinge loss in Keras. The task is a multiclass classification where I try to classify sensor measurements into 6 classes. I'm aware that in Keras, for non binary classification usually the 'categorical_hinge" loss is utilized, but in my case both 'hinge an... |
Suppose a company sells various products at different prices. I would like to compute confidence intervals for the contribution of each product to overal sales, preferably in terms of currency (e.g., for each \$100 in sales, \$xx are from product A), or alternatively in terms of numbers sold (e.g., for each 100 units s... |
I'm wondering what is the correct way to calculate the eff_size() of a lmer model with an interaction term. I'm following this kind reply by Lenth and the documentation.
I can't actually provide the data in this case. But the rationale is a repeated-measures design in which all participants have 4 SCORE on two YEARS o... |
I'm following Agresti's book. Specifically, chapter 6 which deals with multinomial models. In that he shows how a nominal response can be modeled by a baseline category GLM, and shows it can be viewed as a vector/multi-variate GLM (6.1.1 and 6.1.2), by putting it EDM (exponential dispersion family) form.
He then moves ... |
I am trying to test whether the difference between my treatment and control group is significant, however the only way I can compare my results across my 6 independent experiments is through doing percentage of control. This makes all my untreated results 100. Please help
|
My attempt is to define a survival analysis model from a case-cohort study, where a subcohort is initially selected randomly. Later on, all cases from the entire cohort are added non-randomly to the subcohort. In my case, the goal is to estimate whether molecules measured in blood could serve as biomarkers for cardiova... |
Suppose we have overall $m$ time series, each with $n$ observations. We also have another time series with $n-k$ observations ($k>0$). Given the shortest series, I want to find from $m$ series those which have the closest data generating process (DGP). Motivation for this is to "recover" history for the shortest series... |
I am tackling a complex multivariate analysis project with a binary outcome variable. My dataset's unique challenge arises from structured missingness due to conditional logic responses, significantly complicating the preprocessing stage. I am reaching out for insights on the best practices to manage this situation, ke... |
Given the primal resource allocation:
$$
\min_{x} \text{ costs} = \sum_{i} c_i x_i
$$
$$
\sum_{i} x_i = D \\ (p)
$$
$$
x_i \leq \text{CAP}_i \quad \forall i \text{ (}\lambda_i\text{)} \\
$$
$$
x_i \geq 0 \quad \forall i \\
$$
Now the solution of the dual is also given:
$$
\max_{(p, \lambda_i)} \text{Value} = pD - \... |
What is the number of distinct bootstrap (re)samples, when a specific element cannot appear more than 3 times in the resample ( or k times in general) ?
when k=n then we got the general solution: ${2n-1\choose n}$
Probability of not choosing specific element more than three times is $(1-\frac{1}{n})^{n-3} $
Then multip... |
I apologize in advance if my question is incomprehensible, I am very new to this topic.
My data consists of 6 dependent variables (DV1-6) and 5 independent variables (IV1-5) of interest. For reasons that are not important here, I have to split the data in two groups, A and B. For each group, I conduct a multiple multiv... |
I am trying to perform chisquare tests on about 30 variables. I tried to write a for loop to no luck. The loop should also save the p-value of each test.
I have used this kind of setup before, in other instances, but I recognise that using a vector with the dataframe$variable names does not work on this occasion. I sus... |
I need to evaluate the moment functions of a zero mean gaussian process that constitutes the mathematical model of the seismic ground acceleration during an earthquake.
|
If I want to examine sex differences in three variables, lets say academic attainment, study motivation, and a variable that is categorical. How should can I fit these variables with OLS regression? Should I run one regression analysis for each dependent variable and have sex as predictor and maybe include other demogr... |
I am trying to estimate the treatment effect based on the above two model:
$$Y(Z)=\beta_0+\tau Z+\varepsilon.$$
$$Y(Z)=\tau Z+\varepsilon.$$
Based on result from my data, I found the intercept is not significant, and the estimate of $\tau$ differs significantly.
I understand, typically we need to include the intercept ... |
Given a known population proportion and an IID population, the number of successes given n trials should be:
$$
X \sim B(n, p)
$$
It seems intuitive that the probability of observing a certain proportion of successes should also be binomially distributed, since the proportion is just the random variable X divided by n.... |
I'm exploring methods to create a continuous-like P-value distribution from discrete P-values. For example, consider the process where a balanced coin is tossed four times per experiment to note the occurrence of heads. This procedure is repeated 1,000,000 times to create a null distribution.
Then, another 1,000,000 c... |
I've come across some equations on regression coefficients for multiple linear regression(Fig.1 and Fig.2) with 2 independent variables and was wondering how they were derived.
FIG.1
FIG.2
I'm aware of how to derive the regression coefficients using Matrix Notation, but this intrigued me(and seeing the derivation of ... |
I'm currently reading The Book of Why, and on pg 147-149 it talks about double blind RCT being very highly regarded in experiments, especially in the way it address confounders.
In theory, I can understand the confounders wash out in the limit of infinite trials. In practice, however, such as in the field of medicine, ... |
I am currently working on developing a segmentation model using retail data.
In this dataset, the columns represent different subcategories. The values in these columns indicate the prices of all the products belonging to each respective subcategory.
the data contains around 500 subcategories and I want to check how ma... |
For a paper I am writing, I am comparing influenza burden in two locations. For each location, I have the rate of symptomatic influenza infections per 100,000 population, as well as a 95% confidence interval for these rates. What is a good statistical test for seeing if they are significantly different? Can I just look... |
Considering the Ripley's K function as used in spatial point-process analysis, or the closely related L function, I am wondering what the limit of the function is as r approaches infinity. I am aware that the function is not well defined as r increases, but I am stuck on how to go about computing this limit, if it exis... |
How would you approach analysis of 6 groups representing a range of values, increasing in value against a continuous variable (number) ?
I am learning to use R right now. Would I have to use ANOVA?
Please let me know thank you
|
I have a collection of neurons from different parts of the brain. Call this the "test" set.
To these neurons I can associate a morphology measurement, which is an element of a metric space $X$, and an electrophysiology measurement, which is a vector in $\mathbb{R}^n$.
Given a neuron not in the test set, I would like to... |
So X and Y are my random variables and they are vectors representing observations of actual production over predicted production ratios of two different factories. I want to weigh every observation by the number of staff in each factory, corresponding to the observation. (each observation is a monthly entry). I want to... |
A question on approaching regression analysis when all Y - X correlation is low; almost all |correlation| < 0.1
To give an outline of data I have:
Y (Store sales by month); n>2000
Xi (Macro-economic data, Store type (binary variable for each type), Marketing score(eg. numeric data such as brand awareness); about 15-is... |
I am building a binary classifier. Once classified, the proportion of positive events will be calculated. The predicted proportion is required to be within 10% of the true proportion. In practice, this classifier will be applied to detect proportions in samples ranging from .1% to 100%. How would I determine the minimu... |
I have a simple data frame of approximately 1750 participants. But have taken the first 11 participants to form the example. From the all_groups variable, I have 4 different sized groups.
df <- data.frame(id = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11),
LIPA = c(1654.128, 2179.699, 2611.728, 1372.5936,
... |
I'm attempting to calculate the conditional probability density $f((1 + \epsilon) \cdot X | X)$, where $X$ follows a normal distribution with mean $\mu$ and variance $\sigma_1^2$, and $\epsilon$ follows a normal distribution with mean 0 and variance $\sigma_2^2$, How to calculate this Conditional Probability Density?
|
I am running a Wilcoxon Sign-Rank test with two lists. One contains 5 elements and the other contains 6. They were taken from the same place but under different conditions. I am trying to compute the test results, but I understand that I need each list to have the same number of elements. How should I address this issu... |
I'm analyzing a dataset on the Nurse Licensure Exam, comprising 3000 participants. (n)
These 3000 participants were randomly recruited from 13 Sites across the US. (group level variable)
About 40% of the subjects have multiple observations, while the remaining 60% have one observation each. (repeated measure)
My object... |
Assumptions.
$\theta_1\ne\theta_2\Rightarrow F_{\theta_1}\ne F_{\theta_2}$
The set $(x:f(x,\theta)>0)$ does not depend on $\theta$
For a.e. $x$, $f(x,\theta)$ is a differentiable function of $\theta$
Theorem.
Under these assumptions, for any $\delta>0$
$$P_{\theta_0}\left[\frac{\partial \log L_n}{\partial\theta}\text... |
I have imputed my questions to the numeric expression box, I have been told to put brackets around the (+) for every question and then use / to divide by the total questions however I get this error every time:
A minimum number of non-missing arguments following a function name contains a non-numeric character.
I just ... |
I know there has already been a lot of discussion about this topic, but I have reasons to believe it still remains unanswered and lacks several justifications.
Suppose we have an time series feature named $X_{i}$. Our goal is to include $X_{i}$ into our dataset, in order to train a Neural Network. We know that $X_{i}$ ... |
Good morning,
I'm trying to run my first SEM in RStudio through laavan, with the following model.
mod <- '
# measurement model
comprG =~ ALTRAPROF + ITAPROFIC
Uso =~ RELAZIONI + CASA + SOCIETA
Bambini =~ Articolazione + Denominazione
# regressions
comprG ~ SESEdu
Uso ~ SESEdu
comprG ~ Uso
Uso ~ comprG
AREA_VERBALE ~... |
I wonder what is the theoretical limit of a statistical inference problem. For example we have a model with many parameters, and we can sample many data points from the model. This can be viewed as a noisy channel: input is parameters, output is data points. Can we somehow(I don't know how) calculate the mutual informa... |
i would like to conduct forecast time series ARIMA model about the disease outbreak on eviews using temp and rainfall as exogenous variable. I am able to forecast all of them alone but not with the impact of temperature and rainfall . can anyone here guide me how to do it on EVIEWS
|
I am struggling with the exercise 10 on the prediction interval from the Wassermann's "All of Statistics" book.
In a) the aim is to show that
$$ P(-2 < N(0, 1+\frac{\sigma^2}{s^2}) < 2) \neq 0.95 \\ $$
So, I want to show that the following equality is false.
$$ P(-\frac{2}{1+\frac{\sigma^2}{s^2}} < N(0, 1) < \frac{2}{... |
I have a medium-sized dataset consisting of many features, some of which can contain missing values. I want to predict a variable using an algorithm that employs decision trees (specifically XGBoost, but that should not matter for my question).
My understanding is that the usual way that these algorithms deal with miss... |
I seek to understand how to employ the Region of Practical Equivalence (ROPE), so I conducted a basic Bayesian analysis of disease incidence rates on a public data set.
Is my rationale sound regarding the ROPE in my analysis?
I have reproduced my process below and would greatly appreciate any feedback. This post also a... |
I have a database of defect images on materials, like holes, cuts, and so on. There is not so much information inside the images, I am aware of it.
I am using a CNN, in particular a ResNet50. I know it is too large for the type of data, but I have to respect the specifications that have been given to me.
I need to opti... |
I have got the following Network and porbabilites
And I need to Calculate the probability $P(C=False)$
I triend using the formula for joint porability distributions
$P(X_1,…,X_n)= \prod_{i=1}^{n}P(X_i∣ parents (X_i))$
,and got $P(C=False)=P(C=False|A,B)$.
If I am not wrong, you can infer that $P(C=False|A,B) = 0.75$ f... |
By method comparison I mean we have a number of "individuals" and for each a quantity eg blood pressure is measured by 2 measuring devices. So we have a pair of measures for each person 1 from each device. We wants to know if the 2 devices "agree" ie give similar measures on each person maybe so we can replace an exist... |
My question is related to the following post:
Extracting the degrees of freedom of t distribution of a GAM
I have a dataset of y-values that I am fitting using the gam-function in mgcv. The distribution of y is shown below.
The tailed nature of the data has led me to use scaled t-distribution with a log-link function.... |
I have two linear models, one with a log-transformed response variable, one without. I am trying to decide which is the better model before refining with stepwise etc.
Model 1 - Non-transformed model: Higher Adjusted R-Squared (0.
Model 2 - Log-transformed response variable: Lower Adjusted R-Squared, better Q-Q plot ... |
I'm a post-doc at Karolinska Institute, and I'm working on developing a Fine-and-Gray competing risk model to predict endometrial cancer recurrence/progression with death as a competing event.
I have used a multiple fractional polynominal algorithm that simultaneously performs backwards elimination and selects fraction... |
I'm performing multiclass probability prediction using CatBoostClassifier on a dataset with ~4000 rows, 13 features, 4 target classes. Dataset has outliers, but it is balanced.
For this task I'm using CatBoostClassifier with objective=MultiClass, eval_metric='MultiClass', num_classes=4
Here are my steps in training and... |
I have a dependent variable that is a ratio of how many investments in a year were made in a certain industry. So e.g. the firm made 4 investments and two of those in the technology sector which would give me a ratio of 0.5. The more investments were made the more granular the ratio might be.
Since the variable can als... |
Suppose you are measuring how much money you spend each calendar week (Monday to Sunday) over the course of March 2024 and the results are as follows:
Date range
Money spent ($)
03/01 to 03/03
0
03/04 to 03/10
35
03/11 to 03/17
95
03/18 to 03/24
50
03/25 to 03/31
85
Our sorted data set would be {0, 35... |
I am looking a fourier transform of probability function (a.k.a characteristic function).
for this topic here and the induced distance
$$ \|f-g\|_\mathcal{H} = \int \frac{|\hat{(f-g)}(u)|^2}{\hat d(u)} \ du = \int \frac{|\int e^{ity}(f-g)(y)dy|^2}{\hat d(u)} \ du = \int \frac{|\hat f(u)-\hat g(u)|^2}{\hat d(u)} \ du$$... |
I'm following the tutorial Fast Fixed-Effects Estimation: Short Introduction of the R package fixest.
The very first example is:
library(fixest)
trade <- fixest::trade
gravity_pois <- fepois(
Euros ~ log(dist_km) | Origin + Destination + Product + Year,
trade
)
The estimated coefficient is -1.52787 with a standard... |
In my research, I am utilizing the Bayesian Model Averaging (BMA) methodology to identify the best set of regressors that can predict the outcome variable $y$. My dataset consists of five variables and forty-three observations. I am performing all the calculations in R using the BMA package.
I am in a peculiar situatio... |
I just make a CNN model and then draw a curve for RMSE. the result is according to below. why validation line don't reach to train and test line? but in R2 curve they all reach together! do my model has a good performance or not?
|
I have trained some data on a House Pricing dataset.
and I'm getting a not-so-bad R-2 score of nearly 0.5 as you can see below:
I wanted to ask how can I improve this R-2 Score and get more precise predictions near the actual prices. I have brought the yhat and actual prices below also:
Price yhat
0 ... |
I'm kind of new in fitting rcs for cont. variables as a clinican, so I have a few questions:
d <- datadist(df)
options(datadist = "d")
model1 <- cph(Surv(time, status) ~ rcs(lfi, 3), data = df, x = TRUE, y = TRUE, surv = TRUE)
ggplot(Predict(model1))
Is this code correct to visualize the association of lfi on surviv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.