instruction
stringlengths
9
38.7k
I am fairly new to Bayesian Modeling, however I am experimenting with such framework in order to produce several estimates. The part I am struggling the most with is the selection of prior distributions for the model parameters. The choice of such distributions in everything that I have been reading about Bayesian Mode...
I ran a dynamic diff-in-diff , of the form $$ y_{it} = \gamma_{i} + \lambda_{t} + \delta T_{it} + \epsilon_{it} $$ y : log(lead concentration) , log concentration of lead in drinking water. $\gamma_{i}$ : denotes city and $\lambda_{t}$ denotes year fixed effects, $T_{it}$ is the treatment dummy variable, indexing t...
Suppose we have $X\sim \textrm{Poisson}(\lambda)$ and we know that moment generating function $M(t)=\mathbb{E}(e^{tX})$. How do we use the moment generating function property $M^k(0)=\mathbb{E}(X^k)$ to derive, let's say, $\mathbb{E}(X^4)$? It seems impossibly tedious for me to differentiate the moment generating funct...
In his book 'Asymptotic Statistics,' Aad van der Vaart when discussing the asymptotic distribution of the log-likelihood-ratio says: "The most important conclusion of this chapter is that, under the null hypothesis, the sequence Λ (the log likelihood ratio) is asymptotically chi squared-distributed. The main conditions...
It's not uncommon to read a scientific article in which the authors perform an ANOVA followed by post-hoc t-tests, but don't report the results of the ANOVA at all, and instead skip straight into the results of the post-hoc t-tests. Assuming all post-hocs are reported, is there any way that a reader could back-calculat...
I am working with small amount of data: https://github.com/jeffheaton/data/blob/master/bupa.csv I want to predict y data which is drinks, who have not-normal right skewed distribution. There is a distribution and kdeplot In almost every regression model this data have problems with fit. How to deal with data with this...
As a learning example, I am trying to see how adversely statistical analysis is impacted when the distribution of errors is incorrectly specified. Here are some specific situations I thought about: Continuous Random Variable: Suppose I observe $n$ points from a non-iid process such as a Random Walk, Brownian Motion or...
I have two models: Model 1: Only contains independent variable $x$, while $x$ is non-significant. Model 2: Contains $x$, $m$, and $x * m$, and $x * m$ is significant. How could I illustrate this result? Can I still say that $m$ has a moderating effect? If so, how can I determine the direction of $m$'s effect?
Let $X, Y \mathop{\sim}\limits^{iid} N(0,1)$. a) Suppose $X < Y$, find the joint pdf of $X$ and $Y$. b) What is the joint pdf of $X$ and $Y$ if $X = Y$? We know that $f_X(x) = \frac{1}{\sqrt{2\pi}}e^{-\frac{x^2}{2}}$ and $f_Y(y)= \frac{1}{\sqrt{2\pi}}e^{-\frac{y^2}{2}}.$ When there is no constraint, the joint pdf is ...
I don't know if I misunderstand the concept of shap value: so for all sample's target var(y), there is an expectation of them, or E(f(x)), which is set to as the horizontal line of shap, which is set to zero. In the specific var(one of X), for each specific var value(e.g. 5), there should be also an expectation of targ...
I’m in the process of developing a model that assigns a credibility score to fatigue reports within an organization. Employees can report feeling “tired” an unlimited number of times throughout the year, and the goal of my model is to assess the credibility of these reports. The model should consider several factors, i...
So in Mostly Harmless Econometrics, page 154, they analyse the bias of instrumental variables: They consider the case of one endogenous variable $x$, multiple instruments $Z$, and $\eta$ is the structural error and $\xi$ is the error of the first-stage. They arrive at this equation (equation 4.6.19 in the book): $$ \be...
I am reading the appendix section A.2 from this paper on the parametric g-formula and I am struggling to understand the "intervention density" when the intervention depends on the natural value of treatment. For brief background on notation, assume an observational dataset with treatment $A_k$, vector of covariates $L...
I have analyzed a cancer dataset that contains risk factors and an outcome. However, I am dealing with many observations lost to follow-up and missing values.   I want to obtain the c-statistic, but I was told that the c-statistic can be biased in the presence of censoring data and recommended me to use the Uno c-stati...
I have the goal of training a CNN model that can detect if clothing items has any defects (holes, stains etc.) on them. I am using Keras to accomplish this. I will use the model for image classification, there are five classes in total (clean, stain, hole, pethair, wrinkle). To tell about the problem I am facing; the i...
I'm currently studying regression coefficient w.r.t latent space in a paper Surprises in High-Dimensional Ridgeless Least Squares Interpolation by Trevor Hastie etc. This topic occurs in chapter 5.4 (page 16 ~). Let me write some parts of the chapters related to my question. $\dots$ To motivate this example, assume th...
I am very puzzled by the two 95%CI results generated from the same normal-distributed dataset from the Monte Carlo method with 10000 simulations. See below figure and statistics of the Monte Carlo result, simulated results are downloadable here. sd mean n 12325.37 7993.051 10000 Approach 1 95% Confidenc...
I have a dataset containing information on district wise monthly dengue incidence from 2010 to 2021. I have found that there is a sudden increase in the dengue incidence due to a new variant in 2019. I am trying to fit a model to identify the factors affecting dengue incidence, and I applied time series regression. The...
I tried to run a simple linear regression in R, and when I check for the linearity, my "Residuals vs Fitted" graph is like this: Are the points randomly scattered? Or this showing a pattern because it is all aligned together vertically? *The variables reli and ghq are suppose to be continuous, what I did, for example ...
I am working with python using pandas, and seaborn libraries. I have a dataframe, that I am using for some machine learning. My dataframe has a target variable, along with several other features. Suppose the following data dictionary Name Type Dtype f1 ordinal int f2 ordinal int f3 nominal categorical f4 ...
I constantly see metrics that measure the quality of a classifier's predictions, such as TPR, FPR, Precision, etc., being described as probabilities (see Wikipedia, for example). As far as I know, these are not probabilities but observations of a classifier's predictive behavior estimated during testing: for instance, ...
Let's say we do a classical ANOVA F-test to reject or not reject the hypothesis: H0: $µ_1 = µ_2 = ... = µ_k$ with $k$ classes, and $n$ observations per class Are there ranges of $k$, $n$ for which the F-test is not applicable or sub-obptimal? Example 1: $k=10$, $n=1$ impossible because only 1 observation per class! Exa...
Carrington et al (2023) make the claim that area under the receiver-operator characteristic curve is equal to the average sensitivity across all thresholds, and similarly for specificity (section 3), citing a book by Zhou, McClish, and Obuchowski (2002). Two other less commonly known interpretations of the AUC are tha...
I want to conduct a study to determine the incidence and prevalence of oral cancer in an area. I prefer door to door community based screening by Oral visual examination and refer suspected case for biopsy to confirm. I have adequate manpower and 12 months of time. Total population is 3169615. Target Population (over 1...
The Thai medical school entrance exam comprises three aptitude tests and other subject tests, each with their own weight. The table below shows how to calculate the total score. Students rely on past statistics to secure a position at top-tier schools. The table shows the lowest total score accepted and the mean total...
I may be overthinking this and going down too many rabbit holes of possibilities, but can someone please help me figure out the appropriate ("best") method to use for this research project?? It's for a randomized control trial with two groups (treatment and control, 60 in each so 120 total), and repeated measures. Note...
In the course of my research, I am examining the interplay between age, morningness-eveningness, and sex-specific trajectories. Initially, for a holistic overview, I generated a scatterplot featuring distinct lines for each gender. The x-axis delineates age, while the y-axis portrays morningness-eveningness scores base...
This is a follow-up on this question of mine. Wold's representation theorem states that every covariance-stationary time series $\{Y_t\}$ can be written as the sum of two time series, one deterministic and one stochastic: $$ Y_t = \mu_t + \sum_{j=0}^\infty b_j\varepsilon_{t-j} $$ where $\{\mu_t\}$ is the deterministic ...
I'll try to make this as brief as possible. I am working with binomial attendance data (0 = absent, 1 = present) for seabirds at a breeding colony. There are ~300 birds that contribute ~60 days of data for each breeding season, and there are 4 breeding seasons in total. Most birds are present more than once throughout ...
I have a problem in which I need to visualize the distribution of possible outcomes from a large number of independent Bernoulli events with varying probabilities among those events in python (summing n ≈ 1000 variables). My background in statistics is predominantly in sampling and multivariate regression. I feel a bit...
In "basic" causal graphs / DAGs / probabilistic graphical models (PGMs), conditional independence statements can be derived using the d-separation criterion. How does this work if selection nodes (modeling sample selection biases) are present in the graph? Purely empirically, I see that e.g. dagitty derives different c...
I am currently testing a binary logistic regression model (N=2000), examining the relationship between several independent variables (such as substance use -categorial-, gender-categorial-, self-control-likert-) and a binary/categorical dependent variable related to delinquency (no crime-at least one crime). However, I...
So I'm sure there's likely a simple answer here and I've just been thinking about this question for too long, but would appreciate your help nonetheless! I'm trying to calculate what the degrees of freedom would be for each of the individual predictors/coefficients in a multiple logistic regression model. When I run t...
In Efron and Hastie's Computer Age Statistical Inference, they consider the problem of deriving confidence intervals for an estimated Poisson parameter. $\hat{\theta}=10$, where $\hat{\theta}\sim Pois(\theta)$. One possibility to constructing the confidence interval is to use the standard interval: $\hat{C}_{std}=[\hat...
I am trying to calculate the cytokine variation explained by species composition within my data set based on figure 2D in the following paper (Schirmer, M., Smeekens, S.P., Vlamakis, H., Jaeger, M., Oosting, M., Franzosa, E.A., Ter Horst, R., Jansen, T., Jacobs, L., Bonder, M.J. and Kurilshikov, A., 2016. Linking the h...
I have a continuously running metric that may or may not correlate with discrete events. For my example, consider the blue line the continuously recorded metric and the orange line the discrete event. I'd like to see if some change in the continuous value that is recorded before the event leads to the discrete event. ...
I was studying Moving Average Processes, and wanted to ask why adding a bunch of weighted noise terms is not just a noise term. I understand the operations involving mean and variance in a mathematical pov, but I want to address this doubt more intuitively. Could someone help please?
I have a setting where I'm doing factor analysis in a context where I have lots of rows and where ~90% of data is missing (it's a survey of a couple hundred thousand people, each person was asked a random ten questions (two from every big five domain) out of ~200 items for length reasons). Estimating the factor model i...
I am running a latent basis model and wondering if anyone could provide insight on how to interpret the p-values of the basis coefficients. The basis coefficients are set to 0 at T1 and 1 at T9 and others are freely estimated in this model. The unstandardized coefficients are as follows. My question is, "How do I inte...
I have a thesis ongoing and I have a survey that needs for reliability testing. I was advised to do a Cronbach's alpha test. My survey consists of two parts: Part 1: All questions have varying number of multiple choices with "Others:__" as a choice. Part 2: Likert scale questions. All are to be answered with a 4-ratin...
Suppose \begin{equation} A_1 \sim \mathcal{W}(A_1; \Psi_1, v_1)\\ A_2 \sim \mathcal{W}(A_2; \Psi_2, v_2), \end{equation} where $\mathcal{W}$ is the Wishart distribution and $A_i$, and $\Psi_i$ are PSD matrices. Does \begin{equation} A_1 + A_2 \end{equation} have a closed-form distribution?
I have a mixed-method thesis ongoing and I plan collecting data on my own college (namely college X), specifically from students and faculty members on my department. Evidently, that would be stratified sampling. Specifically, it's the "proportionate stratified sampling". The study's aim is to determine the knowledge, ...
I have some data and a model formulation that I believe describes the data generating process. The model looks like this $$y_{i,t} = \beta_1x_{i,t} + \beta_2x_{i,t-1}+\alpha_t+\epsilon_{i,t}$$ where $\alpha_t$ is a random intercept associated with time $t$. Both $\alpha$ and $\epsilon$ follow a Laplace distribution. I ...
I am researching bladderwrack and whether they can adjust their amount of bladders (small inflated bags of air that develop on their skin) depending on how wave-exposed the surroundings are. Hence I've created a regression/correlation chart that regresses an individual plant's amount of bladders on the amount of wave e...
Suppose we have $X_{1}, X_{2}, ..., X_{n}$ sequence of $iid$ random variables with mean $\mu$ and standard deviation $\sigma$. By definition, the time series $x_{1}, x_{2}, ..., x_{n}$ is a stationary process with mean $\mu$ and standard deviation $\sigma$. If so, is it legit to compute a moving average series for the ...
I have a list of endoscopic findings from my study and want to check if there is any statistical difference between the counts between two groups of patients. The number of patients in groups A and B are 143 and 127 respectively. For example, the count for gastritis is 17 each. How do I go about calculating the p-value...
After conducting an exploratory factor analysis on a set of data, I have obtained 3 factors, whose items (can) make sense from a theoretical perspective — even though some negatively worded items grouped in an unexpected way. As a second step, after reversing the negatively worded items, I ran a reliability analysis fo...
I am working on gene expression data from humans and disease models, where I want to correlate important measures of disease severity, i.e. clinical measurements, with the gene expression. I am trying to extract the genes which most influence the different clinical measurements. In my specific dataset we detect more th...
I am very new to matlab, and only used it to do some fairly basic math to visualize a method. Here is an example of what I've done with a normal distribution: mu = 2; sigma = 4; x = linspace(-5, 5, 1000); pdf_values = normpdf(x, mu, sigma); % boundaries: p1 = 0.01; p2 = 0.99; b1 = norminv...
I know how to find standard error in single regression, but in multiple regression there is more than one standard error and I don't understand what to do. I searched constantly but I couldn't find it. For example, how can the standard error here be found separately for x,m and constant? I would be very happy if you co...
I obtained the following output from the function auto.arima(): Is this the correct way to write the equation? Or should it be like this?
I am having trouble fitting a Two-Part Mixed Effects Model for Semi-Continuous Data to my data using the GLMMadaptive package. My trail includes: 2 wines, 2 treatments, samples seven times over 100 days, stored a 2 different temperatures, with 3 replicates at each sampling event. The goal is to monitor the formation of...
I am working with complicated sets of time series, where an observed system output is the sum of a number of individual ARMA, error and noise series. I am therefore looking at ways to identify these individual series (or at least to speculate on the likely series from various characteristics of the aggregate autocovari...
I understand what a Smoothed scaled Schoenfeld residual plot is, and what it shows. Before I go into details with my question, I will provide an example. I use R to code. Here is a cox model: cox <- coxph(Surv(start, end, status) ~ 1 + genetics + strata(gender), robust=T, data = my_data) Then I check if the proportion...
The title says it all. For more info: I have a dependent and independent variable $y$ and $X$. I want to fit a square spline on the data given a single knot $k$. I can do that by fitting 2 separate square functions in the areas $X\le k$ and $X>k$ with the constraint that they have to have a common point at $X=k$ by fit...
I am trying to fine-tune a model with my dataset using Keras. However instead of using the default input shape (224 x 224 x 3) for almost all of the available models, I want to set the input shape as 900 x 1200 x 3 . Because my dataset consists of images ranging between 900x1200 pixels to even 3024 x 4032 pixels, all o...
I understand that the pdf function is not a probability, and the area under the curve must sum to one. I understand that the height of the pdf function is meaningless, and it is not a probability but a density of the probability. Can I say that the height of the pdf tells us which value of the random variable can occur...
Let us say we have 4 different sets of non-linear neural net classifier parameters that we can denote A,B,C,D. The weights are all randomly initialized at the beginning of training. Each classifier is trained on the exact same train-test split and after each run we collect some metrics on our test set. One of these met...
Im studying for a Advance Machine Learning Exam, and I came across this question: What is the relation (if any) between the Representer theorem and Bayes’ formula? Is one more general than the other? I know both of them, but I do not know if there is any direct relation between them. Someone could help?
According to the following - https://dylanspicker.com/courses/STAT437/content/041%20+%20044.%20Lecture%20Notes.pdf the PH and AFT models are equivalent for Weibull distribution. Does this implies the event-time should be distributed similarly? The following code seems to contradict it. What am I missing? n <- 100...
I am using the function mixed.model() from package GLMMadaptive for fitting a Gamma Generalised Linear Mixed Model,of the form where I take log$\mu_{i}$=$\beta^{t}x_{i}$ + $v_{i}$ that is a Gamma GLMM with random effects for each sample denoted by $v_{i}$ where $v_{i}$$\sim$N(0,$\sigma^{2}$),where $x_{i}$ is the vect...
I'm having good performance on leave-one-out validation (not leaving one out, leaving 2 out, one for each class) but when trying in my validation set, the performance is not that good, from 85% precision to 60%. Context: I read some of the answers made before but, I have some differents aboarding, I'm working on a data...
I am planning regression analyses and present this (hypothetical) scenario to communicate my query. I am interested in the effect of 2 different measures ('IQ' and 'SPQ') on dependent variable 'performance'. Variance inflation factor shows that there is no problematic collinearity, but the two variables are correlated ...
I have two questions and I'd really appreciate your advice on them. Firstly, I'm looking into the impact of sugar intake on the weight of both children and adults. However, there's an issue because height and group have a very high correlation, given that adults are typically taller than children. Initially, I formulat...
Let $r_{it}$ be the asset return at time $t$ of company $i$. Now consider this model: $$ r_{it} = \alpha_t + \delta r_{i,t-1} + \beta \, \text{Size} + \lambda T + \gamma_\text{TEC} + \varepsilon_{it} $$ where: $\alpha_t$ represents year fixed effects; $\text{Size}$ is the logarithm of the market capitalization of firm...
Bayesian optimization with Gaussian processes (GPs) is an effective minimization methodology when the evaluation of the function to minimize, say $f(a)$, is computationally expensive. Loosely speaking, the strategy requires a GP, chosen to emulate $f$ but much easier to compute. Let us assume that $f(a) = (g(a) - y)^...
Cross-posted from physics stackexchange Summary: Eigenvalues of a "non-normalized" covariance matrix of time-series measurements from a linear system have units of Action (energy * time). Can we interpret this to obtain meaningful statistical thresholds? Recently I've been doing some volunteer work on an open-source s...
Consider a situation where two independent agents (out of a set of many agents) look at the same problem and attempt to solve it with a yes/no response, obtaining $(Y_{i1},Y_{i2})$ for $i \in \{1,\ldots,N\}$. Each agent is highly trained, and they often come to the same conclusion. If we had a set of covariates of the ...
I have a model $\vec{y}=X\vec{\beta}+\vec{\varepsilon}$ with guassian independent errors $\vec{\varepsilon}\sim N(\vec{0},\sigma^2I_n)$. Let $n$ denote the number of rows of $X$ and $d$ denote the rank of $X$. I would like to test several hypotheses of the form: $\vec{\beta}\in T_1,\quad \vec{\beta}\in T_2, \quad \vec{...
Assume $P$ is a set of pairs $(x, y)$, where both $x$ and $y$ are in $\mathbb{R}^n$. Assume $P'$ is a subset of $P$. I want to train a neural network $N: \mathbb{R}^n \to \mathbb{R}^m$ such that, for any pair $(x, y)$ in $P'$, I get $N(x) = N(y)$. Let's call this constraint $C_1$. I also want to enforce some other cons...
In the transformer block between Input Embedding Matrix and Layer normalization, where the data is scaled to mean = 0, and std = 1. How does the NN learn weights and biases and applying them to the data?
I'm doing leave one out validation (I take a pair, that include each class) for my data set, the problem is binary clasify for spectres, using NN, on train i get 85% accuracy, even in the class with less samples, on test a 60% accuracy, but my doubt is how i should train my last model to predict the test set, in some c...
Given a multinomial distribution $$X \sim \mathcal{M}(n, p_1, \ldots , p_K)$$ If I know $p_1 \ldots p_n$ I can easily obtain the following probability by repeatedly sampling from a multinomial distribution $$P( X_1 \geq 1, \ldots X_K \geq 1) \geq 0.95.$$ But if I do not know their values but I know that $p_i \geq 0.01 ...
I would like to check if a coin flips randomly, based on observational data. The catch is, the coin can have two sides, but also three, four, up to nine. The number of sides differs in each observation (each toss). I can generate observations but it's relatively costly, so generally the sample size is small, like 20, 3...
I originally asked this on StackOverflow, but it's more of a stats question than a coding question. My question is about data formatting. I have this dataset (well, this is just the first two of several hundred rows): df <- structure(list(X.Case.ID. = 310:311, GENDER = c(1L, 1L), AGE = c(32L, 45L), EMPLOYMENT = c(1L,...
I have a Gaussian Process Regression model that models the cost of a certain process. Once trained, I want to find the point $x$ corresponding to which the regression predicts the lowest cost. Simply choosing the point with the lowest expected value $\mu(x)$ does not seem intuitive because if the lowest point has high ...
What is the value of $E[W\otimes W]$ for Wishart R.V. $W$? $\otimes$ refers to Kronecker product I found related formula for $E[WAW]$ on page 467 of Seber's Matrix handbook, wondering if $E[W\otimes W]$ can be extracted from it.
In statistics and psychological research, what is denoted by capital $N$ vs lowercase $n$? I work in psychological research and I've seen them used in two ways: Capital $N$ represents the entirety of our sample and lowercase $n$ are the groups in that sample. e.g. We run an RCT with $100$ participants, $50$ in control...
I was browsing the web and I saw this chart. I understand penalty rules but I really have no idea how to calculate the numbers in the chart, right on the first line. My idea is to consider each shot as a random variable following the Bernoulli distribution then the number of successes will be Binomial distribution. And...
Context I'm working on a project where I need to undestand the impact of customer journey touchpoints on satisfaction. My goal is to create an interpretable model rather than a purely predictive one, as I want to understand the importance of each touchpoint on satisfaction to make informed business decisions. Data My i...
In my line of work, I work with large data and often run stat tests to compare differences between groups. The problem I am facing is that if I use a $t$-test to measure any difference, the result will almost always be significant due to the large sample sizes. For example, I am looking to measure the effect size of a ...
I am currently working on a bootstrapping subsampling analysis, aiming to match a dyslexia group with a comparison group based on their reading achievement scores using PSAboot: Bootstrapping for Propensity Score Analysis in R. Here is my code snippet for the analysis: enter image description here Unfortunately, I've ...
I have a research paper that conducted a meta-regression using multiple predictor variables in metafor. They did a meta-regression for all combinations of variables and then used LOOCV to select the best model, based on the RMSE of the LOOCV. The publication is available open access here I have had a hard time understa...
I want to model time series in Python for air quality prediction. My dataset has two columns: date_time and aqi, and contains hourly measurements of AQI. Data is seasonal but not perfectly seasonal because aqi values are fluctuating. I want to create ARIMA or SARIMA models for predicting future values. SARIMA would be ...
I have a mixed-method thesis ongoing. I'm currently on the validation stage of my survey and interview questions. I have adopted a validation checklist from the internet composing of 15 items with a 4-point rating key (Strongly Agree as 4; Agree as 3; Disagree as 2; Strongly Disagree as 1). My thesis advisor told me to...
I need some clarification on where I can expect a closed-form solution. My research so far suggests the following: Logit model for binary dependent variables: no closed-form solution Probit model for binary dependent variables: no closed-form solution Source: Ben Lamberts video on the topic https://www.youtube.com/wa...
I am working on modelling in an epidemiological setting. I want to estimate the association between an exposure (air pollution) and two event outcomes. To achieve that, I am using a Cox PH model with time-varying exposure (I work with the survival package in R). I defined two main models: Linear: coxph(Surv(time1, tim...
I have a logistic regression predicting probability of a 'yes' response given 'condition' (A,B,C,D; dummy coded, with 'A' as the reference level). This will produce estimates for the following: Response ~ Condition Intercept Condition_B Condition_C Condition_D I believe that Condition_B, Condition_C, Condition_D are ...
EDIT according to Willems2016--------------- I have data of treated and untreated persons of which the covariate age (assume there is just one covariate) is balanced using propensity score matching (treat ~ age). Thus, assume the following data as an already propensity score matched sample: data <- data.frame( id = c...
I have created a multiple-linear regression model on some data. The different explanatory variables were all in different units, so it seemed appropriate to scale the data. I've fitted a model and the fit seems decent, however I'm not too sure what to do now. I want to talk about what the coefficients show and discuss ...
Type 1 error rates of the one-sample t-test (two-tailed) can be inflated for example for data from the exponential distribution. However, I am looking for distributions which yield inflated type 1 error rates but are at the same time symmetric (about their mean).
Let's say we have a multivariate normal distribution with two components. The two means $\mu_1$ and $\mu_2$ are both equal to 0 and the covariance matrix is a simple 2x2 square matrix with diag(1, 2, 2). I want to use this distribution to perform a sample size calculation, so I am trying to calculate the quantiles of i...
Consider a decision rule as an interval, $\delta(x) = [a_1,a_2], \ a_1 \leq a_2, \ a_1,a_2 \in \mathbb{R}$ and the loss function $$L(y,a) = L(y,[a_1,a_2]) = (a_2-a_1) + c(1-1_{y \in [a_1,a_2]}).$$ Object is to find the formal Bayes rule, where $p_{Y|X} $ is an unimodal distribution. The posterior risk is $$r(\delta |x)...
here I am doing scientific research. My background is informatic, so in that manner, I need some clarification and help. We developed a group of sensors that measure the drainage of the battery during operation time. This data are stored in time time-based database which we can query and extract for a specific period. ...
I want to test the difference in survival probabilities for if every observation in my dataset was part of the frailty group with the worst or best frailty value. I want to calculate the survival probability for the maximum 'time' in my data. (This is just a demonstrative thought experiment to show how the random effec...
Are there any goodness-of-fit tests for samples consisting of only one datum that is high-dimensional? Usually, G-o-F tests are run using samples with multiple datums, each having a single dimension. I suppose this problem could also be considered as having a single, high-dimensional datum, and testing the goodness-of-...
I am relatively new to Gaussian Processes and Bayesian Optimization. My question is very simple: Suppose I am trying to learn a function from a parametric family of curves which best describes the observed data. For eg. I could be trying to learn a polynomial function $f(x) = ax^2 + bx +c$ and assume the observation mo...
I am training to learn how to perform meta-analysis using R. I conducted a meta-analysis using the metaprop function in R with the provided dataset. The goal is to compute the pooled specificity using the code snippet below: Data <- structure( list( detection = c( "Fluorescence", "Fluorescence", ...
I am bewildered by multilevel mixed-models that have pseudo-repeats. I have difficulty understanding which variables should be considered REPEATED within a mixed-model context, and WHY. In a classical sense, where repeated measurements are literally repeated over time, it is straightforward. But in the case of pseudo-r...
I have a set of vegetation cover samples (see histogram) that I would like to fit a distribution to so that I can generate hypothetical data on which to run power analyses with different sample sizes and shifts in the distribution. There are many zero values in this data set, which are real, and we think the value at 6...