instruction stringlengths 9 38.7k |
|---|
Consider the continuous distribution with density function
$$
p(x) = \frac{1}{2}\cos(x) \;, \quad -\frac{\pi}{2} < x < \frac{\pi}{2}.
$$
I want to derive the cumulative distribution function for this density function. In other examples I've seen, this is usually done by taking the anti-derivate of the density function ... |
This question is a follow-up to this prior question on here from a week ago which was itself a follow-up to this prior question. Here is a link to the GitHub Repository for the project.
I am running N LASSO Regressions, one for each of N datasets I have in a file folder to serve as one of several Benchmark Variable Sel... |
I am working on an experiment which detects signals as a a function of time.
There can be a trigger, but no signal (0) or a trigger with a signal (1).
We are interested in how the ratio (likelihood of getting 1) changes over time. In order to study this we need to group the data.
If I group the data points in groups of... |
My Data: Respondents were asked to evaluate the quality of two products on a scale of 0-10. There were 12 criteria that constituted the grading scheme, and I would like to analyze the scores overall (as an average of the scores across all the criteria) and per criterion.
Each respondent assessed both products. There we... |
I'm using a linear mixed effects model to analyze the reaction time of learners of English as a Second Language (ESL). I have two factor variables: grammaticality (grammatical v.s. ungrammatical) and finiteness (finite v.s. nonfinite), as well as one numeric variable: proficiency.
I'd like to analyze how their proficie... |
I have preformed two-sided Kolmogorov-Smirnov test pair-wise across 6 datasets. It performs as expected (p-value <<< 0.05 in most cases, p-value=1 for identity), except for one pair where it assigns the p-value == 1 for two very distinct distributions as shown below:
The results of conducting the test are
KS test less... |
I'm doing a DOE style analysis on a small amount of data that is two-factor with two levels. I've followed steps I've learnt from the ASQ and got a graph and values for the effect of my two variables and the combination.
During a meeting with another company I saw that they had done a similar analysis, but had standard... |
Let's assume we are given an $n$-dimensional smooth curve $\gamma:[a,b] \rightarrow \mathbb{R}^n$ and $N$- sampled points $\{x_1,...,x_N\}$ of that curve.
Now we use linear interpolation (or a higher order method) to get the curve
$$l:[a,b] \rightarrow \mathbb{R}^n.$$
My question is the following: How can we estimate t... |
I am researching the effect of temperature on the water-resistant properties of paper by measuring contact angle and water absorption. How can I determine the best and worst temperatures using the values from the two parameters? Thank you.
|
Im currently hyper parameter tuning my model and returning the model with the least amount of error. Before I start the hyper parameter tuning process I ensure my validation and test data is is weighted correctly by removing columns they may occur the most. This is that code
#Get the weight
vali_weight = np.unique(y_va... |
When computing FFT of a finite-time discrete sample with a non-zero mean, I get two different results depending on the order of operations: whether I zero-pad and then subtract the mean or subtract the mean and zero-pad afterward. What is the right way to go?
As a by-question, I'd be grateful for any reference regardin... |
I have a dataset with multiple response variables (clinical measurements such as BP, HEIGHT, WEIGHT) and samples are paired because same measurements are taken before and after treatment. And duration of treatment divides the sample into 3 groups (3 months, 2 months and 1 month).
I want to extract meaningful informati... |
I am interested in calculating the distribution of a conditional expectation, I would like some help figuring out if I am on the right track.
Consider a variable $x\sim f(x)$ and a noisy signal $s$ of $x$ drawn from $g(s;x)$. Consider $E(x|s)$ computed using Bayes' rule. I am interested in the distribution of all possi... |
I am just now exploring the world of multilevel modeling and I am wondering how to contextualize MLM within the broader toolkit of causal inference techniques. In one of my graduate econometrics course, I was taught the fixed effects v. random effects dichotomy that Huntington-Klein helpfully breaks down and criticizes... |
I need your help with a problem that I noticed and I don't know the solution (I am not from statistics). In sum, I would like to create a measurement instrument that is adaptive in that respondents can self-select the interactions they had with a company and just answer their multidimensional experiences about these sp... |
I'm training my LR right now and using Brier Score and ROC AUC as my evaluation. In my x_train are binary variables, ordinal variables and numerical variables with a wide range (e.g. 20000 - 160000). After using this code:
scaler = StandardScaler()
x_train_standardized = scaler.fit_transform(x_train)
x_test_standardize... |
I have several short (n=12) time series on which I am trying to conduct Augmented Dickey-Fuller tests, but I am getting very different/unexpected results:
import numpy as np
from statsmodels.tsa.stattools import adfuller
import matplotlib.pyplot as plt
series1 = [0.41625778, 0.40488883, 0.43044564, 0.44369687, 0.46613... |
I’ve been curious about a synthetic control inspired design and wanted to get some feedback.
Vanilla synthetic control: Takes a treatment group and a control group then infers some optimal weighting of each control unit (0.25A + 0.75B) such that the treatment group and synthetic control group are negligibly different.
... |
I'm running SEM in lavaan, but my model seems not fitting correctly based on the chi-square value and it's p-val = 0.000.
When i look at other fit measurements, the model is close to fit well. Below is my model, can someone help me out to interoperate my results? Based on this information i have information to say that... |
I am interested in analyzing data from the World Values Survey; the WVS has different waves, however each wave has a single time point. Participants are not the same between waves but the survey questions overlap to a large degree.
I am primarily interested in analyzing relationships between individual questions (i.e.,... |
Suppose I wish to compute the energy contained in a given frequency range using FFT. So, first, I compute FFT and take the squares of the absolute values of $x_k$. Can I then use discrete integration over the frequency range of interest, or there are some more specific schemes?
Can I improve the result by using zero-pa... |
Several sources indicate to use Z = lnRR/((SE)(lnRR)) to determine the P value for testing measurements of Relative Risk. I have been unable to find the origin of this approach. Is this an appropriate technique?
|
I am running a binary LASSO logistic regression using glmnet. The initial data I work with is raster spatial data. When I create an ROC (AUC ~ 0.72) curve based on the test data, the resulting curve appears to curve early and has a very strange shape (shown below).
Does anyone know how I can interpret this curve and ap... |
Below is part of a report comparing two items, A and B. The goal is high readability. People with little statistical knowledge needs to be able to read this report and quickly understand key differences between the two datasets.
Statistically insignificant items were reported as "Same"
Statistically significant items ... |
I got age data (in years) of gas heatings from a random sample of about N=700 participants.
So participants were asked how old their gas heating is in years.
Now I like to model that age distribution (curve fitting) as well as the breakage rate within a given timeframe (e.g. within 1 year - so how many heatings may bre... |
I am trying to find a good summary statistic (next step is going to be inference) for my problem. I have observational data that is images for patients (factor1) with different conditions (factor2) that is coming from 3 locations (factor3). The images was measuring multiple skin marker areas.
Now the thing is not all p... |
I am confused about the rule of the slope in the simple linear regression model. I do understand that the slope indicate the rate of change in the response variable, Y, when the explanatory variable, X, is increase by one unit. For example,
Suppose I have the following simple linear regression equation, where Y is the ... |
I am estimating a simple difference-in-difference model with four countries, ES, FR, DE, and NL. In each country, there are 3 firms. Say I have four time periods, 1, 2, 3 and 4, where ES and FR are treated in period 3 and 4.
Now after creating and indicator variable for $\text{post} \times \text{treated}$, I can estima... |
Suppose we have a list L of all root words in English numbered from 1 to n. The data is any English text (let's say a text from a book) where each word is replaced by its root. You are given the data word by word.
Suppose we have a random variable $X$, which represents the number (in the list L) of a root word. When do... |
I am conducting a study on patients with small follicles in their ovaries, diagnosed by ultrasound. Different drugs are administered to these patients, and they also have varying hormonal levels. After the last dose of the drug, we count the number of grown follicles using ultrasound. We define the ratio of "grown foll... |
I have a list of individuals and their success rates on a task. The count of tasks for each varies widely, so the uncertainty in the estimates of their proficiency varies. Furthermore, typical estimates for confidence intervals will have a lot of overlap. Suppose something like this:
person
tasks completed
count of... |
I'm aware that it's best practice to do all pre-processing within train-test splits, including data imputation. At least, it's recommended not to use the test data to generate the imputation model for the training data. However, I'm struggling to find a demonstration (either a concrete example or something more abstrac... |
Is there a version of Shapley values that does not assume independence of features, and can be used to interpret importance of clusters of "similar" features (by adding individual feature importances for example)?
|
Below you will find the Figure of the path model that I wrote in Rstudio.
model2 <- '
#direct effect
INT ~ e*PN
PN ~ d*AR
AR ~ c*AC
AC ~ b*PB
PB ~ a*BV
#indirect effect
ed := e * d
edc := e * d * c
edcb := e * d * c * b
edcba := e * d * c * b * a
totalind:= ed + edc + edcb + edcba
total:= e + ed + edc + edcb + edcb... |
I am working on a subject called The determinants of NPLs in a country (NPL = non performing loans).
My data is a dynamic panel data of 15 years and i got my data yearly.
The dependent variable is npl ratio and i have 8 independent variables.
I have run tests on stata that i will mention below
The vif test showed no m... |
Can somebody help me interpreting this results for VECM? (VAR.select function chose 12 (or 1 and 2) as the appropriate number of lags, so I chose 11 lags)
How can I put below result in equation?
|
I want to find out whether two groups of people (with and without Autism) differ in their interpretation of ironic compliments and ironic criticisms.
To this end I did a study with (26?) persons without autism and (?) persons with autism. All participants first had to read 10 stories, with a remark at the end that cou... |
I am reading the paper Delving Deep into Rectifiers:
Surpassing Human-Level Performance on ImageNet Classification and I can't understand why (see p.4):
$E[x^2_l] = \frac{1}{2}Var[y_{l-1}]$
Let $w_{l-1}$ (weights of layer $l-1$) have a symmetric distribution around zero. Let $b_{l-1} = 0$ (the biases of layer $l-1$).... |
I am working with images collected over time from a fixed camera. Since the scene doesn't change for long periods, my effective sample size is much lower than the actual number of images I've collected.
I would like to compute the effective sample size (ESS) for my data as described here. However, since each of the dat... |
It looks for me that WAIC and Bayes Factor are very similar in some circumstances. If we assume an equal prior for each parameter set Q (p(Q)), the Bayes Factor integrates p(y|Q) over the Q space (y is the data), providing the probability of obtaining the data under the model - p(y).
The WAIC formula appears to have a ... |
Is there a way to do a multiple comparison test (similar to tukey HSD test) of coefficient estimates from a mle2 model in R?
Here is my specific application:
I have a large dataset containing observations of the woody plants used by browsing animals. The data set contains the species of each woody plant, the height of ... |
I have data where the objective is to use supervised learning to predict 4 different outcomes.
Say the classes are 1, 2, 3, 4. Though discrete, they are also hierarchical, where class 2 is of an extreme 'nature' than say class 1.
My question is how do I redefine the label column in such a way that it incorporates the h... |
I'd like to sample from the Bayesian Posterior of a Gaussian mixture model, but I am not sure about the correct Bayesian formulation of the latter. Is the following correct?
I consider the 1-dimensional setting and want to work with a $K$-component mixture.
I start with artificially generated data and want to learn the... |
I am looking for some advice for a research project I am working on. My project involves analysis of fish abundance data from rivers around NSW Australia, with an aim of assessing the impacts of dams on fish communities. I have thousands of observations in my dataset from a number of rivers, and each has electrofishing... |
I have a dataset consisting of 1000 in-vitro fertilization (IVF) cycles from a total of 700 patients. Each cycle has several variables, including;
the total number of follicles the patient had in that cycle,
the total number of oocytes retrieved from those follicles in that cycle (oocyte count cannot be larger than fo... |
I was reading a paper on kernel regression, and the paper defines a non-negative kernel as regular if there exist $b > 0$ and $r > 0$, such that:
(1) $K(x) \ge b I\{x \in S_{0,r}\}$
(2) $\int \sup\limits_{y \in x + S_{0, r}} K(y)dx < \infty$
(Here, $x$ is a $d$-dimensional vector)
I understand what all of the symbols o... |
Let's say I want to compare the life satisfaction of horse owners (approximately 5% of the sample) to dog owners, and I have n=10,000. In another context, I would say I have a very large sample size, which would probably impact my p-values, but because the subpopulation of interest is so small (only 500 subjects).
I wo... |
I would like to know more on the relation between non linearity and interaction effect. For example, if we have a linear model of the form
$$
y = \beta_0 + \beta_1x_1 + \beta_2x_2 + \epsilon
$$
we know that when we want to test for interaction between explanatory variable we could add a multiplicative term giving us th... |
So, I used different transformations on different variables, to create a normal distribution. I did the multiple linear regression with it. But now I am coming to the part in which I need to interpret the variables. I used Square root transformations and log transformations.
It is about the percentage of migrants in a ... |
I am trying to get Nakagawa's conditional R2 in R, for a two level model with two weight variables. The problem I am facing is however that only a limited amount of packages allows to estimate twolevel models with two weight variables. To my knowledge EdSurvey and WeMix allow for this. When I estimate models with these... |
I need to calculate the R^2 for a weighted least squares (WLS) regression model which is also a regression through the origin (RTO). I'd like to use it for comparing the quality of the fits for the dataset I got by using different weighting methods. I found the formula of computing R^2 in case of RTO in several public... |
I have a memory of taking some undergraduate statistics course, and the lecturer doing an example where he had a scheme for assigning weights to the problems of an exam based on the students performance. I think the larger related topic was something like variance stabilizing transformations, and the scheme ended up no... |
I am in the process of developing an R package for best subset selection, which approximates the best subset using an iterative adaptive ridge regression procedure (with the weighted least squares regression of the IRLS algorithm replaced by an adaptive ridge regression; I am also allowing for possible box constraints ... |
I am doing a logistic regression, with few adjustment variables
When i add the interaction term between a numeric variable (age) and a binary one, the estimates and the OR are high.
I know that adding an interaction between two categorical variables, this can happen if one of the categories is not represented for examp... |
I have a dataset of points in space, sampled at a specified time. Now i want to obtain a 'spatial correlation plot, only between points close in time'.
What i did is creating a dataframe of pairs of observations that are within a specified time-gap (for example 6 months). The columns of my dataframe are the following
-... |
Mathematically it is well understood that irreversible samplers are superior to reversible samplers in a number of ways. For example, if we want to sample from a distribution $\pi \propto e^{-U}$ by building a Markov Chain from the Langevin dynamics :
$$dX_t=-\nabla U(X_t)dt+\sqrt{2}dW_t,$$
(for which $\pi$ is reversib... |
I have two time series that give me a monthly count. One is a reference series that is meant to be used as a control; the other has a 'treatment' or program applied to it mid-way through. Both are expected to trend upward broadly.
I have been asked to identify if the treatment/program is having a statistically signif... |
TLDR:
I am trying to simulate a hierarchical network using DFS as a way to sparsify the network. This works to link nodes using edges within the DFS but interactions between nodes are lost. Aside for switching out DFS for something like backbone analysis are there fields of research/papers that address similar issues t... |
I have a question about an extended cox regression model. I have reviewed several materials, such as "D.G. Kleinbaum and M.Klein, Survival Analysis: A Self-Learning Text, Third Edition" but am still concerned I am not using this model correctly. However, I am setting up the data, one row per observation/time interval, ... |
"A novel treatment is being developed and to measure its efficacy, the proportion $P_1$ of treated subjects who benefit from a certain Positive Outcome will be compared against the proportion $P_2$ of untreated subjects who do.
The statistical hypothesis is:
$$\begin{align}
H_0: P_1 = P_2 \newline
H_a: P_1 > P_2
\end{a... |
I want to make a statement about model prediction qualities, comparing several models based on MAE and MSE. Considering the following results:
Is it valid to say considering models 1 and 2:
Model 1 outperforms two showing an improvement in MAE of 24% ((0.0792-0.1042)/0.1042).
Model 1 has significantly fewer large err... |
I have data of $N$ different event $E_n$ occurring at times $t_{n,i}$. So any event $E_n$ could have occurred any number of times.
Normally the system operates in operating mode A. Sometimes the system operates in operating mode B. I have recorded during which times this operating mode was valid. I.e. some of the occur... |
I have read about CZLSSVM (Clustered Z-score Least Square Support Vector Method) being better than kNN for missing value imputation but could not find projects on this method. Do you guys have something related to CZLSSVM?
|
I am interested in examining the relationship between yearly income and student success, taking into account the hierarchical structure of the data. The data includes schools as random effects, with classrooms nested within schools, and there may be correlations among observations within the same school and classroom.
... |
The control chart usually requires that the observed values meet the conditions of independent and same distribution, but the sample data is a time series with autocorrelation. How should the data be processed to eliminate the autocorrelation
|
I am trying to understand gls and I have two questions:
(1) How are the standard errors of the coefficients calculated?
(2) what role REML plays in gls?
|
Suppose I have jointly normal random vectors $[\bf{v_1}, \ldots, \bf{v_K}]$' with mean $ \bf{M}$ and joint block tridiagonal precision matrix $ \bf{P}$:
$$ \bf{M}= \begin{bmatrix}\bf{\mu_1} \\\ldots \\ \bf{\mu_K}
\end{bmatrix} $$
$$ \bf{P}= \begin{bmatrix}\bf{P}_{11} & \bf{P}_{12} & \bf{0} & \bf{0}\\ \bf{P}_{21} &... |
Missing values need to be imputed when performing logistic regression. Missing values are often imputed by the median. The mean is the BLUE (best linear unbiased estimator). But Median is robust to outliers and is not impacted by winsorization.
What are good statistical arguments to stick to median imputing over mean i... |
I want to implement Gaussian Process regression in the context of active learning, in which interpolation is performed with the best interpolating points, selected at each step iteratively. At every step, the subsequent sample to query is selected in such a way as to maximize an acquisition function, i.e., Expected Imp... |
I am conducting a systematic review and would like to report the mean of a value that is consistently reported in the studies I've included.
However, some studies report the value as a range (e.g., "the range of values is from X to Y") and others report a mean (e.g., "the mean of the value is X").
How would I report th... |
This is my first time asking a question here, so apologies if I failed to include all necessary information. I have run GLMM's in the past but have limited experience with assessing interaction terms.
I have run the model below using GLMMadaptive that includes 'temperature:absolute_humidity' as a fixed interaction term... |
Here is the code example with variable names guiding the process:
const yTrue = tf.tensor2d([[0, 1], [3, 4]]);
const yPred = tf.tensor2d([[0, 1], [-3, -4]]);
const mse = tf.metrics.meanSquaredError(yTrue, yPred);
mse.print(); // [0, 50]
The whole point of the code is to show the result, which is [0, 50] and try to und... |
I try to calculate the expected value of a Pareto distribution.
Suppose that we have a Pareto distribution for $x \ge \theta$:
$$f(x;k;\theta)= \frac{k\theta^k}{x^{k+1}} $$
We can calculate $ E[X]$ with the following
$$ E[X] = \int_{\theta}^{\infty} \frac{k\theta^k}{x^k} dx = \frac{k\theta}{k-1} $$
provided $k>1$.
Now,... |
I have a dataset with multiple variables (~20) that I could use in order to diagnose an illness. In my datset, I know if the individuals are sick or not.
I intend to create a model using classification trees. Before that, I want to select the best variables for this diagnosis.
I have tried 2 methods :
Visualisation of... |
In his 1969 paper, Grubbs mentioned that "Until such time as criteria not sensitive to the normality assumption are developed, the experimenter is cautioned against interpreting probabilities too literally when normality of the data is not assured".
Say I have n data points and I want to test for outliers using the Gru... |
I'm trying to setup a Bayesian GLM with Truncated Normal, $\mathcal{N}_+(\mu, \sigma, 0)$ truncated at $0$.
I want to specify $\mathbf{E} (y\mid x) = ax + b$ but it looks like $\mathbf{E} (y\mid x)$ does not have a nice formula in terms of the parameters.
My questions are:
Is it possible to use $\mathcal{N}_+(\mu, \si... |
I am a beginner in Machine Learning and I want to compare prediction results of multiple regression models (such as Ridge, Lasso, ANN...) using Nested Cross-Validation on a time series dataset. I have searched and reviewed several online articles and come up with the following procedure (or algorithm I’d better say). T... |
I am trying to conduct an analysis that looks at the co-occurrence of multiple species with a focal species. Observations of my focal species have a 60m buffer. I am counting co-occurrence as an intersection with the buffer (with appropriate temporal filtering applied to avoid overrepresenting co-occurrence). I have be... |
I've been trying to learn about Variational Autoencoders and been looking at the Keras sample implementation (https://github.com/keras-team/keras-io/blob/master/examples/generative/vae.py)
I'm confused about how to calculate KL-Divergence. Currently, they calculate the KL-Loss as follows:
def train_step(self, data):
... |
Can I sub-sample categories before running Fisher's exact test?
I have a 50 x 22 data matrix (50 categories and 22 samples), where some sample values are < 5, so I can't run a Chi Squared test. I can run a Fisher's Exact test by simulating p values using Monte Carlo simulations on the 50 categories. I was wondering if ... |
I've been trying my luck with my data, consisting in 2 vectors of 3 levels each. I got a 3x3 contingency table, and the details of the code (in R) I've used are in this question https://stackoverflow.com/questions/76417224/why-is-r-not-performing-yates-correction.
The thing is, some values of my data are really low, li... |
Suppose I am generating random 4-digit numbers. Obviously there are 10,000 possible numbers, but the chances are I will get a duplicate long before I generate that many.
Can anyone explain how I would work out how many numbers I would be able to generate and still be (say) 90% sure that there weren't any duplicates?
To... |
Consider a predictor $X$ that predicts a non-linear response $y$. A natural cubic spline with $K$ knots can be fit to $y$.
Several different linear basis expansions in $X$ can be used to fit the natural cubic spline, such as the following $K$ basis functions—from Hastie, Tibshirani & Friedman (2017):
\begin{align}
h_1(... |
This may seen like a dumb question for someone familiar on how to structure survey sample sizes, but I have a hard time finding the literature to back this up.
I have a survey that cover's 3 countries, US, UK and Canada, which has the following flow:
Out of a list of 100+ items, person is showed a sample of 20 to be s... |
Suppose I have an experiment designed where I'm interested in observing the effect of daily walking on self-reported joint pain in elderly adults. The population of interest are elderly adults who reportedly do not partake in daily walking who have noticeable, self-reported joint pain. I've randomized, started, collect... |
I want to sum the means of various measures within a treatment group, and found previous posts helpfully describing how to calculate the Standard error of estimated sum or product mean. My question is, can I estimate a number of observations (N) for these derived statistics?
As an example, let's say I measured 5 amino ... |
We have given a sample $X_1,...,X_n$ which is distributed with respect to $f(x;\theta)=e^{\theta-x} \Bbb{1}_{\theta\leq x<\infty}$. We want to use the statistic $T:=\min\{X_1,...,X_n\}$ to find a confidence interval for $\theta$ at level $1-\alpha$.
I first computed the distribution of $T$ and got that $$F_T(t;\theta... |
I am running permutations of the Weather Research and Forecasting model and want to determine the statistical significance of various parameters versus a control run with none of these options set. There are 12 permutation members, of which an ensemble of three WRF runs have been performed for each using varying initia... |
Currently, I am trying to evaluate the AB testing of my movie recommender systems and I want to see which option is better in terms of watch_duration (duration of the user watching a movie).
However, I am struggling with creating my model. At first, I wanted to create a fixed effects models but I do not have data on e... |
I have a very small data set (n = 12) of high level athletes each with a set of measurements representing technique (5 variables) and a set of measurements representing strength (3 variables), and I want to explore possible interactions between strength and technique variables in relation to a performance outcome (depe... |
I am confused with the following:
I found the next examples in a website https://stats.oarc.ucla.edu/r/dae/zero-truncated-negative-binomial/
library(foreign)
dat <- read.dta("https://stats.idre.ucla.edu/stat/data/ztp.dta")
dat <- within(dat, {
hmo <- factor(hmo)
died <- factor(died)
})
summary(dat)
library(VGAM)
... |
Scenario: I have an ordered/indexed sample that supposedly comes from a binomial distribution with fixed probability of success p. (By ordered/indexed I mean that not only I care about the percentage of success out of the total n trials, but I care about the distribution of such successes or when they happen— so having... |
In a regression analysis, how should I interpret the results if the main effect (exposed vs. unexposed) is null but a dose-response relationship exists? And vice versa if the main effect exists but there's a lack of a dose-response relationship?
Thank you!
|
I've generated some data (example below) and I'm not sure how to go about analyzing it.
N
#0
#1
#2
#3
#4
#5
#6
#7
#8
#9
...
...
...
...
...
...
...
...
...
...
...
65
C
A
A
A
C
B
B
B
C
C
90
C
A
A
A
C
B
B
C
B
C
78
A
C
A
A
C
B
B
C
B
C
...
...
...
...
...
...
...
...
...
...
...
The data is generated b... |
I am imputing missing values in a longitudinal dataset using the Amelia package in R. Does it matter if I have the data in long format (with id, time, and value in each row) or in wide format (with id, valuet1,valuet2,valuet3 in each row) when I impute?
The two seem to produce different results. When I have the data in... |
I have some incomplete data for loss ratios (=loss/revenue) for 5 years. Let's call it X. Suppose these are the given values for X:
2012 - 73%;
2013 - 67%;
2014 - 78%;
2015 - 81%;
2016 - 75%;
I was also provided with a best estimate of the mean of the data of 83% (Note: This is not just the average of the above figures... |
I would like to know the meaning or signification of the parameter $\beta$ in this Bayesian model. I have a Poisson model :
$ s_{i} \mid \lambda_{i} \sim Poisson(\lambda_{i}t_{i})$
Where
$\lambda_i\mid\beta\sim\mathcal{G}a(\lambda_i\mid 1.8,\beta)$
and
$\beta\sim\mathcal{G}a(\beta\mid 0.01,1)$
I have as data the next t... |
my dataset can be found here:
https://raw.githubusercontent.com/yuliaUU/test/main/test.csv
library(gamlss)
library(tidyverse)
data_final<- read_csv("test.csv")
# Normal model with log transformation
model_1 <- gamlss(log(Abundance) ~ salinity*avrg_dep, data = data_final, family = NO())
# log normal model
model_2 <-... |
for this formulas PE(pos,2i)=sin(pos/(10000^(2i/modelDimension))) and PE(pos,2i+1)=cos(pos/(10000^(2i/modelDimension)))
we know PE for position i follows: [sin(i/denominator[0]),cos(i/denominator[0]), sin(i/denominator[1]),cos(i/denominator[1]), sin(i/denominator[2]),cos(i/denominator[2]),...]. note each element here i... |
Very often in regression models, the assumption of homoscedascity is violated. I am wondering how is it possible that no one as of yet (as far as I could find in the literature) developed a parameterized heteroscedastic normal distribution?
So far, to assess heteroscedascity, researchers calculate the residuals of the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.