instruction stringlengths 9 38.7k |
|---|
I'm doing a time series analysis and wanna identify structural breaks from a regression. Here are the data: https://raw.githubusercontent.com/ramyshaban01/dataframe/aa074811a322b5f5252fcb59c81b75bd6503d260/data.csv here what I have done:
library(strucchange)
formula <- as.formula(paste("Variation_pce_shifted ~ Variatio... |
I was reading a post about deriving PCA, So it considered an arbitrary row datum, $x_i$ and tried to maximize projection length for each row of data matrix, $X \in \mathbb{R}^{N\times D}$:
$$\sum_{i=1}^N(u_1.x_i)^2=\sum_{i=1}^N(u_1.x_i)(u_1.x_i)=u_1^\top \Biggr[ \sum_{i=1}^Nx_ix_i^\top \Biggr] u_1\stackrel{*}{=}u_1^\to... |
Consider a cube filled with random particles. Let's say the particles in cube are rotated around the z-axis through the center of the cube. Here, the rotation is proportional to the height of the cube, so no rotation at the bottom of the cube, and the rotation gradually increases with the height. In doing that we get t... |
I am looking for implementations of simple Marginal Maximum Likelihood Estimate based 2-PL IRT Item estimation in Python. Any relevant Python libraries that do this (similar to snowIRT module in Jamovi)? I have looked into py-irt and it seems to do a Variational Inference based estimate of the parameters. I wanted some... |
I have daily data on surgery cancellations for about six months and would like to examine the bivariate associations of several factors and surgery cancellations.
Each day there are variable number of total surgeries scheduled (canceled + completed) - median 20 (IQR: 18, 22.5; range 0 to 36).
date
total_surgeries
s... |
If $F_n$, $G$($G$ is non-degenerate) are distribution functions in $\mathbb{R}$, is the fact that $F_n \to G$ weakly($F_n(x) \to G(x)$ for all continuity point of $G$) equivalent to the condition that $F_n(x) \to G(x)$ for all $x$ that is continuity point of $G$ and $0<G(x)<1$?
Context is that one of the implicit claim... |
We would like to conduct an AB Test between 2 groups of people and the apps that people have to see which ones over or underindex.
Which is more appropriate odds ratio or 2 proportional z test and why?
However my concern with the odds ratio is that it would be alot harder to explain odds to a stakeholder than it would ... |
I have a computer model simulation of a real world machine that generates either blue or red colours as output (as an example). Suppose the expected proportion of blue is 0.2 and expected red is 0.8 in the real world (from the real world machine) and the computer model generated proportions are 0.3 blue and 0.7 red, my... |
I have used PCA on a group of individuals based on a specific feature of their genetic data. I now want to see if PC1 or PC2 correlates with their grouping based on geographic location (each individual falls into one of 12 groups based on their location). So basically, I want to ask do individuals in group 1 have signi... |
I am trying to understand clustered standard errors better.
I created a very simple example: there are 100 rows, first 30 are from group 0 and next 70 are from group 1. I want to compare estimating the coefficient for group 0 separately, vs estimating it from all the values. I am using following code:
import numpy as n... |
While studying about GMMs I generated the following dataset to experiment with.
import numpy as np
import pandas as pd
rows = []
for individual_id in range(40):
lag_y = 0
for time in range(10):
x1 = np.random.normal(0, 1, 1)[0]
eps = np.random.normal(0, 1, 1)[0]
individual_effect = indi... |
Uncertainty quantification in latent variable models is a topic I am interested in, but I am struggling to grasp the difference between what you can do with quantified parameter uncertainty and quantified uncertainty in the latent state. This is particularly ambiguous to me in applications involving time-series models ... |
I am following a lecture series on Markov Chains from MIT OCW over here. The lecture (and the notes) state that for birth death processes, the detailed balance equations hold.
$$\pi_{i}P_{ij} = \pi_{j}P_{ji}$$
Here, $\pi$ represents the stationary distribution at some node $i$ and $P$ represents the probability of goin... |
After reading numerous articles on sample size as it relates to a Pearson Correlation, I have not found any reference to what happens if I have a small sample (n=15) but still get a strong r (.830) that is significant at the 0.01 level (2-tailed). Does this output mean I can trust there is a reasonably strong correlati... |
I have binary dataset consisting of 15 zeros and 40 ones. To address potential bias in my data, I have calculated the probability of success from each cell by fitting a glm with binomial family as follows:
# Fit a generalized linear model (GLM) with binomial family
model <- glm(predation ~ treatment, data = data, famil... |
I am reading about ordinary least squares regression, and I came across this assumption called "strict exogeneity", defined such that $\mathbb{E}[\epsilon | X] = 0$ for error $\epsilon$ and regressor $X$. My question is what does it mean for this to equal 0? Isn't the conditional expectation of two random variables $\m... |
I have (I think) a simple question. I estimated rank-orderings on a variable from a sample of 225 people, and I'm interested to know whether they generally correlated with a "correct" rank-ordering.
So I've computed Kendall's tau for the pairing of each participant's rank order with this correct rank-ordering. The dist... |
I am studying the relationship between an experiment's predictors and its design matrix. For this particular question, I am curious how I can convert a design matrix developed for a Fixed Effect model into the two design matrices (Fixed + Random) of a Mixed Effect model.
The example experiment I made has 3 predictors:... |
I am working on the Cox survival analysis model with time-dependent covariate, which is a very very common model.
However, in most papers and R packages, I noticed they estimate the parameters of survival model by expanding the time-dependent data as long data (there are multiple rows (time intervals) for each subject)... |
I am interested in applications (to data) of non-parametric statistics, and my question concerned the Gaussian white noise model defined by,
$$
X_{t_1, \ldots, t_d}=f\left(t_1, \ldots, t_d\right) d t_1 \ldots d t_d+\theta d W_{t_1, \ldots, t_d}
$$
with $W$ a $d$-parameters Wiener field, $f$ a bounded function over $[0,... |
I'm curious if anyone is aware of a publication that addresses the following matter or could provide a mathematically or reasonable response to the following question:
In a pre-post study where participants are required to complete a questionnaire before and after an intervention, the data exhibits a paired nature. In ... |
I ran a simple linear mixed model using lmer on a dataset for participants who had been randomly assigned to one of two conditions and were measured at baseline, post-intervention, and at a follow-up on a continuous outcome.
The model took the form lmer(outcome ~ timepoint * condition + (1|cluster/ID), data = data)
The... |
I have run the ARIMAX model (1,1,1) and got this output.
Then I ran SARIMAX (1,1,1) Seasonal (1,1,52) model and got the next
As you see the blue line (Prediction) came closer to the black line (Real values).
How can I explain, in a fancy way, that adding the seasonality factor has filled the gap between the real val... |
I am wanting to build a classification model to classify events to be cat or not cat (for example). In my case, the cat or not cat would be failed state or not failed state.
However, in my application, the data that is fed into the model would be a set of measured parameters that would be measured over 14 days (tempera... |
I have a dataset with 4 columns of interest:
Event (1 or 0, binary)
Nymph (Y or N, categorical)
Date (Dates from 2023-04-03 to 2023-05-02)
Tag (categorical, individual IDs (77 distinct Tags)
I have fitted a GLM with no issues:
glm.wake <- glm(Event.binary ~ Nymph + Date, data = wake_df_overlap, family = binomial)
I wa... |
We are conducting a randomized control trial (RCT) comparing treatment vs. control from 4 sites (A-D). We have planned for 100 patients from each site. 100 envelopes of treatment assignment (intervention or control) were prepared for each of the sites using simple randomization lists (400 envelopes in total). However, ... |
Consider two random variables $V_1$ and $V_2$, where $V_1$ is continuous and $V_2$ is binary.
In a paper, I found that the following equality holds:
\begin{align*}
\mathbb{E}\left[V_1|V_2=1\right]=\mathbb{E}\left[\frac{V_2}{\mathbb{E}[V_2]}V_1\right]
\end{align*}
I remember that I have proved that this equality holds w... |
I have a psychological test that consist of a set of binary items. It has a noticeable ceiling effect in the sum scores (essentially, a majority of participants get most items correct).
I also see some literature using that same measure, standardising and aggregating the sum scores with those of other measures, making ... |
I'm trying to use RL to optimize a game that I'm currently playing.
Below is the chart depicting all the items(boxes) that have to be created at varying capacities to complete a level.
The number in arrows depict the inputs for the for the item. Time is the time taken in minutes for also depicted as cycle time. init_c... |
So I am faced with a problem for which I can't find a simple solution. I have attached an image of my basic explanation of the problem.
In the above image, we have two signals that have portions of high correlation and portions of low correlation. You can observe that the highly correlated points fall on this line wit... |
I am currently experiencing a suspected model collapse in a Variational Autoencoder (VAE) model I am working with. Below are details on the project setup and the issue at hand:
Project Goal: Exploring if a the same VAE architecture can independently handle two tasks - reconstruction and regression - using real-world pr... |
This paper by Bradley Efron (also available here) concerning Bayesian vs. frequentist interpretation of probability contains an example I don't quite understand.
It's on page two in the right column in paragraph two. It goes like this:
Consider 15 random numbers $x_{1}, \dots, x_{15}$ drawn from an
unknown probability... |
I want to perform feature selection on my data. I have too many features, about 50 - 60, for not so much samples.
Until today I was using the importance function of the xgboost package, but lately I was introduced to SHAP, and although it is more of an interpretation tool than anything, I was told it is a powerful and ... |
The statistical analysis used was PLS-SEM using WarpPLS.I have four variables, with 1 IV (W), 1 DV (Z), and 2 mediators (X and Y)
I was able to find that when run through W -> X -> Y -> Z the serial mediation was not significant.
I tried to see if different paths may be significant, so I analyzed 1.) W -> X -> Y and 2.... |
Imagine I'm trying to model traffic stops with a logistic regression.
race = relevel(as.factor(c(rep("white", 3000), rep("black", 3000))), ref = "white")
income = relevel(as.factor(c(rep("low", 1500),rep("high",1500), rep("low", 2000),rep("high",1000))),ref = "high")
stop = c(rbinom(1500,1,0.5),rbinom(1500,1,0.4),rbino... |
I evaluated the effectiveness of an intervention by using lme4 package:
lmer(Depression ~ time * group + (1|id))
resulting in a significant interaction (time * group).
Group: 1 = intervention, 2 = control (reference)
time: 1 = pre-intervention (reference), 2 = post-intervention
In a second step, I explored if a diagn... |
I've built a machine learning model on some training data to classify first names as male or female. The accuracy on the training data is x%. With the known accuracy, I then predict on a new dataset of n samples, and the model predicts that m names are male. How can I calculate the confidence interval for the number of... |
The Setup
I have a dataframe df3 which contains film information (Budget, Year, Runtime, IMDB (score)) and a personal rating (integer between 0 and 10 inclusive). I'm trying to teach myself data science and use it for various models. This is my attempt at using it for a simple logisitic regression model.
For my first s... |
I'm attempting to figure out how to do a chi-square based on gender in two different groups.
Overall, my data has two different groups that I'm dealing with, with a column for what drug the person is taking (drug_1 and drug_2), and another for their sex (M or F).
The main issue with using a normal Chi-square test that ... |
I have RDS data and identified participants recruited twice during the study. How should I handle these duplicates? If I delete the second recruitment, it will disrupt the network. Can I consider the second recruitment as a seed?
|
How can I explain the spike in my Poly model after using the polynomial 3rd degree?
My dataset consist of the X variables external facctores (x1,x2...xk) and Y which is a target variable. For a polynomial I am not using interactions. I am using only the degrees. So i have x1, x12, x12 and so on for all values which mig... |
I want to evaluate the impact of some risk and protective factors (predictor) on different health variables (outcome), and report descriptive measures of the health variables. I have missing data on both the predictor AND the outcome variables. I was wondering: 1)if I should impute both the predictor and the outcome va... |
I am trying to analyse genomic data. They are organized in the form of records.
A record looks like the following:
record # start end string
1 xxx xxx xxxxxx
2 xxx xxx xxxxxx
The records are arranged in a way that they are sorted based on the start column. I want to divide these records in... |
I have ran a teaching course for students. I carried out pre and post session MCQ quizzes to evidence effectiveness of the course, however the marks collected were anonymised (data collected via google forms).
So the participants doing the Pre Session MCQ are the same participants doing the Post Session MCQ- however du... |
My question is: What statistical model can I use to meet my objective and how can I specify it properly?
DV: MuscleMass
VIs: Age, sex, Intervention (control vs interventions (1 to 7)), and Time.
Background: I have access to individual data from 7 different studies. The first study has measurements of the variables of ... |
I am struggling with a decision on how to report an interaction analysis.
Let's say I have a dataset, in which I want to explore the contribution of two risk factors: Hypertension and Diabetes, on the risk of death. We all know both are associated with a significant risk of excess mortality, even after adjusting for ot... |
Let $F_0$ be some probability measure and $\alpha > 0$ be the concentration parameter. I can draw a random distribution from $F\sim \mathrm{DP}(\alpha, F_0)$ using the stick-breaking construction:
\begin{align*}
v_k &\sim \mathrm{Beta}(1, \alpha)\\
\phi_k &\sim F_0\\
\pi_k &= v_k \prod_{j < k} (1-v_j)\\
F &= \sum_{k=1}... |
I am looking at time-to-event data by a variable with multiple groups (8). When I plot the stratified KM, some curves cross, some are ok, and some diverge. Also, I'm interested in the 30-day event rate. But by definition, I dont start to count events until after 7 days (only if there is a death I count those, so I may ... |
I have some data that plots essentially like an exponential of something of the form y=100+x^0.000001, i.e., almost two asymptotes on x and y with a small bend at the origin in Q1 (i.e., L-shaped with a curve connecting the two lines that is < 5% of the line.) I would like to be able to estimate the inflection point (w... |
How can I determine whether to use proportional hazard (PH) or accelerate failure time (AFT) survival models in order to analyze my data?
Are there any established guidelines or common practices that researchers follow to make this decision?
I know that the PH model assumes that the impact of a covariate is to multiply... |
When learning about the Datasets of naturally occuring systems you encounter distributions, for example power law distributions in the domain of population sizes of cities.
In my understanding this usually reflects a simple functionality of the system you are sampling.(domain specific that means lots of cities form in ... |
I want to know how my ML model is performing by customer race/ethnicity. The issue is that we do not know our customer's race.
We, however, do know zipcode level demographic information. ie) A customer live in an area where X% of residents are A, Y% are B, etc ... What I want to know is if the model is more accurate fo... |
I'm confused about how to compare means given the following scenario. Suppose a company has stores in 2 countries, CA and US, which each get some number of Customers who either make a purchase (Buyers) or don't. I want determine if the difference in Buyers per Customer or Revenue per Customer between the two countries ... |
# Create a binomial random variable with 100 observations and a probability of success of 0.7
binom.data<-rbinom(100, 1, 0.7)
# Calculate the coefficiente of variation (CV(%)) of the binomial random variable
cv.binom.1<-sd(binom.data)/mean(binom.data)*100
cv.binom.1
#[1] 64.23212
Ok!! But, I find in some literature t... |
In a lognormal distribution, the mean is equal to $\exp(\mu + \frac{\sigma^2}{2})$.
I tried to separately calculate this using the definition $E[X] = \int{xf(x)dx}$, where I have 200 $x$ values evenly log-spaced; for reproducibility, here a few copy/paste ways to get such an array that captures the tails when $\mu=-0.5... |
I have a question regarding the output from a discrete-time survival model that I have previously asked questions about [here][1].
The code looks the following (see link further up for more info):
mod<-glm(Mating_time ~ Round + A*B,data=dat, family=binomial(link="cloglog"))
Anova(mod)
> Anova(mod)
Analysis of Devianc... |
What is/are the canonical reference(s) for HMMs with covariates?
I'm coding some up and I'd like to follow the standard notations, if they exist.
|
I have developed a probability of loan default logistic regression model and it rank orders the risk across the deciles well, however, it doesn't rank order losses (which occur much later) well. Is there a way I can use default as the primary objective function and losses as the secondary objective function?
|
As the title sums it up well, I own two series. I need to know if the two are significantly different. Both series have the same temporal granularity. In a quick search, I saw that I could use the Kolmogorov-Smirnoff (KS) test. But I also saw that it compares the distribution. Therefore, I was in doubt whether or not I... |
I have a population-level dataset of all people who testified on environmental legislation in a single year. I have data on all witness's ages, races, genders, and ethnicities. This dataset is not a sample of those who testified -- it is everyone!
I want to know if the demographic breakdown of those who testify is sign... |
I want to create a regression model with the following properties:
prediction should be close to target
target and prediction should have the same sign
small penalty if either target or prediction are close to 0
extra penalty if both are far from zero and have opposite sign
Consider the following loss function: $$\ma... |
I took a machine learning course using the book "Learning from Data: A Short Course" by Hsuan-Tien Lin, Malik Magdon-Ismail, and Yaser Abu-Mostafa (LFD)
You are given a set of examples $\{x_n\}$, a set of labels $\{y_n\}$, the linear regression model is the function $\widehat{y}(x) = w^Tx$ where $w$ is a set of learned... |
Tomorrow there will be a race in which six runners participate in the 100 m dash. I will be able to capture the speed of each runner at each meter, so for each runner there will be a time series with 100 measurements. My hypothesis is that the runners will be at their fastest at around meter 65 or so, and then they wil... |
The following paper details necessary assumptions in order to have a non-gaussian state-space model be identifiable (see A1-A5); 'A General Linear Non-Gaussian State-Space Model: Identifiability, Identification, and Applications'
Using Stan, I've attempted to implement a state-space model according to these five assump... |
I have been given weekly averages and weekly 2-minute peaks of flow to a process. I'd like to predict the 30-second peak.
To clarify: By “weekly averages”, I mean that once a week, I get the average value of the process over the past week. By “2-minute peaks”, I mean that every week, I am given the highest 2-minute ave... |
This question is related but I want to check if my idea is valid.
I have two peaks and I want to check if they are the same. They are the linecut of an image. The background noise in the image is not Gaussian. I previously tried to compare the difference but I don't think it is a promising route.
What I am considering ... |
When I use the EM algorithm to solve a Gaussian mixture model, we may encounter the computation of Gaussian densities in the E step. Specifically, we should have the posterior probability as
$$
\pi_{ik} = \pi_k f_{\mu_k, \Sigma_K}(X_i) \Big/ \sum\limits_{j=1}^K \pi_k f_{\mu_k, \Sigma_K}(X_i),
$$
where $f$ denotes the p... |
Consider the random variables
$a_i,i=0,1,\ldots,n$ be random variables which take values from $\{-1,1\}$ independently and randomly with equal probability. Let
\begin{align}
S &= a_1+\cdots+a_n , \\
A &= a_1-a_2+a_3+\cdots .
\end{align}
I want to compute the probability that $S. A<0$.
Here is my attempt:
Attempt
Let ... |
[Q] Working through ESL, looking at QR decomp for OLS. Lets say we want to add a few new features: we can iteratively add them by orthogonalising. If we only want to include a subset, how could you evaluate which features improve R2/MSE the most?
In ESL (here's a link) they describe "Regression by Successive Orthogonal... |
I am trying to perform Survival Analysis using Python lifelines library.
My goal is to predict how long will an employee stay in the company before he/she leaves.
My time column is 'time spent at company' and my event column is simply 'left', 0 or 1.
I am using WeibullAFTFitter and I generate survival curves for each i... |
I have a dataset with some phenotype measurements of a handful of birds (~ 150 individuals of ~10 species) and I would like to run a mixed effect model on this.
Intuitively I would have tried to add a phylogeny in my model, but...
Is it valid to perform a phylogenetic regression with such a small number of clades? Is t... |
it's hard to summarise the problem in a question so I'll explain it here.
I have a variable called "Plant Species" that is missing a lot of values because of the sampling method used. For one method there are all the values, for the other none. The plant species are associated to another variable "Plot is Native", beca... |
I am currently trying to spatially cluster data that is ordered on a grid. Each point has x and y coordinates as well as a measurement value. These features come from a time series where I analyze each timestamp individually.
So far I've used hierarchical clustering with great success, the clusters are nearly always wh... |
P.S. While I gave a brief background to make the question complete, informed readers can move to the questions 1 and 2 towards the end of this post, right after 'what are not clear to me are:'.
Fisher's discriminant analysis for two classes: Let's assume that we've data in $\mathbb{R}^d$ from $2$ classes with means $\m... |
I am building a classifier for 7 classes where my array shapes are as follows:
X_train data shape - (171812, 384)
y_train data shape - (171812,)
X_test data shape - (37715, 384)
y_test data shape - (37715,)
my model is like this:
# parameters
input_dim= 10000
max_length =384
output_dim =128 DENSE_DIM = 32
DENSE_... |
I am trying to come up with the right structure for my mixed effects model but struggle a bit to understand what I need to do. At the moment, I think I could use Generalizing Estimating Equations, with a nested covariance structure (ID within Group), where the formula would be equal to score ~ group, but I am not sure.... |
I performed a moderation analysis according to the point "moderation analysis" https://cran.r-project.org/web/packages/MatchIt/vignettes/estimating-effects.html
Now, I have found that my three subgroups that are evident in TG as well as CG apparently do not act as a moderator for my outcome as the pairwise comparison w... |
I have 8 sets of data. Each set, L, contains 3 samples, S.
L1-L4 were tested immediately, and L5-L8 were tested after 24 hours due to equipment shortages. Due to this and the nature of the test, output values of the delayed set of data are lower than the initial set.
Right now, I am dividing the sum of each sample (S1,... |
I'm new to Bayesian analysis. I'm trying to estimate species's abundance.
As I know, when using MCMC sampling, it is recommended to make more than three chains. However, the function I use can make only one chain; I used hSDM.Nmixture.iCAR() of hSDM package in R. So, I made three different models with three different s... |
It is known that sample quantiles from any distribution are Gaussian-distributed:
$\sqrt{n} (X_{[np]} - q_p) \sim \mathcal{N}(0, \frac{p(1-p)}{(F'(q_p))^2 })$
Here sample size is $n$, $X_{(np)}$ is the order statistic number $[np]$ (sorted ascending), $q_p$ is the real quantile of level $p$, $F$ is the distribution fun... |
I am running a regression model to identify the relationship between exposure to hate speech and the adoption of hate speech on a prominent forum, controlling for a host of other variables. Theoretically, I feel it makes sense for my measure of hate speech exposure to be lagged by t-1 time periods, to capture how expos... |
Consider the following loss function:
$$\mathcal L (y, \hat y) = |y| \left[\log (1 + |y - \hat y|^2) \mathbf 1 _{\{y\hat y \geq 0\}} + |y - \hat y|^2\mathbf 1 _{\{y\hat y < 0\}} \right ]$$
The idea is to penalize predictions if their sign is different from target for large targets, while keep overall loss small for sma... |
Given the data $y_t$, $t=1, \cdots ,N$; I would like to estimate the decay parameter $\lambda$ in Exponentially Weighted Moving Average (EWMA) model, such that
$y_{t+1} = \sum_{k=0}^K \lambda^k y_{t - k} + e_t $,
where $K<N$.
I am wondering, is there any common way and solver for this nonlinear least squares problem? I... |
I have a question about logistic regression.
I have 2 groups in my database defined by a variable named "ttt".
I want to compare one variable named "w36_oxy" between the 2 groups, with an adjustment with 2 variables "pre_ste" and "g_age".
I tried this but I am not sure it is the result I want :
summary(glm(as.factor(w3... |
I've been reading about the use of OOB Error Rate and its applications and use in Random Forest, for which some curiosity is how I could further use this value in the optimization of my own modelling process.
With this I was curious if it was possible to trace back the splits that are erroneous, thus misclassified. Thi... |
I'm studying the influence of fund size and board diversity on the voting behavior of pension funds (in terms of voting on shareholder resolutions at companies they invest in). My dependent variable, 'voting behavior', is categorical (for, against, abstained, divest, no investment). My independent variables are age div... |
I have clinical data and used optimal matching in the MatchIt package to match cases to controls on several variables. Matching was done in a 1:1 ratio, and balance was achieved.
I then did a Kaplan-Meier analysis with a log rank test in the R survival package. A reviewer has said I need "the log rank test should be ... |
Today, after learning about performing $PCA$ using $SVD$, I know $PCA$ will choose $K$ components that have the highest eigenvalues. I have a question which feature will correspond to which eigenvalue?
I mean, I have data matrix $\hat{\mathbf{X}}$ have list columns, each column name correspond with one column in $\hat... |
I am trying to understand when are Cox models still informative and useful even when the proportional hazards (HR) assumption is violated and came across this interesting answer. It includes a link to this nice paper:
Stensrud MJ, Hernán MA. Why Test for Proportional Hazards? JAMA.
2020;323(14):1401-2.
https://jamanet... |
Suppose I have two dependent variables X and Y which depend upon an independent value t. I would like to model corr(X,Y) ~ t so that I can detect if the correlation between X and Y changes over time. Specifically, I want the correlation to be conditioned on t and linearly (or more generally smoothly) varying with t, bu... |
Here's the code for these graphs
par(mfrow=c(1,3))
plot(lm.all.income.factors, which=1)
qqPlot(lm.all.income.factors$residuals, id=FALSE, main="QQ Plot")
plot(lm.all.income.factors$residuals, main="Residuals vs Order")
Also I'm not quite sure how to fix the QQ Plot: it looks like the data is skewed. Perhaps a non-lin... |
I'm new to statistics. I have data that measures the effects of two different drugs (A and B) on the size of rabbits. The data consists of triplets $(\textrm{dose}, \mathrm{size}, \mathrm{type})$. I'm trying to run simple linear regression so that I could seperately get the slope (regression coefficient) of the drug A ... |
I am comparing several age groups on one latent factor with SEM in lavaan. The model shows strict invariance and i want to compare the latent means of the different age groups. To do so, i also want to use the 84% CIs of the latent means of the different groups. As the mean of my reference group is 0, how am i supposed... |
I've created a classification model that predicts whether a design will succeed or fail. It returns the probability of success, rather than the actual classification label (e.g. 0.68 instead of 1). My supervisor has asked me to add a "Recommended action" panel, which tells the user whether their design has good chances... |
Should the kaplan meier curve of an training data match the kaplan meier curve from the output of a Weibull AFT model?
This question is referring to the linked question above. The accepted answer explained that there's a bias toward the median output so the Kaplan Meier curve from the output doesn't match with the trai... |
Let $(X, Y)$ be a randomly drawn sample of $n$ paired observations from a bivariate continuous population. It is clear that each pair is independent of the others, both pairwise and mutually. Let $R(X, Y)$ be the same data converted to ascending ranks without ties, e.g., the $i^{th}$ smallest value in $R(X)$ is replace... |
Let’s consider a convolutional layer, taking filters (matrices used in convolution), vectorizing them, putting them into matrix $A$ and computing it's rank. Does it makes sense to remove $|filters|-rank(A)$ filters from this layer (these that has $0$ or low singular value)?
|
Suppose we have a collection of bivariate random variables $X_{1i}$ and $X_{2i}$ indexed by a continuous variable $t$ such that, for the vector ${\bf{X}} = (X_{1i} \ X_{2i})^T$ we can assume
\begin{equation*}
{\bf{X}} \sim {\bf{N(\mu}}(t_{i}), {\bf{\Sigma}}(t_{i}))
\end{equation*}
for some unknown 2-dimensional vector ... |
Lets imagine we have a data set with N data points, where the cost to "process" a data point is pretty high. Because of this, the processed N data points come in one by one. From this "streaming" data we produce a confidence interval describing the data.
As the data streams in, a user will see a confidence interval cor... |
Problem
If I have to rearrange $n$ items (which some of them are identical), taking the order into account and only selecting the first $k$ items of every permutation, how many permutations do I have in total?
Example
Say, I have the $n=5$ items, $\{\text{orange}, \text{orange}, \text{red}, \text{blue}, \text{blue}\}$,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.