instruction
stringlengths
9
38.7k
I am a recent enthusiast into linear modelling and working on a function in R that implements common calculations from lm in R, to better understand how it works. Essentially, with $\hat{\beta} = (X^TX)^{-1}X^Ty$ we know that $$(X^TX)^{-1}=\begin{pmatrix}\frac{\sum_{x_i^2}}{nS_{xx}}&-\frac{\bar{x}}{S_{xx}} \\ -\frac{\b...
I'm working with time-series data on a handful (about 12) of individuals. Under normal conditions, the variable of interest for each individual is correlated among the group, i.e. if y is high for one individual, it's high for all individuals and vice versa (However, not necessarily 1:1). There are other variables x=(...
Say that I have two non-normal samples distributions each with n>=1000, for example exponential distributions. I believe that the typical solution is to use a likelihood ratio test. But I’m curious about the validity of the below procedure: Sample n=25 from each exponential distribution Compute the mean of each sample...
There are a lot of similar questions here but I have not found an answer to this specific question. Source: for example in https://peopleanalytics-regression-book.org/linear-reg-ols.html#norm-dist-assum the author (a mathematician) says: In an appropriate model we expect our errors to be random, so we would therefore ...
I have data from a prospective study with two measurements per participant (baseline and follow-up). I am interested in whether a cut-off (binary) obtained at baseline predicts disease development at follow-up, taking interval between baseline and follow-up into account (time interval differs for each participant). Bec...
I was looking at the St. Petersburg paradox and wanted to make a quick simulation to see the results. I made a quick program simulating 1 Billion "games" and the average of the gain (over several runs) was around 30/40. Quite low. My guess would be that the theoretical "Infinite" gain that could be made out of this gam...
I am analysing thousands of scientific pictures which all show a similar light pattern, trying to identify local anomalies on the pictures. As it is nearly impossible to inspect each single image due to their vast number, I wrote a code that predicts the location of anomalies on the pictures. For this purpose, I divide...
I'm calculating the frobenius norm on the differences between two matrices (so that I can minimize the result to reduce error). However, one of my initial matrices, and thus the difference matrix, contains missing data, which prevents me from calculating the frobenius norm. I can't find the accepted convention when thi...
I have problems with concurvity in my thesis research, and don't have access to a statistician who works with time series, GAMs or R. I'd be very grateful for any (partial) answer, however short. I'll gladly return the favour where I can! For really helpful input I'd be more than happy to offer co-authorship on publica...
I have fitted two models, one with a series of parameters $\theta_i = 0$, and one with those parameters $\theta_i \in \mathbb{R}$, with Cauchy priors. I want to compare whether the addition of the extra parameters improves the model in a statistically significant way, so I perform a likelihood ratio test. Can I use the...
This is a question I have always struggled with - suppose you have medical data on patients over a period of time. This includes information on how long they spent in different states: Admission, Discharge and Death You have data for patients between the years 2010 and 2020. Suppose you have data for patients that ent...
Using a panel data from 2005-2020, I am trying to measure (1) if auditors charge more fees to the clients following a data breach and (2) if the level of response varys over time. I came up with the following model, but I am not sure using the interaction variable (Breach $\times$ Year Dummy) is the right choice. $$ Y ...
I'm interested in evaluating the relative importance of different habitat variables on presence/absence of a particular species in habitat patches. I was limited to surveying 20ish sites on account of logistical considerations, which precludes using logistic regression (already tried it and Firth logistic regression). ...
I am working on building a regression model to predict housing sales price using house features (Ames housing dataset). And I prepared feature set in two ways: Case 1. I performed Box-Cox transformation on all the numerical features and performed one-hot encoding on the categorical features. Case 2. I used the numeric...
I'm trying out a PSM match, and I'm not sure what to do with this result. After the match, the standard mean diff drops for the overall distance and for the tsale varible. But looking at it graphically, the tsale seems to do a lot worse: Love plot: Plot for individual covariates:
I know the title was probably a tad confusing, but I'll do my best to explain the problem: So I have 37 "marbles" with varying probabilities of appearing (0.05% to 15.00%). I need to acquire a random order of each marble being drawn, but each marble must be drawn (there will be 2,000 total, therefore the rarest marble ...
I have a conceptual model with 3 regular independent variables and one dependent variable. Next to those three independent variables, I have another moderator variable possible affecting the relationship of two out of three regular independent virables. This makes it actually four independent variables. I am currently ...
I have a dataset with images of different sizes and I would like to maintain all the information of the images. I would like to test graph neural networks for doing that. Is it possible to apply GNN with graphs with different numbers of nodes for image classification? Every GNN can be applied for this? If this is not t...
Is that the same if I have one patient with one Markov chain of length 100, and 50 patients with 50 Markov chains of length 2? If they are the same, why? Thanks
I have a dataset of 10 features which are in the small range between 0.5 and 1 exactly, while the target variable is between 75 and 9000 with a standard deviation of 350, now I need to use a Neural Network to perform regression on the data but I'm struggling with finding a suitable architecture to solve the issue I'm f...
I am trying to study the difference in a biomarker (ANG7) levels pre and post bariatric surgery (a weight-loss surgery). I am using paired Wilcoxon signed-rank test for this analysis. The test shows there is a significant reduction in ANG7 after the surgery. But the ANG7 is also associated with BMI, so I want to contro...
I have these two time series, the Adfuller test says there non stationary. I don't know how should I go about making them stationary without resorting to modelling techniques?
I ran a bootstrapping post-hoc test in R software, but it gives no information about the name of the post-hoc test (like Tukey, Bonferroni, etc.)? Here is the documentation for the function: https://www.rdocumentation.org/packages/WRS2/versions/1.1-3/topics/t1waybt
This question is specifically in reference to how statistics apply to Catan. For background, two fair dice are rolled and rolling a 7 is a bad event. Given that the average number of turns for a game of catan is 80 and that means CLT can be applied, does it make sense to expect a 7 more and more as time goes on? There'...
I am reading the foundational paper about Bayesian bootstrap particle filter (Gordon, Salmond, Smith, 1993) and they are solving the following discrete time estimation problem: $x_k\in R^n$ , $$f_k:\mathbb{R}^n\times\mathbb{R}^m \rightarrow\mathbb{R}^n$$ is the transition function $$x_{k+1}=f_k(x_k,w_k)\,, \quad\text{w...
I have several "workers"/"executors"/"agents" that process some "tasks" over time. The data about processed tasks can be presented in a table like this: Task # Processed by Time started Time completed 1 X 12:00 12:10 2 X 12:15 12:30 3 Y 12:20 12:35 4 Z 12:25 12:40 5 z 12:30 12:40 6 Y 12:35 12:40 7 Y...
I am tackling a regression problem. I have used XGBoost as my model and implemented feature_importances_, which by default scores the importance of a feature using Gini importance. I have also done some feature selection to reduce the number of features and see how it affects the RMSE score. This is done using SelectKB...
I have data where participants were assessed at two timepoints ; baseline and follow up. At baseline, participants were categorised based on presence of a marker (yes = 1, no = 0). At follow-up, participants underwent examination whether they developed a certain disease. Time periods between baseline and follow up diff...
Der community I have a question about the appropriate handling of the imputation of missing data to get an unbiased estimate of prediction accuracy during model building and assessment. While statistical modelling has a wealth of theoretical and practical information about missing data, there is less available for pred...
I have a question that I have been wondering about for a while now and have not been able to find any reasonable answers regarding it. How does one interpret Random Forests and feature importance when the results vary each run? Example: Let's say that a person wants to use random forest regression on their clinical dat...
How do people decide on the ranges for hyperparameters to tune? For example, I am tuning an xgboost model, I've been following a guide on kaggle to set the ranges of each hyperparameter to then do a bayesian optimisation gridsearch. E.g. this guide lists the typical values for max_depth of xgboost as 3-10 - how is thi...
Large neural networks have low bias and high variance. Training on large datasets greatly reduces the variance allowing them to fit complicated functions. My question is why they seem to have much lower bias than other machine learning models, regardless of how flexible you make the other models. * It's purported that ...
Assume we have two models for the same task. One with 1K parameters and one with 1M and they achieve accuracy as follows Model Params Accuracy small 1 000 0.8 big 1 000 000 0.9 I would like to compare them is terms of price/time necessary to achieve given accuracy. Is there some kind of an established met...
I would like to analyze a dataset that looks like the following: library(data.table) dataset <- fread(" x1 x2 y A A1 0 A A2 1 A A3 1 B B1 0 B B2 1 B B3 0 ") and the properties A1, A2, A3 are only relative to A, as well B1, B2, B3 to B and not have any column x1=A and x2=B1 for example. And I woul...
I have read a similar question here: 1 neuron BCE loss VS 2 neurons CE loss that suggests there is no difference between softmax cross entropy loss and binary cross entropy loss, when choosing between two categories, since we can use complementary probability of a bernoulli distribution q = 1-p. In practice, there is a...
Say I have a simple hierarchical model, where: $y_{g,i} = \beta_g x_{g,i} + e_{g,i}$ where $g$ represents the group, $i$ represents the individual within the group, and $e$ is the error. So the variable $x$ has different effects for the different groups. I want to approach this in a Bayesian way, so I make the followin...
I'd like to use sampling weights in a Cox proportional hazards regression model to address selection due to different response probabilities. I'm calculating the weights as Inverse Probability of Selection Weights (Ch 8). They are not time-dependent. I'm trying to understand the difference between the procedure used by...
As a project I've built a graphical neural network sandbox software, which has the feature of drawing a loss graph to show how well the network is learning during training. I'm receiving these really odd results shown below though, and I can't figure it out. The loss decreases over time telling me it is learning, howe...
Given two sets of time series observations $A$ and $B$, what test could I apply to demonstrate that the series are generated via a random process of the form $A:\{X_t\}$ and $B:\{X_t+k\}$ for some constant $k$?
I'm interested in evaluating the effect of various factors on the lifespan of borrower-lender relationships using a Cox Time-Varying Proportional Hazards regression. However, as the relationships we observe are defined by the existence of a loan filing which covers a 5-year span (the loan can be terminated early, exten...
My goal is to use ML-Agents (Unity's implementation of PyTorch) for the turnbased game of Splendor. While I have a found a few tutorials on how to use it for physical observations and interactions, none are really talking about it how to use them as roundbased AI and thus input/ output. I'm really new to the machine le...
I am currently in the process of writing a publication about the home range of cat shark species in South Africa. However, I am currently struggling with how to create an interaction model of shark species, maturity level and sex, and their effect on the average travel distance within the study region. I was hoping to ...
I've read multiple responses here that the recommended range of observations per each IV is 20. However, I'd like to ask for clarification on whether this number (20) includes dummy variables. Let's say I have a dataset that includes a categorical feature Pet Type with 3 options Dog, Cat, and Parrot. Pet Type D...
I have built SEM model in R using Lavaan. My aim is to report on the indirect effect. The data I am using is confidential, so I will not be able to share it or provide a reproducible example. Since I am focused on the interpretation of the results, I don't think a reproducible example will be necessary. I will also pro...
If $X_1,...,X_n$ are independent normally distributed random variables with means $\mu_i$ and variances $\sigma_{i}^2$ and, \begin{align} M_1^2 &=\left(\dfrac{1}{n}\sum\limits_{i=1}^n X_i\right)^2 = \bar{X}^2\\ M_2 &=\dfrac{1}{n}\sum\limits_{i=1}^n X_i^2 \end{align} then under what conditions \begin{align} \mathbb{E}\l...
I am trying to determine the best way to measure differences in the size of two different intersections of four sets. In other words, if I have the following four sets of genes: Set A: under positive selection only in species with trait X ________ gene 1 gene 2 gene 3 gene 6 gene 7 gene 8 Set B: under intensified se...
My question stems from this example and my basic understanding of neural networks so far. Forgive my ignorance if I am totally off. So in this example, a neural network with 2 neurons cannot find a representation for this data that fully separates the two. A third neuron must be added after which the problem can easil...
I'm trying to arrive at a time series of optimized parameter values $Z_t$ that maximizes the likelihood of occurrence of a specific time series $Y_t$. There is a subsample within the sample that requires greater accuracy. So, I have 7 samples within a time series $Y_i (Y_1,Y_2,...,Y_7) $, all of which follow a binomial...
The Wikipedia says "If the data are normally distributed with standard deviation $\sigma$ then the expected value of $\overline {MR}$ is $d_{{2}}\sigma =2\sigma /{\sqrt \pi }$." https://en.wikipedia.org/wiki/Shewhart_individuals_control_chart Are the control limits based on moving range robust to violation of the nor...
I have the following snippet model=Sequential() model.add(Dense(1000,input_dim=4,activation='relu')) model.add(Dense(500,activation='relu')) model.add(Dense(300,activation='relu')) model.add(Dropout(0.2)) model.add(Dense(3,activation='softmax')) model.compile(loss='categorical_crossentropy',optimizer='adam',metrics=['a...
I am experimenting with various domain similarity measures across a number of language-based domains, based on their relative term frequency, but I've managed to confuse myself when it comes to creating these distributions as it's something I'm unfamiliar with. Specifically, I am trying to reproduce an experiment where...
I am performing a 5x2 cv paired t-test. I have read most of the paper "Evaluating the Replicability of Significance Tests for Comparing Learning Algorithms" by Remco R. Bouckaert and Eibe Frank up to the 5x2 cv test. In that test they only mention the metrics $p_A$ and $p_B$ as "error estimates" and now I am wondering ...
Here is the architecture of VGG16: The first 18 convolution layers can be understood as feature extraction. How about the two fully connect hidden layers after them? What is their purpose?
I want to implement a multiperiod logit model, so I have panel data. What method should I use for feature selection?
I am doing an anlysis for Greenium in Bonds. I am matching comparable bonds with same maturities,etc. Now i have a datasets with matched bonds(total of 20) with their yields. Since my dependant variable are the yields and independant a categorical variable(green or not) I am unsure how excactly i can do a regression fo...
I am new to the field of machine learning and am just learning linear regression, and I have some questions about this concept: Does linear regression allow vector-valued target variables? Does linear regression not assume that the features are uncorrelated?
I have a model with the following parameters: Groups: factor - 4 levels (base level = control group) Time: numerical Label = factor - 3 levels (base level = control group) price = numerical (5 different values; from a Likert scale) The problem is that the base level of variable 'Groups' is perfectly collinear with th...
I have a continuous function f(x) that is bounded on the interval (0, N), where N is a large positive integer (~10,000,000). The function is shaped like an upwards-facing parabola, however, it is slightly skewed (so not exactly parabolic). I am able to calculate values of f(x), however it is quite computationally expen...
Here are two captures from different videos on youtube, one obtains $Var(\hat{\beta_1})$, the other obtains $Var(\hat{\beta_1}|X)$ but they yields the same equations when the second capture further comments that $Var(\hat{\beta_1}|X)\neq Var(\hat{\beta_1})$ capture1 vedio capture2 vedio
I am trying to determine if it is possible to conduct iterative proportional fitting with some constraints. To give a dummy example of my goal: Say I had data for two towns, A and B, on the ice cream purchasing habits of boys and girls: Town Sex Chocolate cone Vanilla cone No ice cream A Male 20 30 10 A Femal...
I ran a full match for a PSM, with the balanced output summarized below: Call: matchit(formula = buyout_flag ~ tsale + sfincs_avg + logprox + tenure + age + percent_ethwhite_origin + percent_poverty_origin + percent_hs_origin + percent_owner_origin + house_medval_origin + percap_origin, data = hcad_flo...
My friend is a teacher at a University. In her course there is only 26 students, 13 of them fails, so she got deflation grade for this class. She believes that 26 students are not a good sample size to evaluate the her performance. However, I think 26 is good sample to evaluate the teacher performance. My question is d...
I am getting very different results for a negative binomial model between R and SAS. Can you please suggest as to why is this happening? I am not able to add a csv file used as the data. R script: NB_Total<- glm.nb(Total_Crashes~Ln_AADT + offset(Ln_LaneMiles), weight = LANEMILES, data=SPF_data_test)   summary(NB_Total...
In their textbook "Analysis of Longitudinal data" Diggle et al. state (p. 137 in the second edition) that: In log-linear models for counted data, random effects and marginal parameters can be equivalent in important special cases. Consider the random effects model $$ \log E(Y_{i, j} | U_i) = x'_{i, j}\beta^* + d'_{i, ...
In a famouse paper by Olivier Blanchard ("Debt, Deficits, and Finite Horizons" The Journal of Political Economy, Vol. 93, No. 2. (Apr., 1985), pp. 223-247.) he claims the following: "If the probability of death is constant, the expected remaining life for an agent of any given age is given by $ \int_0^\infty t p e^{-pt...
I was reading a paper about ratings (Hollis & Westbury, 2018), precisely, best worst scaling, where in each trial out of N items (in this case N = 4) the best and the worst item have to be selected by participants (on a predefined dimension e.g. the most and least appealing). I was wondering, how they made use of confi...
I have a forecasts for a specific variable and historical actual and forecast values for the same variable. Let's say that my forecast for the next time period is X, what method can I use to calculate the probability that the actual value will fall within a range of 10% of X given historic performance?
Given $X_1, X_2,..., X_n $ i.i.d. random variables. $E[X_i] = \mu_1 \in \mathbb{R} $ $\&$ $ V[X_i] = \sigma_1^2 \in \mathbb{R}^+$ $\forall i \in \{1,2,3,...,n\}$. The statistics $\bar{X} = \frac{X_1 + X_2 + ... + X_n}{n}$ converges in distribution to $Z_1 \sim N(\mu_1, \frac{\sigma_1^2}{n}$) according to the Central L...
I am creating a CNN-LSTM model to forecast sequential simulation data. At the moment I am not sure what the best place is to use Dropout in a CNN-LSTM architecture. Is it between the CNN and LSTM layer or after the LSTM layer? At this site they mention that dropout is less effective at CNN layers: dropout is generally...
I have recently been reading Faraway "Linear Models with R" and I am particularly interested in the section for computing and plotting confidence intervals. On page 45, he provides the following plot: From the following data: require(faraway) lmod <- lm(Species ~ Area + Elevation + Nearest + Scruz + Adjacent, gala) H...
I am currently doing a research and have this hypothesis for a variable: HA: "Variable A has a significant positive influence on Variable B" However, the result was actually negative and statistically significant at 1%. So just want to confirm whether I can safely say that the result is actually significant but the sig...
currently, I am using a sklearn GPR with Matern kernel. My input looks like X=[x0...x5]. And some the 6 dimensions will range from 0 to 4000 while some others range from 0 to 2. The code runs well, but I am not sure whether I need to scale all dimensions to same range. I have not found clear evidence to support or not....
I have a research problem to solve. For regular exponential distribution, $$F(z|\lambda)=\begin{cases}0\;\;\;\;\text{if }z<0\\1-e^{-\lambda z}\;\;\;\;\text{ if }z\geq 0\end{cases}$$ with density $$f(z|\lambda)=\begin{cases}0\;\;\;\;\text{ if }z<0\\\lambda e^{-\lambda z}\;\;\;\;\text{if }z\geq 0\end{cases}$$ Now we intr...
I am trying to learn a neural network $NN_\pi$ to minimize the loss function $$ L_{\pi} = || Y_{true} - F(X_{true}, NN_{\pi}(X_{true}) ) ||^2 $$ where $F$ is a black box (I/O) function (we only have access to the output given an input to $F$, but we have no way to compute the gradient of $F$), and $X_{true},Y_{true...
While I am studying Kalman filter, I saw the following equation P(A, B, C) = P(A, B)P(C|A) Is this right? if right, I am wondering why this equation holds. Thank you :)
I am running a random-effects multivariate meta-analysis with the package metafor. I have binary data with one treatment and one control group. I am interested in the overall effect of the treatment. I did not want to average the effect sizes, but use all effect sizes I have, as of by now I just include 15 effect sizes...
In Advanced probability class we were building up to proofs of the central limit theorem. We started by stating the theorem of the Classic CLT, then we introduced the independent triangular array and proved what we called the Lindeberg CLT for these arrays. Then we used this more general CLT to prove the Lyapunov CLT a...
Context: Two properties that may influence the pull strength of a wire bond in a semiconductor manufacturing process are the wire length and the die height. A scatterplot matrix of the pull strengths, wire lengths and die heights is given below: A multiple linear regression model fit to these data is summarised in the...
In a work about a follow-up of lung cancer patients, it is stated that the median survival is -let's say- 12 months. It means that 12 months after the diagnosis there is a survival of 50% of the patients, following the definition of this parameter. However, in the same work the overall 5-year survival rate is said to b...
Abstract question : In a regression problem, what methods are there to embed a varying-length time series into a fixed-length vector summarizing the data without hand-crafting the features ? Is there a principled way to achieve this given the regression problem to solve? This is not a problem of forecasting a time seri...
For my graduation research, I am trying to create a composite score about household resilience out of data collected through a household survey. However, this data consists of ordinal variables (5-point Likert scale), binary variables (yes-no questions), and ratio variables (in proportions between 0-1). My plan was to ...
How do you do exactly a sample size calculation for a normal distributed population with known standard deviation, to have a chance of type 2 error of at most 5%. . Zero hypothesis is: $$ \mu_0 = 20, \sigma = 1$$ Actual mean of the population is known by the researcher: $$ \mu = 19.5 $$ With the same standard deviation...
Is it safe to say that Y does not change with X because if you take the mean of Y and calculate the standard deviation all of the values fall with 1 standard deviation ?
Deep double descent is an empirically observed phenomenon that happens with contemporary neural networks. Its essence is that often, increasing the model complexity first leads to the test loss decreasing at first, then increasing, and then it starts decreasing again and becomes better and better. According to Understa...
I am given the averages and standard deviations of two sets of data. The average is computed by running a non-specific optimization algorithm 30 times and averaging the result. I am trying to determine if my data is "equal" to the data given in a research paper with 95% confidence. Which statistical test would be most ...
I'm struggling with the derivation of the likelihood with mixed continuous and discrete variables. Let us take this simple example: \begin{align*} X &= \begin{cases} 0 & \text{with probability } 1-p\\ 1 & \text{with probability } p \end{cases}, \\ Y &\sim \mathcal{N}(\mu, \sigma) \\ Z &= \begin{cases} ...
could anyone help me with my problem - I’m a beginner. When doing multiple regression and checking for multicollinearity, I have found 2 VIF’s of 17, however, I’ve done some reading and few say it is okay to do multiple regression. Also, my Durbin-Watson is 1.927 which is alright. Please let me know your thoughts, Than...
Within the ordinal regression formula I included the interaction term "factor(cityname)*suburb" with cityname taking either Edmonton, Halifax, Toronto, or Vancouver and suburb either 0 or 1 (1 if person lives in suburb). I get output, and I am a bit unsure how to interpret this. The last column is the odds ratio / exp...
I am working on a model that uses a dependent variable (Damage ratio) that is a ratio composed of two other variables (Flood damage / market value). One of those variables follows lognormal distribution (Flood damage), the other one follows a normal distribution (Market value). Together, the ratio also follows a lognor...
I use R and the lme4 package to fit a linear mixed model that includes a random intercept as well as an interaction term: y ~ (1 | s) + a + b + c + a:b. Only the variable s is categorial. To obtain standardized regression coefficients for the fixed effects, I refit the model with standardized data obtained via R's scal...
I am using the mgcv package to fit a GAM model to my data set to determine whether the trajectories along two (or more) different processes are different. More specifically I fit the following two models: null = gam(y ~ s(time, bs='cr', k=6), family = "nb", knots = knotList, weights = weights, method="ML") alt = gam(y...
When $X_1, X_2, \ldots, X_n$ are random variables jointly following a Gaussian distribution, let $A$ be the inverse of the covariance matrix ($A=\Sigma^{-1}$). I am wondering how to prove following theorem: If $A_{ij}=0,$ then $X_i$ and $X_j$ are conditionally independent on the other variables.
How to construct a confidence interval for the difference between two means of a two normally distributed RV $X,Y$, that are dependent on one another. The variance is known So we have: $$X \sim N(\mu_x, \sigma_x^2)$$ $$Y \sim N(\mu_y, \sigma_y^2)$$ The question is: What is the $(1-\alpha)$ confidence interval for $\mu_...
I am going to use UCLA example on multinominal logit as a running example. I want to analyze the predicted probability of each response based on social-economic status (ses) and the writing grad (write)--- ml <- read.dta("https://stats.idre.ucla.edu/stat/data/hsbdemo.dta") ml$prog2 <- relevel(ml$prog, ref = "academic"...
Can Someone help me out with these ?Answer along with solution will be much appreciated Q1) Imagine that now host have the following instructions. Put a prize behind a random door. Let the guest guess a door. If the guest chooses an incorrect door (with no prize), roll a dice (in such a way that the guest does not see...
Is there any way to interpret the standard error of dummy variables created to represent a categorical variable in a linear regresion model? I saw a great mathematical explanation here, but I am still having trouble with the "real-life" interpretation, if any. As an example, let's say that this is the result of a case ...
Background: I'm working on a geophysical inverse problem and interested in regularization parameter selection. Just by way of explanation, we're trying to estimate the friction underneath a flowing glacier from measurements of the surface velocity and other parameters. I'll write the log-friction as $\theta$ and the ve...
I'm working out of the textbook "Bayesian Data Analysis for the Behavioral and Neural Sciences" by Todd Hudson, and on p. 105 (above) we see the preceding explanation for a Gaussian likelihood, leading to an expression proportional to $$\left(\sigma\sqrt{2\pi}\right)^{-n}\, \exp\left(-\frac{\sum_i\left(x_i - \mu\right...
I'm trying to do an instrument calibration, and I'm following a source which I don't quite understand. I can set $j$, which takes values 0-63, and measure $\vec{Q}$, which is a four element vector where each element can have values 0-255. I'm trying to find $$ P(j|\vec{Q}) = \frac{P(\vec{Q}|j) P(j)}{\Sigma_j P(\vec{Q}|...
I'm writing a program that uses standard deviation as a threshold to detect outliers, however I understand that this assumes a normal distribution, however the data I'm using can assume any distribution. My plan is to first determine the type of distribution, then find the probability of certain values appearing based...