├── table-z-duncan.tex ├── src ├── bouma.png ├── cra.png ├── dest.png ├── ibs.png ├── leg.png ├── logis.png ├── polar.png ├── rbras.png ├── barras.png ├── cra-vg.png ├── dist_t.png ├── eqn_LU.png ├── eqn_QR.png ├── fun_3d.png ├── git_log.png ├── mesh_3d.png ├── newton.png ├── onda_3d.png ├── quartis.png ├── reg_lof.png ├── reg_sqr.png ├── tab_ic.png ├── tree_1.png ├── tree_2.png ├── tree_3.png ├── ubuntu.png ├── agronomia.png ├── campo_alvo.png ├── des-ufla-2.png ├── des-ufla.png ├── dist_beta.png ├── dist_binom.png ├── dist_bneg.png ├── dist_expon.png ├── dist_gamma.png ├── dist_hiper.png ├── dist_pois.png ├── dist_prob.png ├── emacs_mug.png ├── eqn_fatadi.png ├── esperanca.png ├── explicacao.png ├── factorials.png ├── file_tree.png ├── floor-plan.png ├── fluxograms.png ├── gompertz.png ├── herschel.png ├── inla_mug1.png ├── inla_mug2.png ├── leg-profs.png ├── marcacao.png ├── pet_logo1.png ├── pet_logo2.png ├── ponto_erro.png ├── probtree1.png ├── probtree2.png ├── probtree3.png ├── quadratico.png ├── reg_bands.png ├── reg_galton.png ├── reg_geom.png ├── reg_proj.png ├── reg_qqnorm.png ├── sampling.png ├── segmentada.png ├── surface_1.png ├── tab_anova.png ├── ternario.png ├── text_zoom.png ├── workflow.png ├── barras_erro.png ├── caixa_texto1.png ├── caixa_texto2.png ├── croqui-campo.png ├── dist_Z_IC95.png ├── dist_normal.png ├── dist_unifdis.png ├── dist_weibull.png ├── eqn_estat_t.png ├── eqn_regmult.png ├── linear_plato.png ├── mindmap-dsbd.png ├── plot_logaxis.png ├── reg_ellipse.png ├── reg_model_3d.png ├── reg_simples.png ├── reg_sistema.png ├── reg_teorico.png ├── sqreg_decomp.png ├── testHipChi1.png ├── testHipChi2.png ├── testHipProp1.png ├── testHipVar1.png ├── tipos_de_IC.png ├── vangenuchten.png ├── bias-variance.png ├── calendario2016.png ├── circuito_serie.png ├── circulo-trigon.png ├── class-interval.png ├── confundimento.png ├── cra-distporos.png ├── cra_parametros.png ├── cubos_fatoriais.png ├── dbc_matricial.png ├── diagrama_venn1.png ├── diagrama_venn2.png ├── diagrama_venn3.png ├── diagrama_venn4.png ├── diagrama_venn5.png ├── dist-gaussian.png ├── dist_X_barX_Z.png ├── dist_continous.png ├── dist_discrete.png ├── dist_lognormal.png ├── dist_normal_2.png ├── dist_normal_pad.png ├── dist_normal_tab.png ├── dist_t_quantil.png ├── dist_unifcont.png ├── efeito_manejo.png ├── eqn_regsimples.png ├── fatadi_arranjo.png ├── fatorial-duplo.png ├── gompertz_effect.png ├── hist_Checkbox.png ├── knowledge-cycle.png ├── mindmapImovel.png ├── modeloDIC1fator.png ├── modelo_binomial.png ├── modelo_lactacao.png ├── modelo_poisson.png ├── monomolecular.png ├── normal-boxplot.png ├── normal_beta_3d.png ├── pgfplotstable1.png ├── pgfplotstable2.png ├── pgfplotstable3.png ├── pgfplotstable5.png ├── plot_parametric.png ├── poderTesteMedia.png ├── preenchimento.png ├── probtree-counts.png ├── probtree_scheme.png ├── rectangle_split.png ├── reg_components.png ├── reg_matricial.png ├── regressao_beta.png ├── reparamet_cra.png ├── sampling-plan-1.png ├── sampling-plan-2.png ├── table_t_student.png ├── testHipMedia1.png ├── testHipMedia2.png ├── tipos_de_testes.png ├── union_intersec.png ├── PET_git_workflow.png ├── bias-variance-mse.png ├── bivariate-normal.png ├── circuito_paralelo.png ├── circuitos_mistos1.png ├── circuitos_mistos2.png ├── cra-vg-derivadas.png ├── cra_parametros_SI.png ├── dist_duas_normais.png ├── dist_expon_hazard.png ├── fat_anin_regular.png ├── fatadi_matricial.png ├── hist_slider_shiny.png ├── matricial_manova.png ├── michaelis_menten.png ├── michaelis_menten2.png ├── modelo_cubico_rep.png ├── modelo_decaimento.png ├── modelo_liberacao.png ├── modelos_regressao.png ├── naolinear5curvas.png ├── normal_bivariada.png ├── points_and_shapes.png ├── population_sample.png ├── quadratico_plato.png ├── reg_matriz_polin.png ├── regressao_poisson.png ├── reparametrizacao.png ├── segmented-linear.png ├── serie_coordinate.png ├── table-frequencies.png ├── table_F_snedecor.png ├── table_chi_squared.png ├── textos_retangulos.png ├── timeline_dataviz.png ├── anotacoes_intersecao.png ├── bias-variance-mse2.png ├── bleasdale_nelder_rep.png ├── calculation-median.png ├── calendario2022-2023.png ├── conceito_regressao.png ├── cubos-fatoriais-2a3.png ├── cubos-fatoriais-2a4.png ├── cubos-fatoriais-2a5.png ├── cubos-fatoriais-3a2.png ├── cubos-fatoriais-3a3.png ├── cubos-fatoriais-3a4.png ├── data-science-venn-1.png ├── data-science-venn-2.png ├── eqn_hypergeometric.png ├── exponential-poisson.png ├── fatadi_arranjo_herbi.png ├── fatorial-2k-efeito.png ├── fatorial_fracionado.png ├── fluxograma_solucao.png ├── gantt-chart-walmes.png ├── matricial_manova_2.png ├── matricial_manova_3.png ├── matriz-particionada.png ├── matriz_covariancia.png ├── metodos-amostragem.png ├── modelo_decaimento_CV.png ├── modelo_lactacao_rep.png ├── modelos_encaixados1.png ├── modelos_encaixados2.png ├── modelos_encaixados3.png ├── modelos_encaixados4.png ├── modelos_encaixados5.png ├── modelos_encaixados6.png ├── monomolecular_deriv.png ├── pgfplotstable_sunitx.png ├── reg_linear_simples.png ├── regressao_binomial.png ├── regressao_nao_linear.png ├── reparamet_exemplos1.png ├── reparamet_exemplos2.png ├── sample_distribution.png ├── serie_filecontents.png ├── superficie_minimos.png ├── tipos-tabela-normal.png ├── two-phases-sampling.png ├── variavel_aleatoria1.png ├── variavel_aleatoria2.png ├── workflow-labestData.png ├── calculation-quantiles.png ├── canonical_discriminant.png ├── contrastes-planejados.png ├── data-science-workflow.png ├── dispersao_filecontents.png ├── fatorial_ponto_central.png ├── hypothesis-tests-types.png ├── matricial_manova_Omega.png ├── table_standard_normal.png ├── variance-of-estimators.png ├── conceitoregressao_modelo.png ├── consistency-of-estimator.png ├── cubos_fatoriais_efeitos.png ├── decision-about-curvature.png ├── dist_Z_simetrical_areas.png ├── distributions_and_tails.png ├── estatistica-organizacao.png ├── factorial-2k-lack-of-fit.png ├── fatadi_matricial_simples.png ├── fatorial-2k-codificacao.png ├── fatorial-duplo-contrastes.png ├── fatorial-duplo-projecoes.png ├── fluxograma_experimental.png ├── hypothesis-test-intuition.png ├── matricial_manova_reshape.png ├── modelo_tamanho_aamostra.png ├── pgfplotstable_pgfcalendar.png ├── regressao_linear_simples.png ├── sylvester-4-point-problem.png ├── analise-covarianca-efeitos.png ├── confidence-interval-mean-z.png ├── eqn_hypergeometric_complete.png ├── fatorial_ponto_central-2a2.png ├── hypothesis-tests-bilateral.png ├── population_sample_vertical.png ├── regressao_linear_quantilica.png ├── regressao_nao_linear_hetero.png ├── association-is-not-causation.png ├── circuitos_mistos_4_componentes.png ├── cubos-fatoriais-confundimento.png ├── equation_sample_size_for_mean.png ├── fatorial-2a3-confundimento-abc.png ├── fatorial-2k-soma-de-quadrado.png ├── hypothesis-tests-left-tailed.png ├── hypothesis-tests-right-tailed.png ├── regressao_nao_linear_aleatorio.png ├── anova-one-factor-null-hypothesis.png ├── fatorial-2a3-confundimento-ab-ac.png ├── fluxograma_modelos_multivariados.png ├── hypothesis-tests-statistic-value.png ├── hypothesis-tests-types-of-erros.png ├── mean-square-error-of-estimators.png ├── confidence-interval-mean-components.png ├── confidence-interval-mean-t-scores.png ├── confidence-interval-mean-z-scores.png ├── cubos-fatoriais-2a3-pontos-centrais.png ├── hypothesis-tests-p-value-one-tail.png ├── hypothesis-tests-p-value-two-tails.png ├── hypothesis-tests-power-sample-size.png ├── jackknife-bootstrap-randomization.png ├── correlation-covariance-interpretation.png ├── hypothesis-tests-confidence-interval.png ├── confidence-interval-variance-chi-scores.png ├── confidence-interval-variance-components.png ├── random-number-generation-inverse-method.png ├── cubos-fatoriais-2a3-pontos-centrais-valores.png ├── cubos-fatoriais-confundimento-2a3-em-2-blocos.png ├── polar.pgf ├── pdf_crop.sh ├── surface_1.pgf ├── segmentada.pgf ├── rectangle_split.pgf ├── circuito_serie.pgf ├── mesh_3d.pgf ├── leg.pgf ├── quadratico.pgf ├── diagrama_venn1.pgf ├── circuito_paralelo.pgf ├── circulo-trigon.pgf ├── ternario.pgf ├── croqui-campo.pgf ├── plot_parametric.pgf ├── serie_filecontents.pgf ├── barras_erro.pgf ├── textos_retangulos.pgf ├── mindmapImovel.pgf ├── modelo_lactacao.pgf ├── variance-of-estimators.pgf ├── dist-gaussian.pgf ├── cra-distporos.pgf ├── reg_proj.pgf ├── explicacao.pgf ├── modelo_lactacao_rep.pgf ├── dist_continous.pgf ├── reg_matriz_polin.pgf ├── dispersao_filecontents.pgf ├── diagrama_venn3.pgf ├── plot_logaxis.pgf ├── confidence-interval-mean-components.pgf ├── text_zoom.pgf ├── mean-square-error-of-estimators.pgf ├── sylvester-4-point-problem.pgf ├── dist_discrete.pgf ├── dist_unifdis.pgf ├── variavel_aleatoria1.pgf ├── diagrama_venn2.pgf ├── diagrama_venn5.pgf ├── michaelis_menten2.pgf ├── onda_3d.pgf ├── fatorial_fracionado.pgf ├── fatorial_ponto_central.pgf ├── serie_coordinate.pgf ├── herschel.pgf ├── ibs.pgf ├── ubuntu.pgf ├── confidence-interval-variance-components.pgf ├── eqn_estat_t.pgf ├── jackknife-bootstrap-randomization.pgf ├── pgfplotstable3.pgf ├── reg_linear_simples.pgf ├── matriz_covariancia.pgf ├── pgfplotstable2.pgf ├── dist_bneg.pgf ├── monomolecular.pgf ├── reg_sistema.pgf ├── eqn_hypergeometric.pgf ├── logis.pgf ├── fat_anin_regular.pgf ├── regressao_linear_simples.pgf ├── circuitos_mistos1.pgf ├── diagrama_venn4.pgf ├── eqn_fatadi.pgf ├── dist_pois.pgf ├── regressao_poisson.pgf ├── eqn_regsimples.pgf ├── reg_components.pgf ├── exponential-poisson.pgf ├── michaelis_menten.pgf ├── dist_weibull.pgf ├── eqn_t_and_F.pgf ├── reparametrizacao.pgf ├── cra-vg.pgf ├── reparamet_cra.pgf ├── dist_lognormal.pgf ├── reg_geom.pgf ├── fatadi_arranjo.pgf ├── dist_hiper.pgf ├── reg_matricial.pgf ├── eqn_QR.pgf ├── caixa_texto1.pgf ├── regressao_nao_linear.pgf ├── pgfplotstable_pgfcalendar.pgf ├── dist_binom.pgf ├── tree_3.pgf ├── eqn_LU.pgf ├── marcacao.pgf ├── pet_logo1.pgf ├── regressao_binomial.pgf ├── factorial-2k-lack-of-fit.pgf ├── efeito_manejo.pgf ├── naolinear5curvas.pgf ├── dist_normal.pgf ├── file_tree.pgf ├── ponto_erro.pgf ├── barras.pgf ├── dist_normal_2.pgf ├── consistency-of-estimator.pgf ├── dist_duas_normais.pgf ├── fatadi_arranjo_herbi.pgf ├── modelo_decaimento_CV.pgf ├── testHipProp1.pgf ├── hypothesis-test-intuition.pgf ├── caixa_texto2.pgf ├── confidence-interval-mean-z-scores.pgf ├── regressao_nao_linear_hetero.pgf ├── vangenuchten.pgf ├── linear_plato.pgf ├── reg_lof.pgf ├── reg_model_3d.pgf ├── regressao_beta.pgf ├── reg_sqr.pgf ├── dist_expon.pgf ├── esperanca.pgf ├── pgfplotstable_sunitx.pgf ├── two-phases-sampling.pgf ├── dist_gamma.pgf ├── class-interval.pgf ├── dist_t_quantil.pgf ├── sampling-plan-1.pgf ├── tipos_de_testes.pgf └── preenchimento.pgf ├── template.Rmd ├── .gitignore ├── _check_pairs.R ├── _deploy.sh ├── site └── config.toml └── style.css /table-z-duncan.tex: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/bouma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/bouma.png -------------------------------------------------------------------------------- /src/cra.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cra.png -------------------------------------------------------------------------------- /src/dest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dest.png -------------------------------------------------------------------------------- /src/ibs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/ibs.png -------------------------------------------------------------------------------- /src/leg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/leg.png -------------------------------------------------------------------------------- /src/logis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/logis.png -------------------------------------------------------------------------------- /src/polar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/polar.png -------------------------------------------------------------------------------- /src/rbras.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/rbras.png -------------------------------------------------------------------------------- /src/barras.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/barras.png -------------------------------------------------------------------------------- /src/cra-vg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cra-vg.png -------------------------------------------------------------------------------- /src/dist_t.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_t.png -------------------------------------------------------------------------------- /src/eqn_LU.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/eqn_LU.png -------------------------------------------------------------------------------- /src/eqn_QR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/eqn_QR.png -------------------------------------------------------------------------------- /src/fun_3d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fun_3d.png -------------------------------------------------------------------------------- /src/git_log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/git_log.png -------------------------------------------------------------------------------- /src/mesh_3d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/mesh_3d.png -------------------------------------------------------------------------------- /src/newton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/newton.png -------------------------------------------------------------------------------- /src/onda_3d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/onda_3d.png -------------------------------------------------------------------------------- /src/quartis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/quartis.png -------------------------------------------------------------------------------- /src/reg_lof.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_lof.png -------------------------------------------------------------------------------- /src/reg_sqr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_sqr.png -------------------------------------------------------------------------------- /src/tab_ic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/tab_ic.png -------------------------------------------------------------------------------- /src/tree_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/tree_1.png -------------------------------------------------------------------------------- /src/tree_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/tree_2.png -------------------------------------------------------------------------------- /src/tree_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/tree_3.png -------------------------------------------------------------------------------- /src/ubuntu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/ubuntu.png -------------------------------------------------------------------------------- /src/agronomia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/agronomia.png -------------------------------------------------------------------------------- /src/campo_alvo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/campo_alvo.png -------------------------------------------------------------------------------- /src/des-ufla-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/des-ufla-2.png -------------------------------------------------------------------------------- /src/des-ufla.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/des-ufla.png -------------------------------------------------------------------------------- /src/dist_beta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_beta.png -------------------------------------------------------------------------------- /src/dist_binom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_binom.png -------------------------------------------------------------------------------- /src/dist_bneg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_bneg.png -------------------------------------------------------------------------------- /src/dist_expon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_expon.png -------------------------------------------------------------------------------- /src/dist_gamma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_gamma.png -------------------------------------------------------------------------------- /src/dist_hiper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_hiper.png -------------------------------------------------------------------------------- /src/dist_pois.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_pois.png -------------------------------------------------------------------------------- /src/dist_prob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_prob.png -------------------------------------------------------------------------------- /src/emacs_mug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/emacs_mug.png -------------------------------------------------------------------------------- /src/eqn_fatadi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/eqn_fatadi.png -------------------------------------------------------------------------------- /src/esperanca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/esperanca.png -------------------------------------------------------------------------------- /src/explicacao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/explicacao.png -------------------------------------------------------------------------------- /src/factorials.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/factorials.png -------------------------------------------------------------------------------- /src/file_tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/file_tree.png -------------------------------------------------------------------------------- /src/floor-plan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/floor-plan.png -------------------------------------------------------------------------------- /src/fluxograms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fluxograms.png -------------------------------------------------------------------------------- /src/gompertz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/gompertz.png -------------------------------------------------------------------------------- /src/herschel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/herschel.png -------------------------------------------------------------------------------- /src/inla_mug1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/inla_mug1.png -------------------------------------------------------------------------------- /src/inla_mug2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/inla_mug2.png -------------------------------------------------------------------------------- /src/leg-profs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/leg-profs.png -------------------------------------------------------------------------------- /src/marcacao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/marcacao.png -------------------------------------------------------------------------------- /src/pet_logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/pet_logo1.png -------------------------------------------------------------------------------- /src/pet_logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/pet_logo2.png -------------------------------------------------------------------------------- /src/ponto_erro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/ponto_erro.png -------------------------------------------------------------------------------- /src/probtree1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/probtree1.png -------------------------------------------------------------------------------- /src/probtree2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/probtree2.png -------------------------------------------------------------------------------- /src/probtree3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/probtree3.png -------------------------------------------------------------------------------- /src/quadratico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/quadratico.png -------------------------------------------------------------------------------- /src/reg_bands.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_bands.png -------------------------------------------------------------------------------- /src/reg_galton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_galton.png -------------------------------------------------------------------------------- /src/reg_geom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_geom.png -------------------------------------------------------------------------------- /src/reg_proj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_proj.png -------------------------------------------------------------------------------- /src/reg_qqnorm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_qqnorm.png -------------------------------------------------------------------------------- /src/sampling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/sampling.png -------------------------------------------------------------------------------- /src/segmentada.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/segmentada.png -------------------------------------------------------------------------------- /src/surface_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/surface_1.png -------------------------------------------------------------------------------- /src/tab_anova.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/tab_anova.png -------------------------------------------------------------------------------- /src/ternario.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/ternario.png -------------------------------------------------------------------------------- /src/text_zoom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/text_zoom.png -------------------------------------------------------------------------------- /src/workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/workflow.png -------------------------------------------------------------------------------- /src/barras_erro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/barras_erro.png -------------------------------------------------------------------------------- /src/caixa_texto1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/caixa_texto1.png -------------------------------------------------------------------------------- /src/caixa_texto2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/caixa_texto2.png -------------------------------------------------------------------------------- /src/croqui-campo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/croqui-campo.png -------------------------------------------------------------------------------- /src/dist_Z_IC95.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_Z_IC95.png -------------------------------------------------------------------------------- /src/dist_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_normal.png -------------------------------------------------------------------------------- /src/dist_unifdis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_unifdis.png -------------------------------------------------------------------------------- /src/dist_weibull.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_weibull.png -------------------------------------------------------------------------------- /src/eqn_estat_t.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/eqn_estat_t.png -------------------------------------------------------------------------------- /src/eqn_regmult.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/eqn_regmult.png -------------------------------------------------------------------------------- /src/linear_plato.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/linear_plato.png -------------------------------------------------------------------------------- /src/mindmap-dsbd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/mindmap-dsbd.png -------------------------------------------------------------------------------- /src/plot_logaxis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/plot_logaxis.png -------------------------------------------------------------------------------- /src/reg_ellipse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_ellipse.png -------------------------------------------------------------------------------- /src/reg_model_3d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_model_3d.png -------------------------------------------------------------------------------- /src/reg_simples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_simples.png -------------------------------------------------------------------------------- /src/reg_sistema.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_sistema.png -------------------------------------------------------------------------------- /src/reg_teorico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_teorico.png -------------------------------------------------------------------------------- /src/sqreg_decomp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/sqreg_decomp.png -------------------------------------------------------------------------------- /src/testHipChi1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/testHipChi1.png -------------------------------------------------------------------------------- /src/testHipChi2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/testHipChi2.png -------------------------------------------------------------------------------- /src/testHipProp1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/testHipProp1.png -------------------------------------------------------------------------------- /src/testHipVar1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/testHipVar1.png -------------------------------------------------------------------------------- /src/tipos_de_IC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/tipos_de_IC.png -------------------------------------------------------------------------------- /src/vangenuchten.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/vangenuchten.png -------------------------------------------------------------------------------- /src/bias-variance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/bias-variance.png -------------------------------------------------------------------------------- /src/calendario2016.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/calendario2016.png -------------------------------------------------------------------------------- /src/circuito_serie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/circuito_serie.png -------------------------------------------------------------------------------- /src/circulo-trigon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/circulo-trigon.png -------------------------------------------------------------------------------- /src/class-interval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/class-interval.png -------------------------------------------------------------------------------- /src/confundimento.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/confundimento.png -------------------------------------------------------------------------------- /src/cra-distporos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cra-distporos.png -------------------------------------------------------------------------------- /src/cra_parametros.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cra_parametros.png -------------------------------------------------------------------------------- /src/cubos_fatoriais.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos_fatoriais.png -------------------------------------------------------------------------------- /src/dbc_matricial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dbc_matricial.png -------------------------------------------------------------------------------- /src/diagrama_venn1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/diagrama_venn1.png -------------------------------------------------------------------------------- /src/diagrama_venn2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/diagrama_venn2.png -------------------------------------------------------------------------------- /src/diagrama_venn3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/diagrama_venn3.png -------------------------------------------------------------------------------- /src/diagrama_venn4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/diagrama_venn4.png -------------------------------------------------------------------------------- /src/diagrama_venn5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/diagrama_venn5.png -------------------------------------------------------------------------------- /src/dist-gaussian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist-gaussian.png -------------------------------------------------------------------------------- /src/dist_X_barX_Z.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_X_barX_Z.png -------------------------------------------------------------------------------- /src/dist_continous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_continous.png -------------------------------------------------------------------------------- /src/dist_discrete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_discrete.png -------------------------------------------------------------------------------- /src/dist_lognormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_lognormal.png -------------------------------------------------------------------------------- /src/dist_normal_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_normal_2.png -------------------------------------------------------------------------------- /src/dist_normal_pad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_normal_pad.png -------------------------------------------------------------------------------- /src/dist_normal_tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_normal_tab.png -------------------------------------------------------------------------------- /src/dist_t_quantil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_t_quantil.png -------------------------------------------------------------------------------- /src/dist_unifcont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_unifcont.png -------------------------------------------------------------------------------- /src/efeito_manejo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/efeito_manejo.png -------------------------------------------------------------------------------- /src/eqn_regsimples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/eqn_regsimples.png -------------------------------------------------------------------------------- /src/fatadi_arranjo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatadi_arranjo.png -------------------------------------------------------------------------------- /src/fatorial-duplo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial-duplo.png -------------------------------------------------------------------------------- /src/gompertz_effect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/gompertz_effect.png -------------------------------------------------------------------------------- /src/hist_Checkbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hist_Checkbox.png -------------------------------------------------------------------------------- /src/knowledge-cycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/knowledge-cycle.png -------------------------------------------------------------------------------- /src/mindmapImovel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/mindmapImovel.png -------------------------------------------------------------------------------- /src/modeloDIC1fator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modeloDIC1fator.png -------------------------------------------------------------------------------- /src/modelo_binomial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelo_binomial.png -------------------------------------------------------------------------------- /src/modelo_lactacao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelo_lactacao.png -------------------------------------------------------------------------------- /src/modelo_poisson.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelo_poisson.png -------------------------------------------------------------------------------- /src/monomolecular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/monomolecular.png -------------------------------------------------------------------------------- /src/normal-boxplot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/normal-boxplot.png -------------------------------------------------------------------------------- /src/normal_beta_3d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/normal_beta_3d.png -------------------------------------------------------------------------------- /src/pgfplotstable1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/pgfplotstable1.png -------------------------------------------------------------------------------- /src/pgfplotstable2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/pgfplotstable2.png -------------------------------------------------------------------------------- /src/pgfplotstable3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/pgfplotstable3.png -------------------------------------------------------------------------------- /src/pgfplotstable5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/pgfplotstable5.png -------------------------------------------------------------------------------- /src/plot_parametric.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/plot_parametric.png -------------------------------------------------------------------------------- /src/poderTesteMedia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/poderTesteMedia.png -------------------------------------------------------------------------------- /src/preenchimento.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/preenchimento.png -------------------------------------------------------------------------------- /src/probtree-counts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/probtree-counts.png -------------------------------------------------------------------------------- /src/probtree_scheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/probtree_scheme.png -------------------------------------------------------------------------------- /src/rectangle_split.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/rectangle_split.png -------------------------------------------------------------------------------- /src/reg_components.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_components.png -------------------------------------------------------------------------------- /src/reg_matricial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_matricial.png -------------------------------------------------------------------------------- /src/regressao_beta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/regressao_beta.png -------------------------------------------------------------------------------- /src/reparamet_cra.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reparamet_cra.png -------------------------------------------------------------------------------- /src/sampling-plan-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/sampling-plan-1.png -------------------------------------------------------------------------------- /src/sampling-plan-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/sampling-plan-2.png -------------------------------------------------------------------------------- /src/table_t_student.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/table_t_student.png -------------------------------------------------------------------------------- /src/testHipMedia1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/testHipMedia1.png -------------------------------------------------------------------------------- /src/testHipMedia2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/testHipMedia2.png -------------------------------------------------------------------------------- /src/tipos_de_testes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/tipos_de_testes.png -------------------------------------------------------------------------------- /src/union_intersec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/union_intersec.png -------------------------------------------------------------------------------- /src/PET_git_workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/PET_git_workflow.png -------------------------------------------------------------------------------- /src/bias-variance-mse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/bias-variance-mse.png -------------------------------------------------------------------------------- /src/bivariate-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/bivariate-normal.png -------------------------------------------------------------------------------- /src/circuito_paralelo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/circuito_paralelo.png -------------------------------------------------------------------------------- /src/circuitos_mistos1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/circuitos_mistos1.png -------------------------------------------------------------------------------- /src/circuitos_mistos2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/circuitos_mistos2.png -------------------------------------------------------------------------------- /src/cra-vg-derivadas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cra-vg-derivadas.png -------------------------------------------------------------------------------- /src/cra_parametros_SI.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cra_parametros_SI.png -------------------------------------------------------------------------------- /src/dist_duas_normais.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_duas_normais.png -------------------------------------------------------------------------------- /src/dist_expon_hazard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_expon_hazard.png -------------------------------------------------------------------------------- /src/fat_anin_regular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fat_anin_regular.png -------------------------------------------------------------------------------- /src/fatadi_matricial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatadi_matricial.png -------------------------------------------------------------------------------- /src/hist_slider_shiny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hist_slider_shiny.png -------------------------------------------------------------------------------- /src/matricial_manova.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/matricial_manova.png -------------------------------------------------------------------------------- /src/michaelis_menten.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/michaelis_menten.png -------------------------------------------------------------------------------- /src/michaelis_menten2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/michaelis_menten2.png -------------------------------------------------------------------------------- /src/modelo_cubico_rep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelo_cubico_rep.png -------------------------------------------------------------------------------- /src/modelo_decaimento.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelo_decaimento.png -------------------------------------------------------------------------------- /src/modelo_liberacao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelo_liberacao.png -------------------------------------------------------------------------------- /src/modelos_regressao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelos_regressao.png -------------------------------------------------------------------------------- /src/naolinear5curvas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/naolinear5curvas.png -------------------------------------------------------------------------------- /src/normal_bivariada.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/normal_bivariada.png -------------------------------------------------------------------------------- /src/points_and_shapes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/points_and_shapes.png -------------------------------------------------------------------------------- /src/population_sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/population_sample.png -------------------------------------------------------------------------------- /src/quadratico_plato.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/quadratico_plato.png -------------------------------------------------------------------------------- /src/reg_matriz_polin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_matriz_polin.png -------------------------------------------------------------------------------- /src/regressao_poisson.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/regressao_poisson.png -------------------------------------------------------------------------------- /src/reparametrizacao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reparametrizacao.png -------------------------------------------------------------------------------- /src/segmented-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/segmented-linear.png -------------------------------------------------------------------------------- /src/serie_coordinate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/serie_coordinate.png -------------------------------------------------------------------------------- /src/table-frequencies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/table-frequencies.png -------------------------------------------------------------------------------- /src/table_F_snedecor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/table_F_snedecor.png -------------------------------------------------------------------------------- /src/table_chi_squared.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/table_chi_squared.png -------------------------------------------------------------------------------- /src/textos_retangulos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/textos_retangulos.png -------------------------------------------------------------------------------- /src/timeline_dataviz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/timeline_dataviz.png -------------------------------------------------------------------------------- /src/anotacoes_intersecao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/anotacoes_intersecao.png -------------------------------------------------------------------------------- /src/bias-variance-mse2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/bias-variance-mse2.png -------------------------------------------------------------------------------- /src/bleasdale_nelder_rep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/bleasdale_nelder_rep.png -------------------------------------------------------------------------------- /src/calculation-median.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/calculation-median.png -------------------------------------------------------------------------------- /src/calendario2022-2023.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/calendario2022-2023.png -------------------------------------------------------------------------------- /src/conceito_regressao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/conceito_regressao.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-2a3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-2a3.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-2a4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-2a4.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-2a5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-2a5.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-3a2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-3a2.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-3a3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-3a3.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-3a4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-3a4.png -------------------------------------------------------------------------------- /src/data-science-venn-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/data-science-venn-1.png -------------------------------------------------------------------------------- /src/data-science-venn-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/data-science-venn-2.png -------------------------------------------------------------------------------- /src/eqn_hypergeometric.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/eqn_hypergeometric.png -------------------------------------------------------------------------------- /src/exponential-poisson.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/exponential-poisson.png -------------------------------------------------------------------------------- /src/fatadi_arranjo_herbi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatadi_arranjo_herbi.png -------------------------------------------------------------------------------- /src/fatorial-2k-efeito.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial-2k-efeito.png -------------------------------------------------------------------------------- /src/fatorial_fracionado.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial_fracionado.png -------------------------------------------------------------------------------- /src/fluxograma_solucao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fluxograma_solucao.png -------------------------------------------------------------------------------- /src/gantt-chart-walmes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/gantt-chart-walmes.png -------------------------------------------------------------------------------- /src/matricial_manova_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/matricial_manova_2.png -------------------------------------------------------------------------------- /src/matricial_manova_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/matricial_manova_3.png -------------------------------------------------------------------------------- /src/matriz-particionada.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/matriz-particionada.png -------------------------------------------------------------------------------- /src/matriz_covariancia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/matriz_covariancia.png -------------------------------------------------------------------------------- /src/metodos-amostragem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/metodos-amostragem.png -------------------------------------------------------------------------------- /src/modelo_decaimento_CV.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelo_decaimento_CV.png -------------------------------------------------------------------------------- /src/modelo_lactacao_rep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelo_lactacao_rep.png -------------------------------------------------------------------------------- /src/modelos_encaixados1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelos_encaixados1.png -------------------------------------------------------------------------------- /src/modelos_encaixados2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelos_encaixados2.png -------------------------------------------------------------------------------- /src/modelos_encaixados3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelos_encaixados3.png -------------------------------------------------------------------------------- /src/modelos_encaixados4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelos_encaixados4.png -------------------------------------------------------------------------------- /src/modelos_encaixados5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelos_encaixados5.png -------------------------------------------------------------------------------- /src/modelos_encaixados6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelos_encaixados6.png -------------------------------------------------------------------------------- /src/monomolecular_deriv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/monomolecular_deriv.png -------------------------------------------------------------------------------- /src/pgfplotstable_sunitx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/pgfplotstable_sunitx.png -------------------------------------------------------------------------------- /src/reg_linear_simples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reg_linear_simples.png -------------------------------------------------------------------------------- /src/regressao_binomial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/regressao_binomial.png -------------------------------------------------------------------------------- /src/regressao_nao_linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/regressao_nao_linear.png -------------------------------------------------------------------------------- /src/reparamet_exemplos1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reparamet_exemplos1.png -------------------------------------------------------------------------------- /src/reparamet_exemplos2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/reparamet_exemplos2.png -------------------------------------------------------------------------------- /src/sample_distribution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/sample_distribution.png -------------------------------------------------------------------------------- /src/serie_filecontents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/serie_filecontents.png -------------------------------------------------------------------------------- /src/superficie_minimos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/superficie_minimos.png -------------------------------------------------------------------------------- /src/tipos-tabela-normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/tipos-tabela-normal.png -------------------------------------------------------------------------------- /src/two-phases-sampling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/two-phases-sampling.png -------------------------------------------------------------------------------- /src/variavel_aleatoria1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/variavel_aleatoria1.png -------------------------------------------------------------------------------- /src/variavel_aleatoria2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/variavel_aleatoria2.png -------------------------------------------------------------------------------- /src/workflow-labestData.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/workflow-labestData.png -------------------------------------------------------------------------------- /src/calculation-quantiles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/calculation-quantiles.png -------------------------------------------------------------------------------- /src/canonical_discriminant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/canonical_discriminant.png -------------------------------------------------------------------------------- /src/contrastes-planejados.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/contrastes-planejados.png -------------------------------------------------------------------------------- /src/data-science-workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/data-science-workflow.png -------------------------------------------------------------------------------- /src/dispersao_filecontents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dispersao_filecontents.png -------------------------------------------------------------------------------- /src/fatorial_ponto_central.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial_ponto_central.png -------------------------------------------------------------------------------- /src/hypothesis-tests-types.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-types.png -------------------------------------------------------------------------------- /src/matricial_manova_Omega.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/matricial_manova_Omega.png -------------------------------------------------------------------------------- /src/table_standard_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/table_standard_normal.png -------------------------------------------------------------------------------- /src/variance-of-estimators.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/variance-of-estimators.png -------------------------------------------------------------------------------- /src/conceitoregressao_modelo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/conceitoregressao_modelo.png -------------------------------------------------------------------------------- /src/consistency-of-estimator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/consistency-of-estimator.png -------------------------------------------------------------------------------- /src/cubos_fatoriais_efeitos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos_fatoriais_efeitos.png -------------------------------------------------------------------------------- /src/decision-about-curvature.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/decision-about-curvature.png -------------------------------------------------------------------------------- /src/dist_Z_simetrical_areas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/dist_Z_simetrical_areas.png -------------------------------------------------------------------------------- /src/distributions_and_tails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/distributions_and_tails.png -------------------------------------------------------------------------------- /src/estatistica-organizacao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/estatistica-organizacao.png -------------------------------------------------------------------------------- /src/factorial-2k-lack-of-fit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/factorial-2k-lack-of-fit.png -------------------------------------------------------------------------------- /src/fatadi_matricial_simples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatadi_matricial_simples.png -------------------------------------------------------------------------------- /src/fatorial-2k-codificacao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial-2k-codificacao.png -------------------------------------------------------------------------------- /src/fatorial-duplo-contrastes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial-duplo-contrastes.png -------------------------------------------------------------------------------- /src/fatorial-duplo-projecoes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial-duplo-projecoes.png -------------------------------------------------------------------------------- /src/fluxograma_experimental.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fluxograma_experimental.png -------------------------------------------------------------------------------- /src/hypothesis-test-intuition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-test-intuition.png -------------------------------------------------------------------------------- /src/matricial_manova_reshape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/matricial_manova_reshape.png -------------------------------------------------------------------------------- /src/modelo_tamanho_aamostra.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/modelo_tamanho_aamostra.png -------------------------------------------------------------------------------- /src/pgfplotstable_pgfcalendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/pgfplotstable_pgfcalendar.png -------------------------------------------------------------------------------- /src/regressao_linear_simples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/regressao_linear_simples.png -------------------------------------------------------------------------------- /src/sylvester-4-point-problem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/sylvester-4-point-problem.png -------------------------------------------------------------------------------- /src/analise-covarianca-efeitos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/analise-covarianca-efeitos.png -------------------------------------------------------------------------------- /src/confidence-interval-mean-z.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/confidence-interval-mean-z.png -------------------------------------------------------------------------------- /src/eqn_hypergeometric_complete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/eqn_hypergeometric_complete.png -------------------------------------------------------------------------------- /src/fatorial_ponto_central-2a2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial_ponto_central-2a2.png -------------------------------------------------------------------------------- /src/hypothesis-tests-bilateral.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-bilateral.png -------------------------------------------------------------------------------- /src/population_sample_vertical.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/population_sample_vertical.png -------------------------------------------------------------------------------- /src/regressao_linear_quantilica.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/regressao_linear_quantilica.png -------------------------------------------------------------------------------- /src/regressao_nao_linear_hetero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/regressao_nao_linear_hetero.png -------------------------------------------------------------------------------- /src/association-is-not-causation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/association-is-not-causation.png -------------------------------------------------------------------------------- /src/circuitos_mistos_4_componentes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/circuitos_mistos_4_componentes.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-confundimento.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-confundimento.png -------------------------------------------------------------------------------- /src/equation_sample_size_for_mean.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/equation_sample_size_for_mean.png -------------------------------------------------------------------------------- /src/fatorial-2a3-confundimento-abc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial-2a3-confundimento-abc.png -------------------------------------------------------------------------------- /src/fatorial-2k-soma-de-quadrado.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial-2k-soma-de-quadrado.png -------------------------------------------------------------------------------- /src/hypothesis-tests-left-tailed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-left-tailed.png -------------------------------------------------------------------------------- /src/hypothesis-tests-right-tailed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-right-tailed.png -------------------------------------------------------------------------------- /src/regressao_nao_linear_aleatorio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/regressao_nao_linear_aleatorio.png -------------------------------------------------------------------------------- /src/anova-one-factor-null-hypothesis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/anova-one-factor-null-hypothesis.png -------------------------------------------------------------------------------- /src/fatorial-2a3-confundimento-ab-ac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fatorial-2a3-confundimento-ab-ac.png -------------------------------------------------------------------------------- /src/fluxograma_modelos_multivariados.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/fluxograma_modelos_multivariados.png -------------------------------------------------------------------------------- /src/hypothesis-tests-statistic-value.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-statistic-value.png -------------------------------------------------------------------------------- /src/hypothesis-tests-types-of-erros.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-types-of-erros.png -------------------------------------------------------------------------------- /src/mean-square-error-of-estimators.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/mean-square-error-of-estimators.png -------------------------------------------------------------------------------- /src/confidence-interval-mean-components.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/confidence-interval-mean-components.png -------------------------------------------------------------------------------- /src/confidence-interval-mean-t-scores.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/confidence-interval-mean-t-scores.png -------------------------------------------------------------------------------- /src/confidence-interval-mean-z-scores.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/confidence-interval-mean-z-scores.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-2a3-pontos-centrais.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-2a3-pontos-centrais.png -------------------------------------------------------------------------------- /src/hypothesis-tests-p-value-one-tail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-p-value-one-tail.png -------------------------------------------------------------------------------- /src/hypothesis-tests-p-value-two-tails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-p-value-two-tails.png -------------------------------------------------------------------------------- /src/hypothesis-tests-power-sample-size.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-power-sample-size.png -------------------------------------------------------------------------------- /src/jackknife-bootstrap-randomization.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/jackknife-bootstrap-randomization.png -------------------------------------------------------------------------------- /src/correlation-covariance-interpretation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/correlation-covariance-interpretation.png -------------------------------------------------------------------------------- /src/hypothesis-tests-confidence-interval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/hypothesis-tests-confidence-interval.png -------------------------------------------------------------------------------- /src/confidence-interval-variance-chi-scores.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/confidence-interval-variance-chi-scores.png -------------------------------------------------------------------------------- /src/confidence-interval-variance-components.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/confidence-interval-variance-components.png -------------------------------------------------------------------------------- /src/random-number-generation-inverse-method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/random-number-generation-inverse-method.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-2a3-pontos-centrais-valores.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-2a3-pontos-centrais-valores.png -------------------------------------------------------------------------------- /src/cubos-fatoriais-confundimento-2a3-em-2-blocos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmes/Tikz/HEAD/src/cubos-fatoriais-confundimento-2a3-em-2-blocos.png -------------------------------------------------------------------------------- /src/polar.pgf: -------------------------------------------------------------------------------- 1 | \usepgfplotslibrary{polar} 2 | 3 | \begin{tikzpicture} 4 | \begin{polaraxis}[ 5 | title=\large\bfseries{Polar coordinates}] 6 | \addplot+[red, domain=0:360, samples=360] {sin(\x)}; 7 | \end{polaraxis} 8 | \end{tikzpicture} -------------------------------------------------------------------------------- /template.Rmd: -------------------------------------------------------------------------------- 1 | **** 2 | 3 | ![](./src/&PGF_FILE&.png) 4 | 5 | * [&PGF_FILE&.pgf](https://github.com/walmes/Tikz/blob/master/src/&PGF_FILE&.pgf) 6 | 7 | `r a` 8 | ```{r} 9 | cat(readLines("./src/&PGF_FILE&.pgf"), sep = "\n") 10 | ``` 11 | `r b` 12 | -------------------------------------------------------------------------------- /src/pdf_crop.sh: -------------------------------------------------------------------------------- 1 | pdfcrop --margins '5 10 3 -395' table_chi_squared.pdf table_chi_squared-crop.pdf 2 | pdfcrop --margins '5 10 -10 -395' table_F_snedecor.pdf table_F_snedecor-crop.pdf 3 | pdfcrop --margins '5 10 3 -335' table_t_student.pdf table_t_student-crop.pdf 4 | -------------------------------------------------------------------------------- /src/surface_1.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | \begin{axis}[samples=10] 3 | \addplot3[surf, domain=-2:2] {x^2-y^2}; 4 | \end{axis} 5 | \begin{axis}[xshift=8cm, samples=50] 6 | \addplot3[surf, domain=-2:2] {x^2-y^2}; 7 | \end{axis} 8 | \end{tikzpicture} 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Files in ./ 2 | child.Rmd 3 | *.html 4 | 5 | # Folders in site/. 6 | site/themes 7 | site/public 8 | site/data 9 | 10 | # Files in src/. 11 | # src/* 12 | # !src/*.png 13 | # !src/*.pgf 14 | # !src/*.R 15 | # !src/TIKZ_TEMPLATE.pgs 16 | src/*.tex 17 | src/*.pdf 18 | 19 | -------------------------------------------------------------------------------- /src/segmentada.pgf: -------------------------------------------------------------------------------- 1 | %% http://www.latex-community.org/forum/viewtopic.php?f=46&p=72503 2 | 3 | \begin{tikzpicture} 4 | \begin{axis}[mark=none] 5 | \addplot[red, samples=100] 6 | {x^2}; 7 | \addplot[green, samples=300] 8 | {x^2 > 4 ? -x^2+8 : x^2}; 9 | \end{axis} 10 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/rectangle_split.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | \node[ 3 | rectangle split, 4 | rectangle split parts=3, 5 | draw, 6 | text width=2.75cm] 7 | {Student 8 | \nodepart{second} 9 | age:int \\ name:String 10 | \nodepart{third} 11 | getAge():int \\ getName():String 12 | }; 13 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/circuito_serie.pgf: -------------------------------------------------------------------------------- 1 | \tikzset{ 2 | >=stealth', 3 | node distance=2mm and 3mm, 4 | every node/.style={draw}, 5 | } 6 | 7 | \begin{tikzpicture} 8 | \node (s1) at (0,0) {0.95}; 9 | \node (s2) [right=of s1] {0.85}; 10 | \draw (s1) -- (s2); 11 | \draw (s1) -- ++(-0.8,0); 12 | \draw [->] (s2) -- ++(0.8,0); 13 | \end{tikzpicture} 14 | -------------------------------------------------------------------------------- /src/mesh_3d.pgf: -------------------------------------------------------------------------------- 1 | % https://www.sharelatex.com/learn/Pgfplots_package 2 | 3 | \begin{tikzpicture} 4 | \begin{axis}[ 5 | title=Example using the mesh parameter, 6 | hide axis, 7 | colormap/cool] 8 | \addplot3[mesh, samples=50, domain=-8:8] 9 | {sin(deg(sqrt(x^2+y^2)))/sqrt(x^2+y^2)}; 10 | \addlegendentry{$\frac{sin(r)}{r}$} 11 | \end{axis} 12 | \end{tikzpicture} 13 | -------------------------------------------------------------------------------- /src/leg.pgf: -------------------------------------------------------------------------------- 1 | \def\outercircle{(0,0) circle (5cm)}% 2 | \def\innercircle{(-0.4,0.4) circle (4.2cm)}% 3 | \def\leg{% 4 | \node[font=\fontsize{165}{144}\selectfont, color=white] 5 | at (0,0) (leg) {leg}}% 6 | \def\orangecircle{(1.9,0.5) circle (0.8cm)}% 7 | 8 | \begin{tikzpicture} 9 | \draw[color=white!50!black, fill=white, line width=5pt] 10 | \outercircle; 11 | \draw[draw=none, fill=white!50!black] \innercircle; 12 | \draw[draw=none, fill=orange] \orangecircle; 13 | \leg; 14 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/quadratico.pgf: -------------------------------------------------------------------------------- 1 | \def\by{2.1} 2 | \def\bx{3} 3 | \def\bc{-0.2} 4 | 5 | \begin{tikzpicture}[domain=-3:5, xscale=1.2, yscale=1.2, >=latex] 6 | \draw[->, line width=1pt] (0,0) -- (5,0) node[below] {$x$}; 7 | \draw[->, line width=1pt] (0,0) -- (0,3) node[left] {$f(x,\theta)$}; 8 | \draw[color=green!30!black, thick, smooth] 9 | plot[id=x, domain=0:5] function{\by+\bc*(x-\bx)**2}; 10 | \draw[dashed] (0, \by) node[left] {$\vartheta_y$} -| (\bx,0) 11 | node[below] {$\vartheta_x$}; 12 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/diagrama_venn1.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | % \draw[thick] (0,0) -- (0,5) -- (8,5) -- (8,0) -- (0,0); 3 | \draw[thick] (0,0) rectangle (8,5); 4 | \draw[thick, color=darkgreen, fill] (4,2.5) ellipse (2.7cm and 1.7cm); 5 | \draw[thick] (3,0) .. controls (6,2) and (2,4) .. (4,5); 6 | \node (n1) at (6,4) {\textcolor{darkgreen}{$A$}}; 7 | \node (n2) at (0.7,2) {$B$}; 8 | \node (n2) at (3,2.5) {$A\cap B$}; 9 | \node (n2) at (5,2.5) {$A\cap B^c$}; 10 | \node (n3) at (7.5,2) {$B^c$}; 11 | \end{tikzpicture} 12 | -------------------------------------------------------------------------------- /src/circuito_paralelo.pgf: -------------------------------------------------------------------------------- 1 | \tikzset{ 2 | >=stealth', 3 | node distance=2mm and 3mm, 4 | every node/.style={draw}, 5 | } 6 | 7 | \begin{tikzpicture} 8 | \coordinate (c0) at (1.5,0); 9 | \coordinate (x1) at ($(-0.8,0)+(c0)$); 10 | \coordinate (x0) at ($(-0.5,0)+(x1)$); 11 | \coordinate (x2) at ($(0.8,0)+(c0)$); 12 | \coordinate (x3) at ($(0.5,0)+(x2)$); 13 | \node (r1) [above=of c0] {0.95}; 14 | \draw[->] (x0) -- (x1) |- (r1) -| (x2) -- (x3); 15 | \node (r2) [below=of c0] {0.85}; 16 | \draw (x1) |- (r2) -| (x2); 17 | \end{tikzpicture} 18 | -------------------------------------------------------------------------------- /src/circulo-trigon.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | very thick, 3 | scale = 10, 4 | every node/.style = {scale = 3}, 5 | >=latex'] 6 | \def\lim{1.2} 7 | \draw[->] (-\lim, 0) -- (\lim, 0); 8 | \draw[->] (0, -\lim) -- (0, \lim); 9 | \draw (0, 0) circle (1cm); 10 | \draw (0, 0 ) -- node [above, sloped, pos = 0.5] {$v$} (0.65, 0.45) circle (0.3pt); 11 | \draw[dashed] (0.65, 0.45) -- (0.65, 0) node[below] {$u_1$}; 12 | \draw[dashed] (0.65, 0.45) -- (0, 0.45) node[left] {$u_2$}; 13 | \draw (0.2, 0) arc (0:35:0.2) node[pos = 0.7, right] {$\theta$}; 14 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/ternario.pgf: -------------------------------------------------------------------------------- 1 | % http://tex.stackexchange.com/questions/276496/draw-a-surface-on-a-ternary-diagram-with-pgfplots 2 | 3 | \usepgfplotslibrary{ternary} 4 | 5 | \begin{tikzpicture} 6 | \begin{ternaryaxis}[ 7 | axis on top, 8 | xlabel=x, ylabel=y, zlabel=z, 9 | colorbar] 10 | 11 | \addplot3 [patch, shader=interp, point meta=\thisrow{C}] 12 | table{ 13 | X Y Z C 14 | 0 0 1 100 15 | 1 0 0 0 16 | 0.5 0.5 0 0 17 | 0.5 0.5 0 0 18 | 0 1 0 20 19 | 0 0 1 100 20 | }; 21 | \end{ternaryaxis} 22 | \end{tikzpicture} 23 | -------------------------------------------------------------------------------- /src/croqui-campo.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | 3 | \draw[draw, step = 0.5, dotted] (0, 0) grid (10, 6); 4 | \draw [thick] (0, 0) rectangle (10, 6) node [below left] {C}; 5 | \draw [thick] (7, 0) .. controls +(2, 5) and +(0, -5) .. (6, 6) node [below left] {B}; 6 | \draw [thick] (2, 0) .. controls +(4, 4) and +(0, -3) .. (3, 6) node [below left] {A}; 7 | \node [draw, rectangle, minimum width = 1cm, minimum height = 1cm] (parc) at (11, 5) {}; 8 | \node [below] at (parc.south) {Parcela}; 9 | \draw [thick, ->, >=latex'] (1, -0.75) -- node [above] {Gradiente} +(8, 0); 10 | 11 | \draw[draw = none] (-0.5, -1) rectangle (12, 6.5); 12 | 13 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/plot_parametric.pgf: -------------------------------------------------------------------------------- 1 | %% http://tex.stackexchange.com/questions/65719/plotting-parametric-curves 2 | 3 | \pgfplotsset{ 4 | every axis/.append style={ 5 | axis x line=middle, % put the x axis in the middle 6 | axis y line=middle, % put the y axis in the middle 7 | axis line style={<->,color=blue}, % arrows on the axis 8 | xlabel={$x$}, % default put x on x-axis 9 | ylabel={$y$}, % default put y on y-axis 10 | }} 11 | 12 | \begin{tikzpicture} 13 | \begin{axis}[ 14 | xmin=-8,xmax=4, 15 | ymin=-8,ymax=4, 16 | grid=both] 17 | \addplot [domain=-3:3,samples=50] ({x^3-3*x},{3*x^2-9}); 18 | \end{axis} 19 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/serie_filecontents.pgf: -------------------------------------------------------------------------------- 1 | % http://tex.stackexchange.com/questions/94150/how-to-read-value-from-table-assign-to-variable-and-use-it-in-x-expr-thisrow 2 | 3 | \begin{filecontents}{data.dat} 4 | #time speed 5 | 3 5 6 | 4 3 7 | 5 6 8 | 6 4 9 | 7 0 10 | 8 1 11 | \end{filecontents} 12 | 13 | \begin{tikzpicture} 14 | \begin{axis}[ 15 | xlabel=time, 16 | ylabel=speed, 17 | x filter/.code={ 18 | \ifnum\coordindex=0 19 | \xdef\firstvalue{\pgfmathresult} 20 | \fi 21 | \pgfmathparse{\pgfmathresult-\firstvalue} 22 | }] 23 | 24 | \addplot[color=red, mark=square*] file {data.dat}; 25 | \end{axis} 26 | \end{tikzpicture} -------------------------------------------------------------------------------- /_check_pairs.R: -------------------------------------------------------------------------------- 1 | #!/usr/bin/Rscript 2 | 3 | #----------------------------------------------------------------------- 4 | 5 | pgf <- dir(path = "src", pattern = "\\.pgf$", full.names = FALSE) 6 | png <- dir(path = "src", pattern = "\\.png$", full.names = FALSE) 7 | 8 | fls <- setdiff(sub("\\.pgf$", "", pgf), 9 | sub("\\.png$", "", png)) 10 | if (length(fls)) { 11 | fls <- paste0(fls, ".pgf") 12 | cat("Arquivos PGF sem o correspondente PNG:", sep = "\n") 13 | cat(fls, sep = "\n") 14 | } else { 15 | cat("Nenhum arquivo está sem par.", sep = "\n") 16 | } 17 | 18 | 19 | #----------------------------------------------------------------------- 20 | -------------------------------------------------------------------------------- /src/barras_erro.pgf: -------------------------------------------------------------------------------- 1 | %% http://tex.stackexchange.com/questions/69445/using-pgfplots-why-do-i-get-undefined-control-sequence-when-trying-to-use-a-f 2 | 3 | \begin{tikzpicture} 4 | \begin{axis} 5 | \foreach \x/\y in {a/-1cm, b/0cm, c/1cm} { 6 | \edef\temp{ 7 | \noexpand\addplot+[ 8 | every error bar/.append style={xshift=\y}, 9 | every node/.style={xshift=\y}, 10 | error bars/y dir=both, 11 | error bars/y explicit] 12 | } 13 | \temp 14 | coordinates { 15 | (0, 0) +- (0, 1) 16 | (1, 0) +- (0, 1) 17 | (2, 0) +- (0, 1) 18 | }; 19 | } 20 | \end{axis} 21 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/textos_retangulos.pgf: -------------------------------------------------------------------------------- 1 | % http://tex.stackexchange.com/questions/70154/draw-only-part-of-a-rectangle-in-tikz 2 | 3 | \begin{tikzpicture} 4 | % first solution 5 | \node (label) at (0,5) {text with line in the middle from rectangle}; 6 | \draw[rounded corners=3pt] (label) -| (-5,-5) -| (5,5) -- (label); 7 | 8 | % second solution (with filled rectangle and node) 9 | \node[draw,fill=lime!10,rounded corners=3pt] (label) at (0,4) 10 | {text with line in the middle from rectangle}; 11 | 12 | \begin{scope}[on background layer] 13 | \draw[rounded corners=3pt, fill=red!10] 14 | (label) -| (-4,-4) -| (4,4) -- (label); 15 | \end{scope} 16 | 17 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/mindmapImovel.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | \path[mindmap, concept color=darkgreen, text=white] 3 | node[concept] {Pre\c{c}o de venda de um im\'ovel} [clockwise from=180] 4 | child[concept color=darkgreen!50, black] { 5 | node[concept] {\'{A}rea ($m^2$), Quartos, Garagem, Piscina} 6 | } 7 | child[concept color=darkgreen!70!blue, black] { 8 | node[concept] {Idade, Conserva\c{c}\~ao, Acabamento} 9 | } 10 | child[concept color=darkgreen!70!orange, black] { 11 | node[concept] {Localiza\c{c}\~ao, Acessos, Seguran\c{c}a} 12 | } 13 | child[concept color=darkgreen!70!purple, black] { 14 | node[concept] {\'{I}ndices econ\^omicos} 15 | }; 16 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/modelo_lactacao.pgf: -------------------------------------------------------------------------------- 1 | \def\bz{5} 2 | \def\bo{1} 3 | \def\bt{1} 4 | 5 | \begin{tikzpicture}[domain=-3:5, xscale=1.2, yscale=1.2, >=latex] 6 | \draw[->, line width=1pt] (0,0) -- (5,0) node[below] {$x$}; 7 | \draw[->, line width=1pt] (0,0) -- (0,3) node[left] {$f(x,\theta)$}; 8 | \draw[color=green!30!black, thick, smooth] 9 | plot[id=x, domain=0:4.5] 10 | function{\bz*x**\bo*exp(-\bt*x)}; 11 | \draw[dashed] (0, 1.85) node[left] {$\vartheta_y$} -| (\bo/\bt,0) 12 | node[below] {$\vartheta_x$}; 13 | \draw[color=red!90!black, smooth] 14 | plot[id=x, domain=0.15:1.85] 15 | function{1.85-1*(x-\bo/\bt)**2} 16 | node[below, color=black] {$\vartheta_a$}; 17 | \node[above] at (1, 1.85) {$\vartheta_p$}; 18 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/variance-of-estimators.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function = { 3 | normalpdf(\x,\mu,\sigma)= 4 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 5 | }, 6 | hplot/.style={ycomb, mark=o, dashed}] 7 | 8 | \begin{axis}[ 9 | width = 8cm, height = 6cm, 10 | ymax = 0.6, 11 | domain = -6:6, 12 | samples = 150, 13 | ticks = none, 14 | ] 15 | 16 | \addplot [smooth, thick, orange] {normalpdf(x, 0, 1)} 17 | node[pos = 0.55, pin = {right:$\hat{\theta}_1$}] {}; 18 | \addplot [smooth, thick, blue] {normalpdf(x, 0, 2)} 19 | node[pos = 0.7, pin = {45:$\hat{\theta}_2$}] {}; 20 | \addplot +[mark = none] coordinates {(0, 0) (0, 0.5)} node[above] {$\theta$}; 21 | 22 | \end{axis} 23 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/dist-gaussian.pgf: -------------------------------------------------------------------------------- 1 | \def\zright{1.645}% 2 | \def\muzero{0}% 3 | \def\muone{-1.95}% 4 | \pgfplotsset{% 5 | myplot/.style={ 6 | width=12cm, 7 | height=6cm, 8 | % xlabel=$z$, ylabel=$f(z)$, 9 | samples=50, 10 | legend style={draw=none, fill=none}, 11 | }% 12 | }% 13 | \begin{tikzpicture}[% 14 | >=stealth, 15 | every node/.style={rounded corners}, 16 | Red/.style={ 17 | draw=none, text opacity=1, fill=red!70!blue, fill opacity=0.75 18 | }, 19 | declare function={ 20 | normalpdf(\x,\mu,\sigma)= 21 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 22 | }] 23 | 24 | \begin{axis}[myplot, hide axis] 25 | \addplot[Red, draw, smooth, thick, domain=-4:4] 26 | {normalpdf(x,0,1)}; 27 | \end{axis} 28 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/cra-distporos.pgf: -------------------------------------------------------------------------------- 1 | \tikzset{state/.style={ 2 | rectangle, rounded corners, draw=black, thick, minimum height=2em, 3 | minimum width=7cm, inner sep=10pt, text centered, 4 | }, 5 | } 6 | 7 | \begin{tikzpicture}[->, >=latex, line width=0.75pt] 8 | \node[state] (cra) { 9 | $U(x) = U_r+\displaystyle\frac{U_s-U_r}{(1+\exp\{a+x\})^n)^m}$\\ 10 | }; 11 | \node[above of=cra] {Curva de reten\c{c}\~{a}o de \'{a}gua no solo}; 12 | \node[state, right of=cra, node distance=8cm] 13 | (dist) { 14 | $f(r) = \displaystyle\frac{nm\, (2\gamma\,\exp\{a\}/r)^n}{ 15 | r(1+(2\gamma\,\exp\{a\}/r)^n)^{m+1}}$\\ 16 | }; 17 | \node[above of=dist] {Distribui\c{c}\~{a}o do tamanho de poros}; 18 | \path (cra) edge[<->, bend right=30] node[below] {} (dist); 19 | \end{tikzpicture} -------------------------------------------------------------------------------- /_deploy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd site/ 4 | hugo 5 | 6 | # Tree of the directories. 7 | echo "------------------------------------------------------------------------" 8 | echo "Directory tree.\n" 9 | tree -h -F public/ -L 1 10 | # tree -h -F _site/slides 11 | # tree -h -F _site/scripts 12 | # tree -h -F _site/tutorials 13 | 14 | # Upload. 15 | echo "------------------------------------------------------------------------" 16 | echo "Uploading files to server.\n" 17 | rsync -avzp \ 18 | ./public/ \ 19 | --progress \ 20 | --rsh="ssh -p$PATAXOP" "$PATAXO:~/public_html/Tikz/" 21 | 22 | # Vist the homepage. 23 | echo "------------------------------------------------------------------------" 24 | echo "Visiting the webpage.\n" 25 | firefox http://leg.ufpr.br/~walmes/Tikz 26 | -------------------------------------------------------------------------------- /src/reg_proj.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | yshift=-1.3, xshift=0.7, >=stealth, 3 | axis/.style={->}, 4 | vec/.style={thick, ->}, 5 | every node/.style={color=black}] 6 | 7 | \coordinate (O) at (0,0,0); 8 | \draw[dotted, draw=darkgreen, fill=darkgreen!20] 9 | (-2,0,-3.5) -- (3,0,-3.5) -- (4,0,3) -- (-1,0,3) -- cycle; 10 | \draw[axis] (O) -- +(3, 0, 0); 11 | \draw[axis] (O) -- +(0, 2, 0); 12 | \draw[axis] (O) -- +(0, 0, 2); 13 | %% Vetor y. 14 | \draw[vec, color=red] (O) -- (3.4, 4, 5.1) 15 | node [above right] {$y = (3.4, 4, 5.1)^\top$}; 16 | %% Colunas de X. 17 | \draw[vec, darkgreen] (O) -- (1, 1, 1) 18 | node [right] {$X_1 = (1, 1, 1)^\top$}; 19 | \draw[vec, darkgreen] (O) -- (0, 1, 2) 20 | node [left] {$X_2 = (0,1,2)^\top$}; 21 | \end{tikzpicture} 22 | -------------------------------------------------------------------------------- /src/explicacao.pgf: -------------------------------------------------------------------------------- 1 | \tikzstyle{every picture}+=[remember picture] 2 | \newcommand{\nann}[2]{% 3 | \tikz[baseline] {% 4 | \node[% 5 | anchor=base,% 6 | inner sep=0pt,% 7 | outer sep=0pt,% 8 | % fill=green% 9 | ] (#1) {#2};% 10 | }% 11 | } 12 | 13 | \begin{tikzpicture}[ 14 | every path/.style={rounded corners, shorten <=3pt, >=stealth}, 15 | every node/.style={rounded corners=false}] 16 | 17 | \node { 18 | \begin{minipage}{10cm} 19 | {\tt sed s/\nann{regex}{regex}/\nann{repl}{replacement}/g \nann{txt}{text.txt}} 20 | \end{minipage} 21 | }; 22 | \path[->, draw] (regex.south) |- ++(1,-1) node[right] {REGEX}; 23 | \path[->, draw] (repl.north) |- ++(1,1) node[right] {REPL}; 24 | \path[->, draw] (txt.east) -| ++(1,1) node[above] {FILE}; 25 | \end{tikzpicture} 26 | -------------------------------------------------------------------------------- /src/modelo_lactacao_rep.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[xscale=4, yscale=3, >=latex, domain=0:1.3] 2 | \def\vy{0.8}; \def\vx{0.4}; \def\th{4} 3 | \filldraw[-, color=darkgreen!10, samples=50] plot[id=x] 4 | function{\vy*(x/\vx)**\th*exp(\th*(1-x/\vx))} -- (1.3,0); 5 | \draw[->] (0,0) -- (1.4,0); 6 | \draw[->] (0,0) -- (0,1); 7 | \draw[-, color=darkgreen, thick, samples=50] plot[id=x] 8 | function{\vy*(x/\vx)**\th*exp(\th*(1-x/\vx))}; 9 | \draw[<->,dashed] (\vx,0) |- (0,\vy); 10 | \draw[dashed, color=black, smooth] plot[id=x, domain=0.2:0.6] 11 | function{\vy-8*(x-\vx)**2}; 12 | \node[left] at (\vx-0.2, \vy-0.3) {$\vartheta_p$}; 13 | \node[left] at (0,\vy) {$\vartheta_y$}; 14 | \node[below] at (\vx,0) {$\vartheta_x$}; 15 | \node[left] at (\vx+0.2,\vy-0.5) {$\vartheta_a$}; 16 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/dist_continous.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function = { 3 | weibullpdf(\x,\a,\b) = (\b/\a)*(\x/\a)^(\b-1)*exp(-(\x/\a)^(\b)); 4 | }] 5 | 6 | \def\parA{\delta} 7 | \def\parB{\beta} 8 | \def\va{y} 9 | 10 | \begin{axis}[ 11 | width = 8cm, height = 8cm, 12 | samples = 50, smooth, domain = 0:5, 13 | % xlabel = $\va$, ylabel = $f(\va)$, 14 | yticklabels = {}, xticklabels = {}, 15 | % xlabel style = {at = {(1,0)}, anchor = north west}, 16 | % ylabel style = {rotate = -90, at = {(0,1)}, anchor = south east}, 17 | legend style = {draw = none, fill = none}, 18 | clip = false] 19 | 20 | \addplot[black, thick] {weibullpdf(x, 1, 1)}; 21 | \addplot[cyan, thick] {weibullpdf(x, 3, 6)}; 22 | \addplot[orange, thick] {weibullpdf(x, 2, 3)}; 23 | \end{axis} 24 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/reg_matriz_polin.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | mtx/.style={ 3 | matrix of math nodes, 4 | left delimiter={[}, 5 | right delimiter={]} 6 | }, 7 | subtxt/.style={below, font=\footnotesize}] 8 | 9 | \matrix[mtx] (X) {% 10 | 1 & x_{1} & x_{1}^2 & \ldots & x_{1}^k \\ 11 | 1 & x_{2} & x_{1}^2 & \ldots & x_{2}^k \\ 12 | \vdots & & & \ddots & \vdots \\ 13 | 1 & x_{n} & x_{1}^2 & \ldots & x_{n}^k \\ 14 | }; 15 | \matrix[right=0.5cm of X] (beta) [mtx]{% 16 | \beta_0 \\ \beta_1 \\ \vdots \\ \beta_k\\ 17 | }; 18 | \node[xshift=0.6cm, above=2ex of X] (mod) 19 | {$f(x) = \beta_0+\beta_1 x+\beta_2 20 | x^2+\cdots+\beta_k x^k = X\beta$}; 21 | \node[subtxt, align=center] at (X.south) {$n\times p$\\ $(p=k+1)$}; 22 | \node[subtxt] at (beta.south) {$p\times 1$}; 23 | \end{tikzpicture} 24 | -------------------------------------------------------------------------------- /src/dispersao_filecontents.pgf: -------------------------------------------------------------------------------- 1 | \begin{filecontents*}{temp.dat} 2 | 1 1 100 3 | 2 2 200 4 | 3 3 300 5 | 4 4 400 6 | 5 5 500 7 | 6 6 600 8 | 7 7 700 9 | 8 8 800 10 | 9 9 900 11 | 10 10 1000 12 | \end{filecontents*} 13 | 14 | \begin{tikzpicture} 15 | \begin{axis}[% 16 | width=4.5in, 17 | height=3.5in, 18 | scale only axis, 19 | xmin=0, 20 | xmax=10, 21 | ymin=0, 22 | ymax=10, 23 | axis x line*=bottom, 24 | axis y line*=left] 25 | \addplot[% 26 | scatter=true, 27 | only marks, 28 | mark=*, 29 | color=blue, 30 | point meta=explicit symbolic, 31 | scatter/@pre marker code/.style={ 32 | /tikz/mark size=\pgfplotspointmeta/50}, 33 | scatter/@post marker code/.style={} 34 | ] table [meta index=2] {temp.dat}; 35 | \end{axis} 36 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/diagrama_venn3.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | scale=0.5, 3 | mycircle/.style={ 4 | draw, circle, fill=darkgreen, fill opacity=0.5, minimum width=2cm 5 | }] 6 | % \draw[help lines] (0,0) grid (8,6); 7 | \draw (0,0) rectangle (8,6.5); 8 | \node[mycircle, label={[anchor=north]above right:$A$}] at (5,3) {}; 9 | \node[mycircle, label={[anchor=north]below left:$B$}] at (3,3) {}; 10 | \fill[darkgreen] (2.5,4) circle (3pt) node [above, color=black] {$1$}; 11 | \fill[darkgreen] (2.5,2) circle (3pt) node [above, color=black] {$3$}; 12 | \fill[darkgreen] (5.5,3) circle (3pt) node [above, color=black] {$6$}; 13 | \fill[darkgreen] (4,2.5) circle (3pt) node [above, color=black] {$4$}; 14 | \fill[darkgreen] (4,3.5) circle (3pt) node [above, color=black] {$2$}; 15 | \fill[darkgreen] (3,5.5) circle (3pt) node [above, color=black] {$5$}; 16 | \end{tikzpicture} 17 | -------------------------------------------------------------------------------- /src/plot_logaxis.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | \begin{loglogaxis}[ 3 | xlabel=Cost, 4 | ylabel=Error] 5 | \addplot[color=red, mark=x] coordinates { 6 | (5, 8.31160034e-02) 7 | (17, 2.54685628e-02) 8 | (49, 7.40715288e-03) 9 | (129, 2.10192154e-03) 10 | (321, 5.87352989e-04) 11 | (769, 1.62269942e-04) 12 | (1793, 4.44248889e-05) 13 | (4097, 1.20714122e-05) 14 | (9217, 3.26101452e-06) 15 | }; 16 | \legend{Case 1,Case 2} 17 | \end{loglogaxis} 18 | \end{tikzpicture} 19 | 20 | \begin{tikzpicture} 21 | \begin{axis}[ 22 | xlabel=Cost, 23 | ylabel=Error] 24 | \addplot[color=red,mark=x] coordinates { 25 | (2,-2.8559703) 26 | (3,-3.5301677) 27 | (4,-4.3050655) 28 | (5,-5.1413136) 29 | (6,-6.0322865) 30 | (7,-6.9675052) 31 | (8,-7.9377747) 32 | }; 33 | \end{axis} 34 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/confidence-interval-mean-components.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[>=stealth'] 2 | 3 | \begin{scope}[scale = 2] 4 | 5 | \def\zval{1.65} 6 | 7 | \draw[|-|, thick] (-\zval, 1) -- (\zval, 1); 8 | \draw[fill = green] (0, 1) circle (1pt); 9 | \node[below = 1ex] at (0, 1) {$\overline{y}$}; 10 | \node[below] at (-\zval, 1) {$\overline{y} - \textcolor{cyan}{z_{\alpha/2}}\cdot \sigma/\sqrt{n}$}; 11 | \node[below] at (\zval, 1) {$\overline{y} + \textcolor{orange}{z_{\alpha/2}}\cdot \sigma/\sqrt{n}$}; 12 | 13 | \draw [yshift = 1ex, decorate, decoration = {brace, amplitude = 5pt}] (-\zval, 1) -- (0, 1) 14 | node [black, midway, yshift = 1.5em] {$e = z_{\alpha/2}\cdot \sigma/\sqrt{n}$}; 15 | 16 | \draw [yshift = 1ex, decorate, decoration = {brace, amplitude = 5pt}] (-\zval, 1.5) -- (\zval, 1.5) 17 | node [black, midway, yshift = 1.5em] {$2e$}; 18 | 19 | \end{scope} 20 | 21 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/text_zoom.pgf: -------------------------------------------------------------------------------- 1 | % http://tex.stackexchange.com/questions/184911/magnify-text-using-spy-library 2 | 3 | \tikzset{ 4 | fancytitle/.style={fill=red, text=white, rounded corners}, 5 | mybox/.style={ 6 | draw=red, fill=blue!20, very thick, 7 | rectangle, rounded corners, inner sep=10pt, inner ysep=20pt 8 | } 9 | } 10 | 11 | \begin{tikzpicture}[ 12 | spy using outlines={ 13 | rectangle, magnification=2, size=4.5cm, height=2cm, connect spies 14 | }] 15 | \node [mybox] (box){% 16 | \begin{minipage}{0.50\textwidth} 17 | The Indexed Web contains at least 4.96 billion 18 | pages (as of Wednesday, 11 June, 2014). -- WorldWideWebSize.com 19 | \end{minipage} 20 | }; 21 | \node[fancytitle, right=10pt] at (box.north west) {Did you know?}; 22 | \node[fancytitle, rounded corners] at (box.east) {$\clubsuit$}; 23 | \spy[red] on (-2.1,.25) in node[right] at (-1,-2); 24 | \end{tikzpicture}% 25 | -------------------------------------------------------------------------------- /src/mean-square-error-of-estimators.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function = { 3 | normalpdf(\x,\mu,\sigma)= 4 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 5 | }, 6 | hplot/.style={ycomb, mark=o, dashed}] 7 | 8 | \begin{axis}[ 9 | width = 8cm, height = 6cm, 10 | ymax = 0.6, 11 | domain = -6:6, 12 | samples = 150, 13 | ticks = none, 14 | ] 15 | 16 | \addplot [smooth, thick, orange] {normalpdf(x, 1, 1)} 17 | node[pos = 0.65, pin = {right:$\hat{\theta}_1$}] {}; 18 | \addplot [smooth, thick, blue] {normalpdf(x, 0, 2)} 19 | node[pos = 0.3, pin = {135:$\hat{\theta}_2$}] {}; 20 | \addplot +[mark = none] coordinates {(0, 0) (0, 0.5)} node[above] {$\theta$}; 21 | \addplot +[mark = none, thick, blue] coordinates {(0, 0) (0, 0.2)}; 22 | \addplot +[mark = none, thick, orange] coordinates {(1, 0) (1, 0.4)}; 23 | 24 | \end{axis} 25 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/sylvester-4-point-problem.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[scale = 3] 2 | 3 | \begin{scope} 4 | \path[draw = gray!90] (-1, 0) edge[out = -75, in = -90] (+1, 0); 5 | \path[draw = gray!90] (+1, 0) edge[out = 90, in = 105] (-1, 0); 6 | \draw[fill = black, draw = black] 7 | (-0.50, 0 ) circle (1pt) -- 8 | (+0.25, +0.25) circle (1pt) -- 9 | (+0.50, -0.25) circle (1pt) -- 10 | (+0, -0.30) circle (1pt) -- (-0.5, 0); 11 | \end{scope} 12 | 13 | \begin{scope}[xshift = 2.5cm] 14 | \path[draw = gray!90] (-1, 0) edge[out = -75, in = -90] (+1, 0); 15 | \path[draw = gray!90] (+1, 0) edge[out = 90, in = 105] (-1, 0); 16 | \draw[fill = black, draw = black] 17 | (-0.50, 0 ) circle (1pt) -- 18 | (+0.25, +0.25) circle (1pt) -- 19 | (+0, -0.30) circle (1pt) -- (-0.5, 0); 20 | \draw[fill = black, draw = black] (+0.0, -0.0) circle (1pt); 21 | \end{scope} 22 | 23 | \end{tikzpicture} 24 | -------------------------------------------------------------------------------- /src/dist_discrete.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | poispf(\k,\l) = exp(-\l)*(\l^\k)/(\k!); 4 | }, 5 | hplot/.style={ycomb, mark=o}] 6 | 7 | \begin{axis}[ 8 | width=8cm, height=8cm, 9 | % xlabel=$x$, ylabel=$p(x)$, 10 | yticklabels = {}, xticklabels = {}, 11 | xlabel style={at={(1,0)}, anchor=north west}, 12 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 13 | legend style={draw=none, fill=none, font=\footnotesize}, 14 | legend cell align=left, 15 | samples at={0,1,...,50}, 16 | yticklabel style={ 17 | /pgf/number format/fixed, 18 | /pgf/number format/fixed zerofill, 19 | % /pgf/number format/precision=2 20 | }] 21 | 22 | \addplot[hplot, black] {poispf(x, 5)}; 23 | \addplot[hplot, red] {poispf(x, 10)}; 24 | \addplot[hplot, blue] {poispf(x, 20)}; 25 | \addplot[hplot, green] {poispf(x, 30)}; 26 | 27 | \end{axis} 28 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/dist_unifdis.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | unifdispf(\k,\n)=1/\n; 4 | }, 5 | hplot/.style={ycomb, mark=o}] 6 | 7 | \begin{axis}[ 8 | width=8cm, height=6cm, 9 | xlabel=$x$, ylabel=$p(x)$, 10 | xlabel style={at={(1,0)}, anchor=north west}, 11 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 12 | legend style={draw=none, fill=none, font=\footnotesize}, 13 | legend cell align=left, 14 | ymin=-0.02, ymax=0.25, 15 | xtick={1,2,...,10}, 16 | ytick={0, 0.1, 0.166}, 17 | yticklabels={0,$\frac{1}{10}$,$\frac{1}{6}$}] 18 | 19 | \addplot[hplot, samples at={1,2,...,6}] 20 | (x-0.07, {unifdispf(x, 6)}); 21 | \addlegendentry{$n=6$}; 22 | \addplot[hplot, samples at={1,2,...,10}, red] 23 | (x+0.07, {unifdispf(x, 10)}); 24 | \addlegendentry{$n=10$}; 25 | \node at (axis description cs: 0.5, 0.85) {$p(x) = \frac{1}{n}$}; 26 | \end{axis} 27 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/variavel_aleatoria1.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | \draw (0,0) rectangle (3,3) node[above right] at (0,0) {$\Omega$}; 3 | \node[above] at (1.5,3) {elementos de $\Omega$}; 4 | \node (CC) at (2,2) {}; 5 | \node (CK) at (1,2) {}; 6 | \node (KC) at (2,1) {}; 7 | \node (KK) at (1,1) {}; 8 | \node[left, text width=3em, text centered] (arrowstart) at (-2,-2) 9 | {valores de $X$}; 10 | \node (arrowend) at (5,-2) {$\mathbb{R}$}; 11 | \draw (CC) circle (2pt) node[above] {CC}; 12 | \draw (KC) circle (2pt) node[above] {KC}; 13 | \draw (CK) circle (2pt) node[above] {CK}; 14 | \draw (KK) circle (2pt) node[above] {KK}; 15 | \draw[->] (arrowstart) -- (arrowend); 16 | \foreach \x/\y in {0/0,2/1,4/2} 17 | \draw (\x,-1.8) -- (\x,-2) node[anchor=north] {\y}; 18 | \path[->,>=stealth'] 19 | (CC) edge[bend left] (4,-2) 20 | (CK) edge[bend left=25] (2,-2) 21 | (KC) edge[bend left] (2,-2) 22 | (KK) edge[bend left] (0,-2); 23 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/diagrama_venn2.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | \draw[thick] (0,0) rectangle (8,5); 3 | \draw[thick, color=darkgreen, fill] (4,2.5) ellipse (2.7cm and 1.7cm); 4 | \draw[thick] (0,0) .. controls (1,1) and (3,1) .. (2,5); 5 | \draw[thick] (0,5) .. controls (1,1) and (3,1) .. (2,0); 6 | \draw[thick] (3,0) .. controls (2,1) and (4,1) .. (2,5); 7 | \draw[thick] (4,5) .. controls (2,4) and (4,1) .. (5,0); 8 | \draw[thick] (4,0) .. controls (3,4) and (4,4) .. (8,0); 9 | \draw[thick] (5,5) .. controls (3,4) and (4,3) .. (6,0); 10 | \draw[thick] (7,5) .. controls (7,4) and (8,3) .. (6,0); 11 | \node (n1) at (6,4) {\textcolor{darkgreen}{$A$}}; 12 | \node (n2) at (0.7,2) {$B_1$}; 13 | \node (n3) at (1,4) {$B_2$}; 14 | \node (n2) at (2.5,2) {$B_3$}; 15 | \node (n3) at (1.5,0.5) {$B_4$}; 16 | \node (n2) at (3.3,0.3) {$B_5$}; 17 | \node (n3) at (4.2,2) {$\cdots$}; 18 | \node (n2) at (7,0.3) {$B_{n-1}$}; 19 | \node (n3) at (7.5,2) {$B_n$}; 20 | \end{tikzpicture} 21 | -------------------------------------------------------------------------------- /src/diagrama_venn5.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[node distance=0.8cm, scale=0.9] 2 | \def\evA{(1.8,0) -- (3,5) -- (0,5) -- (0,0)} 3 | \def\evB{(2,2.5) ellipse (0.7cm and 0.3cm)} 4 | \draw (0,0) -- (0,5) -- (8,5) -- (8,0) -- (0,0); 5 | \draw[color=darkgreen, fill=darkgreen!25] \evB; 6 | \draw \evA; 7 | \begin{scope} 8 | \clip \evA; 9 | \fill[fill=darkgreen!75] \evB; 10 | \end{scope} 11 | \node (n1) at (2,3) {\textcolor{darkgreen}{$F$}}; 12 | \node (n2) at (1,4) {$H$} node[below of=n2, 13 | label={\tiny$P(H)=0.2$}]{}; 14 | \node (n3) at (7,4) {$H^c$} node[below of=n3, 15 | label={\tiny$P(H^c)=0.8$}]{}; 16 | \node (q1) at (3,1) {$F\cap H$} node[below of=q1, 17 | label={\tiny$P(F\cap H)=0.02$}]{}; 18 | \node (q2) at (4,2) {$F\cap H^c$} node[below of=q2, 19 | label={\tiny$P(F\cap H^c)=0.004$}]{}; 20 | \path[->,>=stealth'] (1.4,2.5) edge[bend right] node [left] {} 21 | (q1.west) (2.4,2.5) edge[bend right] node [left] {} (q2.west); 22 | \end{tikzpicture} 23 | -------------------------------------------------------------------------------- /src/michaelis_menten2.pgf: -------------------------------------------------------------------------------- 1 | \def\xs{0.6} 2 | \def\ys{0.8} 3 | 4 | \def\thetaA{2} 5 | \def\thetaV{0.5} 6 | 7 | 8 | \begin{tikzpicture}[xscale=\xs, yscale=\ys, >=latex] 9 | \begin{scope} 10 | \draw[->] (0,0) -- (5,0) node[below] {$x$}; 11 | \draw[->] (0,0) -- (0,2.5) node[left] {$f(x)$}; 12 | \foreach \thetaAA in {1.6,2,2.4} 13 | \draw[color=blue, thick, smooth] 14 | plot[id=x, domain=0:4.8] 15 | function{\thetaAA * x/(\thetaV + x)}; 16 | \draw[->] (3, 1) -- +(0, 1.5) 17 | node[above] {$\theta_a$}; 18 | \end{scope} 19 | 20 | \begin{scope}[xshift=6.5cm] 21 | \draw[->] (0,0) -- (5,0) node[below] {$x$}; 22 | \draw[->] (0,0) -- (0,2.5) node[left] {$f(x)$}; 23 | \foreach \thetaVV in {0.2,0.6,1} 24 | \draw[color=blue, thick, smooth] 25 | plot[id=x, domain=0:4.8] 26 | function{\thetaA * x/(\thetaVV + x)}; 27 | \draw[->] (-0.5, 1) -- +(2.5, 0) 28 | node[below] {$\theta_v$}; 29 | \end{scope} 30 | \end{tikzpicture} 31 | -------------------------------------------------------------------------------- /src/onda_3d.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | x={(0.866cm,-0.5cm)}, 3 | y={(0.866cm,0.5cm)}, 4 | z={(0cm,1cm)}, 5 | scale=1.0, 6 | % Option for nice arrows 7 | >=stealth, % 8 | inner sep=0pt, outer sep=2pt,% 9 | axis/.style={thick,->}, 10 | wave/.style={thick,color=#1,smooth}, 11 | polaroid/.style={fill=black!60!white, opacity=0.3}] 12 | 13 | % Colors 14 | \colorlet{darkgreen}{green!50!black} 15 | \colorlet{lightgreen}{green!80!black} 16 | \colorlet{darkred}{red!50!black} 17 | \colorlet{lightred}{red!80!black} 18 | 19 | % Frame 20 | \coordinate (O) at (0, 0, 0); 21 | \draw[axis] (O) -- +(14, 0, 0) node [right] {x}; 22 | \draw[axis] (O) -- +(0, 2.5, 0) node [right] {y}; 23 | \draw[axis] (O) -- +(0, 0, 2) node [above] {z}; 24 | \draw[thick,dashed] (-2,0,0) -- (O); 25 | 26 | % Electric field vectors 27 | \draw[wave=blue, variable=\x,samples at={0,0.25,...,10}] 28 | plot (\x,{sin(2*\x r)},0)node[anchor=north]{$\vec{E}$}; 29 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/fatorial_fracionado.pgf: -------------------------------------------------------------------------------- 1 | \tikzstyle{vertex1}=[ 2 | rectangle, minimum size=12pt, inner sep=1pt, fill=gray!10] 3 | \tikzstyle{vertex2}=[ 4 | rectangle, minimum size=12pt, inner sep=1pt, fill=gray!90] 5 | \tikzstyle{edge}=[draw,thick,-,black] 6 | 7 | \begin{tikzpicture}[ 8 | xscale=2.2, yscale=2.1, ->, thick, 9 | z={(0.45,0.35)}, node distance=0.65cm] 10 | \node[vertex1] (v0) at (0,0,0) {$(1) = 550$}; 11 | \node[vertex2] (v1) at (0,1,0) {$cd = 1075$}; 12 | \node[vertex2] (v2) at (1,0,0) {$ad = 749$}; 13 | \node[vertex1] (v3) at (1,1,0) {$ac = 642$}; 14 | \node[vertex2] (v4) at (0,0,1) {$bd = 1052$}; 15 | \node[vertex1] (v5) at (0,1,1) {$bc = 601$}; 16 | \node[vertex1] (v6) at (1,0,1) {$ab = 650$}; 17 | \node[vertex2] (v7) at (1,1,1) {$abcd = 729$}; 18 | \draw[edge] (v0) -- (v1) -- (v3) -- (v2) -- (v0); 19 | \draw[edge] (v0) -- (v4) -- (v5) -- (v1); 20 | \draw[edge] (v2) -- (v6) -- (v7) -- (v3); 21 | \draw[edge] (v4) -- (v6); \draw[edge] (v5) -- (v7); 22 | \end{tikzpicture} 23 | -------------------------------------------------------------------------------- /src/fatorial_ponto_central.pgf: -------------------------------------------------------------------------------- 1 | \def\dist{1.5} 2 | \tikzstyle{vertex1}=[ 3 | rectangle, minimum size=12pt, inner sep=1pt, fill=gray!10] 4 | \tikzstyle{edge}=[draw,thick,-,black] 5 | 6 | \begin{tikzpicture}[ 7 | xscale=1.5, yscale=1.5, ->, thick, node distance=0.65cm] 8 | \draw[<->] (-\dist,\dist) node[above left] {RP} |- 9 | (\dist,-\dist) node[below right] {T}; 10 | \node[left] at (-\dist,-1) {1.1}; 11 | \node[left] at (-\dist,0) {1.2}; 12 | \node[left] at (-\dist,1) {1.3}; 13 | \node[below] at (-1,-\dist) {-225}; 14 | \node[below] at (0,-\dist) {-220}; 15 | \node[below] at (1,-\dist) {-215}; 16 | \node[vertex1] (1) at (-1,-1) {$82.8$}; 17 | \node[vertex1] (a) at (1,-1) {$84.7$}; 18 | \node[vertex1] (b) at (-1,1) {$83.5$}; 19 | \node[vertex1] (ab) at (1,1) {$85.0$}; 20 | \node[vertex1] (0) at (0,0) { 21 | \begin{tabular}{c} 22 | 84.1 \\ 84.5 \\ 83.9 \\ 84.3 23 | \end{tabular} 24 | }; 25 | \draw[edge] (1) -- (a) -- (ab) -- (b) -- (1); 26 | \end{tikzpicture} 27 | -------------------------------------------------------------------------------- /src/serie_coordinate.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | \begin{axis}[ 3 | width=0.8\textwidth, height=0.6\textwidth, 4 | axis x line=bottom, 5 | axis y line=left, 6 | xmin=1934, xmax=2012, 7 | ymin=0, ymax=620, 8 | xlabel={Year}, 9 | ylabel={Number of failed banks}, 10 | xlabel near ticks, 11 | ylabel near ticks, 12 | xticklabel style={/pgf/number format/1000 sep=}] 13 | 14 | \addplot [color=red, mark=x] coordinates { 15 | (1988,232) 16 | (1989,531) 17 | (1990,381) 18 | (1991,268) 19 | (1992,179) 20 | (1993,50) 21 | (1994,15) 22 | (1995,8) 23 | (1996,6) 24 | (1997,1) 25 | (1998,3) 26 | (1999,8) 27 | (2000,7) 28 | (2001,4) 29 | (2002,11) 30 | (2003,3) 31 | (2004,4) 32 | (2005,0) 33 | (2006,0) 34 | (2007,3) 35 | (2008,25) 36 | (2009,140) 37 | (2010,157) 38 | (2011,92) 39 | (2012,49) 40 | }; 41 | \end{axis} 42 | \end{tikzpicture} 43 | -------------------------------------------------------------------------------- /src/herschel.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[>=latex, xscale=4, yscale=4] 2 | \draw[<->] (-0.01,1.2) |- (1.1,0); 3 | \draw[-, color=green!30!black, thick] 4 | plot[id=x, domain=0:1] 5 | function{1.1-1*x**exp(1.5)} node[right] {}; 6 | \draw[-, color=green!60!black, thick, samples=100] 7 | plot[id=x, domain=0:1] 8 | function{1.1-1*x**exp(-1.5)} node[right] {}; 9 | \draw[-, color=green!90!black, thick, dotted] 10 | plot[id=x, domain=0:1] 11 | function{1.1-1*x**exp(0)} node[right] {}; 12 | \node[left] at (0,1.1) {$\theta_0$}; 13 | \node[below] at (0,0) {$0$}; 14 | \node[left] at (0,0) {$0$}; 15 | \node[below] at (1,0) {$1$}; 16 | \draw[|<->|] (1.2,1.1) -- (1.2,1.1-1) 17 | node[midway, right] {$\theta_1$}; 18 | \draw[->] (0.25,0.25) node[below] {$\theta_c<0$} -- (0.9,0.9) 19 | node[above] {$\theta_c>0$}; 20 | \draw[-, dashed] (0,0.9) 21 | node[left] {$\theta_0-q$} -- +(0.7,0); 22 | \draw[-, dashed] (0.7,0.9) -- +(0,-0.9) 23 | node[below] {$\vartheta_q$}; 24 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/ibs.pgf: -------------------------------------------------------------------------------- 1 | % Para fazer o quadrado. 2 | \newcommand{\thesquare}[3]{% 3 | \def\dmin{0.04} 4 | \def\dmax{0.96} 5 | \draw[xshift = #1, yshift = #2, fill = #3] 6 | (\dmin, \dmin) -- (\dmax, \dmin) -- 7 | (\dmax, \dmax) -- (\dmin, \dmax) -- (\dmin, \dmin); 8 | }% 9 | % 10 | % Definicao das cores. 11 | \definecolor{v3}{HTML}{0071FD}% 12 | \definecolor{v2}{HTML}{7FB7FF}% 13 | \definecolor{v1}{HTML}{FFFFFF}% 14 | % 15 | \begin{tikzpicture} 16 | \def\dist{0cm} 17 | \thesquare{\dist}{2cm}{v3} 18 | \thesquare{\dist}{3cm}{v2} 19 | \thesquare{\dist}{4cm}{v1} 20 | 21 | \def\dist{1cm} 22 | \thesquare{\dist}{2cm}{v2} 23 | \thesquare{\dist}{3cm}{v1} 24 | \thesquare{\dist}{4cm}{v2} 25 | 26 | \def\dist{2cm} 27 | \thesquare{\dist}{2cm}{v1} 28 | \thesquare{\dist}{3cm}{v2} 29 | \thesquare{\dist}{4cm}{v3} 30 | 31 | \node[color = black] at (0.5, 4.5) {\Huge \textbf I}; 32 | \node[color = black] at (1.5, 3.5) {\Huge \textbf B}; 33 | \node[color = black] at (2.5, 2.5) {\Huge \textbf S}; 34 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/ubuntu.pgf: -------------------------------------------------------------------------------- 1 | % http://tex.stackexchange.com/questions/250198/draw-the-ubuntu-logo-with-tikz 2 | 3 | \begin{tikzpicture} 4 | 5 | \pgfdeclarelayer{fg} 6 | \pgfsetlayers{main,fg} 7 | \newcommand\rad{3cm} 8 | \definecolor{myred}{RGB}{212,0,0} 9 | \definecolor{myorange}{RGB}{244,72,0} 10 | \definecolor{myyellow}{RGB}{251,139,0} 11 | 12 | \newcommand{\hug}[3]{ 13 | \begin{scope}[shift={(0,0)}, rotate=#1]% 14 | \draw[#2, line width=1.5cm] (\rad,0) arc (0:120:\rad)% 15 | node[circle, fill=#3, minimum size=1.9cm,% 16 | draw=white, line width=2.8mm] at (57.5:\rad*1.3) {};% 17 | \begin{pgfonlayer}{fg}% 18 | \node[rectangle, fill=white, rotate=#1,% 19 | minimum height=3mm, minimum width=1.6cm] at (\rad,0) {};% 20 | \end{pgfonlayer}% 21 | \end{scope}% 22 | } 23 | 24 | \foreach \angle/\cola/\colb in { 25 | 0/myorange/myred, 26 | 120/myyellow/myorange, 27 | 240/myred/myyellow}{ 28 | \hug{\angle}{\cola}{\colb} 29 | } 30 | 31 | \end{tikzpicture} 32 | -------------------------------------------------------------------------------- /src/confidence-interval-variance-components.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[>=stealth'] 2 | 3 | \begin{scope}[scale = 2] 4 | 5 | \def\chiLeft{3} 6 | \def\chiRight{5.5} 7 | \def\sigmasquare{4} 8 | 9 | \draw[|-, dashed] (0, 1) node[below] {$0$} -- (\chiLeft, 1); 10 | \draw[|-|, thick] (\chiLeft, 1) -- (\chiRight, 1); 11 | \draw[fill = green] (\sigmasquare, 1) circle (1pt); 12 | \node[below = 1ex] at (\sigmasquare, 1) {$\sigma^2$}; 13 | \node[below] at (\chiLeft, 1) {$\dfrac{(n - 1) s^2}{\chi^2_{\alpha/2, n - 1}}$}; 14 | \node[below] at (\chiRight, 1) {$\dfrac{(n - 1) s^2}{\chi^2_{1 - \alpha/2, n - 1}}$}; 15 | 16 | \draw [yshift = 1ex, decorate, decoration = {brace, amplitude = 5pt}] (0, 1) -- (\sigmasquare, 1) 17 | node [black, midway, yshift = 1.5em] {$\sigma^2$}; 18 | 19 | \draw [yshift = 1ex, decorate, decoration = {brace, amplitude = 5pt}] (\chiLeft, 1.25) -- (\chiRight, 1.25) 20 | node [black, midway, yshift = 1.5em] {$\rho \sigma^2$}; 21 | 22 | \end{scope} 23 | 24 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/eqn_estat_t.pgf: -------------------------------------------------------------------------------- 1 | \def\hd{0.7} 2 | \def\vd{0.7} 3 | \newcommand{\tm}[1]{\tikz[overlay, anchor=base] \node[red] (#1) {};} 4 | 5 | \tikzstyle{every picture}+=[remember picture] 6 | 7 | \begin{tikzpicture}[ 8 | >=stealth, 9 | every path/.style={->, color=darkgreen, thin, rounded corners}, 10 | every node/.style={color=black}, 11 | bx/.style={ 12 | % text width=2.5cm, 13 | font=\footnotesize, 14 | minimum height=4ex}, 15 | bxl/.append style={bx, 16 | left, 17 | align=flush right}, 18 | bxr/.append style={bx, 19 | right, 20 | align=flush left}] 21 | 22 | \node {$\tm{Z}t = \dfrac{\tm{bX}\bar{X}-\mu}{\sqrt{\tm{S}S^2/n}} 23 | \sim t_{n-1},$}; 24 | \draw (Z)+(0.5ex,2.5ex) |- +(-\vd,\hd) 25 | node[bxl] {$\sim \text{t de Student}$}; 26 | \draw (bX)+(0.5ex,2.5ex) |- +(\vd,\hd) 27 | node[bxr] {$\frac{\bar{X}-\mu}{\sigma/\sqrt{n}}\sim 28 | \text{Normal}(0,1)$}; 29 | \draw (S)+(0.5ex,-1ex) |- +(\vd,-\hd) 30 | node[bxr] {$(n-1)\frac{S^2}{\sigma^2}\sim \chi^2_{n-1}$}; 31 | \end{tikzpicture} 32 | -------------------------------------------------------------------------------- /src/jackknife-bootstrap-randomization.pgf: -------------------------------------------------------------------------------- 1 | % http://www.tandfonline.com/doi/pdf/10.1207/S15327906MBR3404_2 2 | % Joseph Lee Rodgers (1999). The Bootstrap, the Jackknife, and the 3 | % Randomization Test: A Sampling Taxonomy, Multivariate Behavioral Research, 34:4, 441-456, 4 | % DOI: 10.1207/S15327906MBR3404_2 5 | \begin{tikzpicture}[ 6 | square/.style = { 7 | draw, 8 | minimum width = 4cm, 9 | minimum height = 2cm, 10 | text width = 2.8cm, 11 | text centered}, 12 | ] 13 | 14 | \node[square] (jack) {Jackknife}; 15 | \node[square, right = 0.25ex of jack] (rand) {Testes de aleatoriza{\c c}{\~a}o}; 16 | \node[square, below = 0.25ex of rand] (boot) {Bootstrap}; 17 | \node[square, below = 0.25ex of jack] (null) {}; 18 | 19 | \node at (jack.north) [above] {Subamostras}; 20 | \node at (rand.north) [above] {Amostras completas}; 21 | \node at (jack.west) [left, align = right] {Amostras sem\\ reposi{\c c}{\~a}o}; 22 | \node at (null.west) [left, align = right] {Amostras com\\ reposi{\c c}{\~a}o}; 23 | 24 | \end{tikzpicture}% 25 | -------------------------------------------------------------------------------- /src/pgfplotstable3.pgf: -------------------------------------------------------------------------------- 1 | % A centered fixed-width-column. 2 | \newcolumntype{C}{>{\centering\arraybackslash}p{6mm}} 3 | 4 | \pgfplotstabletypeset[ 5 | col sep=&, row sep=\\, 6 | every head row/.style={ 7 | before row={ 8 | \hline 9 | \rowcolor{lightgray} 10 | \multicolumn{3}{|>{\columncolor{lightgray}}c|}{Quantenzahlen} & Term--\\ 11 | \rowcolor{lightgray} 12 | }, 13 | after row=\hline, 14 | }, 15 | every last row/.style={after row=\hline}, 16 | columns/n/.style={column type=|C,column name=$n$}, 17 | columns/l/.style={column type=|C,column name=$\ell$}, 18 | columns/lambda/.style={column type=|C,column name=$\lambda$}, 19 | columns/text/.style={column type=|c|,column name=bezeichnung, 20 | string type 21 | }]{ 22 | n & l & lambda & text \\ 23 | 1 & 0 & 0 & $1 s\sigma$ \\ 24 | 2 & 0 & 0 & $2 s\sigma$ \\ 25 | 2 & 1 & 0 & $2 p\sigma$ \\ 26 | 2 & 1 & 1 & $2 p \pi $ \\ 27 | 3 & 2 & 0 & $3 d\sigma$ \\ 28 | 3 & 2 & 2 & $3 d\delta$ \\ 29 | } 30 | -------------------------------------------------------------------------------- /src/reg_linear_simples.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[domain=0:8, scale=0.7] 2 | % \draw[very thin,color=gray!30] (-1.1,-1.1) grid (12.1,7.1); 3 | \draw[->] (-0.2,0) -- (9.2,0) node[right] {$x$}; 4 | \draw[->] (0,-0.2) -- (0,5.5) node[above] {$E(Y|x)$}; 5 | \draw[color=darkgreen, thick] 6 | plot[id=x] function{0+0.7*x} 7 | node[right] {$\mu = \beta_0+\beta_1\cdot x$}; 8 | \foreach \x/\y in {1.5/1.05, 3/2.1, 4.5/3.15, 6/4.2}{ 9 | \begin{scope}[ 10 | xshift=\x cm, yshift=2cm +\y cm, 11 | rotate=-90, smooth, domain=0.5:3.5] 12 | \draw[color=green!70!blue] (1,0) -- (3,0); 13 | \draw[color=green!70!blue] (2,0) -- (2,1); 14 | \filldraw[ 15 | color=green!70!black, fill opacity=0.3, fill=green!70!black] 16 | plot[id=x] function{exp(-(x-2)**2/0.2)}; 17 | \end{scope} 18 | } 19 | \path[->, color=green!70!black, thick] (6.5,3.7) edge[bend right=45] 20 | node[at end, right] 21 | {$\frac{1}{\sqrt{2\pi\sigma^2}} 22 | \exp\{-\frac{(y-\mu)^2}{2\sigma^2}\}$} 23 | +(1,-1); 24 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/matriz_covariancia.pgf: -------------------------------------------------------------------------------- 1 | \newcommand{\upperTri}[2]{ 2 | \draw [fill = #1, draw, rounded corners=1pt] (0, 0) |- (0.3, 0.3) -- cycle; 3 | \draw [fill = #2, draw, rounded corners=1pt] (0, 0) -| (0.3, 0.3) -- cycle; 4 | } 5 | 6 | \begin{tikzpicture}[ 7 | node distance=0.3cm, 8 | mtn/.style={ 9 | matrix of nodes, 10 | column sep = 0.5pt, 11 | row sep = 0.5pt 12 | }, 13 | ] 14 | 15 | \matrix[mtn] (Y) {% 16 | \upperTri{red}{red}; & 17 | \upperTri{red}{cyan}; & 18 | \upperTri{red}{green}; & 19 | \upperTri{red}{orange}; \\ 20 | \upperTri{red}{cyan}; & 21 | \upperTri{cyan}{cyan}; & 22 | \upperTri{cyan}{green}; & 23 | \upperTri{cyan}{orange}; \\ 24 | \upperTri{red}{green}; & 25 | \upperTri{cyan}{green}; & 26 | \upperTri{green}{green}; & 27 | \upperTri{green}{orange}; \\ 28 | \upperTri{red}{orange}; & 29 | \upperTri{cyan}{orange}; & 30 | \upperTri{green}{orange}; & 31 | \upperTri{orange}{orange}; \\ 32 | }; 33 | 34 | \node [left=0cm of Y] {$\Sigma_m =$};% 35 | 36 | \end{tikzpicture} 37 | -------------------------------------------------------------------------------- /src/pgfplotstable2.pgf: -------------------------------------------------------------------------------- 1 | % \usepackage{booktabs} 2 | 3 | \pgfplotstabletypeset[ 4 | column type=l, 5 | every head row/.style={ 6 | before row={% 7 | \toprule 8 | & \multicolumn{2}{c}{Singular} 9 | & \multicolumn{2}{c}{Plural}\\ 10 | }, 11 | after row=\midrule, 12 | }, 13 | every last row/.style={ 14 | after row=\bottomrule 15 | }, 16 | columns/person/.style={column name=}, 17 | columns/singGaeilge/.style={column name=Gaeilge}, 18 | columns/pluralGaeilge/.style={column name=Gaeilge}, 19 | columns/singEnglish/.style={column name=English}, 20 | columns/pluralEnglish/.style={column name=English}, 21 | col sep=&, row sep=\\, string type]{ 22 | person & singEnglish & singGaeilge & pluralEnglish & pluralGaeilge \\ 23 | 1st & at me & agam & at us & againn \\ 24 | 2st & at you & agat & at you & agaibh \\ 25 | 3st & at him & aige & at them & acu \\ 26 | & at her & aici & & \\ 27 | } 28 | -------------------------------------------------------------------------------- /src/dist_bneg.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | binom(\n,\x)=(\n!)/(\x!*(\n-\x)!); 4 | }, 5 | declare function={ 6 | bnegpf(\k,\p,\r)=(binom(\k-1, \r-1))*\p^(\r)*(1-\p)^(\k-\r); 7 | }, 8 | hplot/.style={ycomb, mark=o}] 9 | 10 | \begin{axis}[ 11 | width=10cm, height=6cm, 12 | xlabel=$x$, ylabel=$p(x)$, 13 | xlabel style={at={(1,0)}, anchor=north west}, 14 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 15 | legend style={draw=none, fill=none, font=\footnotesize}, 16 | legend cell align=left] 17 | 18 | \addplot[hplot, samples at={1,2,...,21}] 19 | {bnegpf(x, 0.5, 1)}; 20 | \addlegendentry{$p=0.5$, $r=1$} 21 | 22 | \addplot[hplot, samples at={5,6,...,21}, red] 23 | {bnegpf(x, 0.5, 5)}; 24 | \addlegendentry{$p=0.5$, $r=5$} 25 | 26 | \addplot[hplot, samples at={5,6,...,21}, blue] 27 | {bnegpf(x, 0.8, 5)}; 28 | \addlegendentry{$p=0.8$, $r=5$} 29 | 30 | \node at (axis description cs: 0.65, 0.5) 31 | {$p(x) = \binom{x-1}{r-1} \cdot p^r \cdot (1-p)^{x-r}$}; 32 | 33 | \end{axis} 34 | \end{tikzpicture} 35 | -------------------------------------------------------------------------------- /src/monomolecular.pgf: -------------------------------------------------------------------------------- 1 | \def\xs{1} 2 | \def\ys{1.5} 3 | \def\A{2.5} 4 | \def\V{0.8} 5 | \def\q{0.8} 6 | \def\dx{-1.5} 7 | 8 | \begin{tikzpicture}[domain=0:5, xscale=\xs, yscale=\ys, >=latex] 9 | \begin{scope} 10 | \draw[->] (0,0) -- (5,0) node[below] {$x$}; 11 | \draw[->] (0,0) -- (0,3) node[left] {$\eta(x,\theta)$}; 12 | \draw[color=green!30!black, very thick, smooth] 13 | plot[id=x, domain=0:5] function{\A*(1-exp(-log(2)*x/\V))}; 14 | \draw[dashed] (0,\A) node[left] {$\theta_a$} -- (5,\A); 15 | \draw[dashed, color=red] (0,\q*\A) 16 | node[left] {$q\theta_a$} -- (5,\q*\A); 17 | \draw[dashed, color=red] (\V+1.07,0) 18 | node[below] {$\vartheta_q$} -- ++(0,3); 19 | \draw[|<->|] (\dx,0) -- (\dx,\q*\A) node[midway, left] {$q$}; 20 | \draw[|<->|] (\dx,\q*\A) -- (\dx,\A) node[midway, left] {$1-q$}; 21 | \node at (2.5,3.5) 22 | {$\eta(x,\theta) = \theta_a (1-\exp\{-\theta_k x\})$}; 23 | \draw[dashed] (-0.2,-0.4) -- (1.5,3); 24 | \draw (0.5,0) arc (0:70:0.5 and 0.33); 25 | \node[right] at (0.4,0.24) {$\theta_k$}; 26 | \end{scope} 27 | \end{tikzpicture} 28 | -------------------------------------------------------------------------------- /src/reg_sistema.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | auto, >=stealth', node distance=0.0ex and 2em, 3 | pil/.style={->}, 4 | punkt/.style={ 5 | rectangle, rounded corners, 6 | draw=black, text width=6.5em, 7 | minimum height=3em, text centered}, 8 | ann/.style={font=\footnotesize, color=darkgreen}] 9 | 10 | \node[punkt, color=darkgreen] (machine) at (0,0) {Sistema}; 11 | \node[left=of machine] (x3) {$x_3$}; 12 | \node[above=of x3] (x2) {$x_2$}; 13 | \node[above=of x2] (x1) {$x_1$}; 14 | \node[below=of x3] (x4) {$\vdots$}; 15 | \node[below=of x4] (x5) {$x_k$}; 16 | \node[ann, rotate=90, left=1pt of x3, anchor=south] {est\'{i}mulos}; 17 | \node[right=of machine, 18 | % label={[darkgreen,font=\tiny]below:resposta}, 19 | draw, circle, fill=darkgreen!50] (y) {$y$}; 20 | \node[ann, rotate=-90, right=1pt of y, anchor=south] {resposta}; 21 | 22 | \path[pil] (x1) edge[bend left] (machine); 23 | \path[pil] (x2) edge[bend left=10] (machine.162); 24 | \path[pil] (x3) edge (machine); 25 | \path[pil] (x5) edge[bend right] (machine); 26 | \path[pil] (machine) edge (y); 27 | \end{tikzpicture} 28 | -------------------------------------------------------------------------------- /src/eqn_hypergeometric.pgf: -------------------------------------------------------------------------------- 1 | \tikzstyle{every picture}+=[remember picture]% 2 | \newcommand{\nann}[2]{% 3 | \tikz[baseline] {% 4 | \node[anchor=base, inner sep=0pt, outer sep=0pt] (#1) {#2};% 5 | }% 6 | }% 7 | 8 | \begin{tikzpicture}[ 9 | every path/.style = {rounded corners, shorten <=3pt, >=stealth}, 10 | every node/.style = {rounded corners = false}, 11 | ann/.style = {font = \footnotesize, text width = 6em} 12 | ] 13 | 14 | \node { 15 | $ 16 | p(y) = 17 | \displaystyle 18 | \underset{\nann{a1}{$\phantom{0}$}}{\binom{m}{\textcolor{cyan}{y}}}\cdot 19 | \overset{\nann{a2}{$\phantom{0}$}}{\binom{n}{\textcolor{orange}{r - y}}}\bigg/ 20 | \underset{\nann{a3}{$\phantom{0}$}}{\binom{m + n}{r}} 21 | $ 22 | }; 23 | \path[->, draw] (a1.north) |- ++(0.5, -1) node[ann, right] {Arranjos com bolas brancas}; 24 | \path[->, draw] (a2.south) |- ++(0.5, 0.5) node[ann,right] {Arranjos com bolas pretas}; 25 | \path[->, draw] (a3.north) |- ++(0.5, -0.5) node[ann,right] {Arranjos com todas as bolas}; 26 | \end{tikzpicture}%------------------------------------------------------------------------------ -------------------------------------------------------------------------------- /src/logis.pgf: -------------------------------------------------------------------------------- 1 | \def\ptsize{0.75pt} 2 | \tikzset{ 3 | mypoints/.style={fill=white, draw=black}, 4 | pil/.style={->, shorten <=2pt, shorten >=2pt} 5 | } 6 | 7 | \begin{tikzpicture}[>=latex, xscale=2.5, yscale=2.5] 8 | \begin{scope} 9 | \def\thetas{5}; \def\thetav{0.4} 10 | \draw[->] (-0.1,0) -- +(1.2,0); 11 | \draw[->] (0,-0.1) -- +(0,1.2); 12 | \draw[-, color=darkgreen, very thick, samples=100] 13 | plot[id=x, domain=-0.35:1] 14 | function{1/(1+exp(-\thetas*(x-\thetav)))} 15 | node[right, color=black] {MI}; 16 | \draw[dashed] (0,1) -- (1,1); 17 | \fill[mypoints] (0,1) circle (\ptsize) node[left] {UA}; 18 | \draw[dashed] (0,0) -- (-0.5,0) node[left] {LA}; 19 | \fill[mypoints] (0,0) circle (\ptsize); 20 | \draw[dashed] ($(-0.25,0)+1/(1+exp(\thetas*\thetav))*(0,1)$) 21 | node[left] {O} -- +(0.5,0); 22 | \fill[mypoints] ($(0,0)+1/(1+exp(\thetas*\thetav))*(0,1)$) 23 | circle (\ptsize); 24 | \draw[dashed] (\thetav,0.25) -- +(0,0.5); 25 | \fill[mypoints] (\thetav,0.5) circle (\ptsize) 26 | node[right] {S-I-F$_{0.5}$}; 27 | \end{scope} 28 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/fat_anin_regular.pgf: -------------------------------------------------------------------------------- 1 | \def\d{1.35} 2 | 3 | \begin{tikzpicture}[ 4 | yscale=0.6, 5 | node distance=1 and 0.5, 6 | fator1/.style={% 7 | fill=gray!50}, 8 | fator2/.style={% 9 | fill=darkgreen!80, minimum height=1.8em}, 10 | profator2/.style={% 11 | grow=down, xshift=0.1cm, solid, anchor=west, 12 | edge from parent path={ 13 | (\tikzparentnode.south) |- (\tikzchildnode.west) 14 | }, 15 | }, 16 | level1/.style ={level distance=\d cm}, 17 | level2/.style ={level distance=2*\d cm}, 18 | level3/.style ={level distance=3*\d cm}, 19 | level 1/.style={sibling distance=1cm, level distance=0.5cm}] 20 | 21 | \node[fator1] (A1) {No solo} 22 | child [profator2, level1] {node[fator2] {25 kg}} 23 | child [profator2, level2] {node[fator2] {50 kg}} 24 | child [profator2, level3] {node[fator2] {75 kg}}; 25 | \node[fator1, right=of A1] (A2) {Foliar} 26 | child [profator2, level1] {node[fator2] {2 L}} 27 | child [profator2, level2] {node[fator2] {4 L}} 28 | child [profator2, level3] {node[fator2] {6 L}}; 29 | \node at ($(A1)!0.5!(A2)+(0,1)$) {Aduba\c{c}\~ao complementar}; 30 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/regressao_linear_simples.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[% 2 | domain=-0.25:8.75, xscale=0.8, yscale=0.25, 3 | aponta/.style={ 4 | color=green!50!blue, rounded corners=5pt, -latex, thick 5 | }] 6 | \draw[-latex] (-0.2,0) -- (10,0) node[right] {$x$}; 7 | \draw[-latex] (0,-0.2) -- (0,20) node[above] (E) {$\textrm{E}(Y|x)$}; 8 | \def\A{3}; \def\B{1.8}; 9 | \draw[color=black, thick] 10 | plot[id=x] function{\A+\B*x} 11 | node[right] (eta) {$\theta_0+\theta_1 x$}; 12 | \node (Q) at (5,25) {$Q(Y|x) = \eta(x, \theta)$}; 13 | \node (N) at (5,22) {$[Y|x]\sim$ Normal($\mu$, $\sigma$)}; 14 | \path[aponta] (3.25,10) edge[bend left=10] (N); 15 | \draw[aponta] (Q) -| (E); 16 | \draw[aponta] (Q) -| (eta); 17 | \foreach \x in {1, 3, 5, 7}{ 18 | \draw[color=gray, dashed] (\x,0) -- ++(0,20); 19 | \def\sr{4.5} 20 | \begin{scope}[ 21 | xshift=\x cm, yshift=\A cm+\B*\x cm, 22 | rotate=-90, smooth, domain=-\sr:\sr] 23 | \filldraw[fill opacity=0.3, fill=gray!70!black] 24 | plot[id=x] function{exp(-(x)**2/3)}; 25 | \draw[dotted] (0, 0) -- (0, 1); 26 | \end{scope} 27 | } 28 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/circuitos_mistos1.pgf: -------------------------------------------------------------------------------- 1 | \def\ABC{0.95} 2 | \def\DEF{0.7} 3 | 4 | \tikzset{ 5 | >=stealth, 6 | terminal/.style={rectangle, minimum size=6mm, draw=black}, 7 | point/.style={coordinate}, 8 | draw=black, 9 | mtx/.style={ 10 | matrix of nodes, 11 | column sep=7mm, row sep=0mm, 12 | nodes={draw, outer sep=5pt, fill=green!60!blue, 13 | text width=2em, text centered} 14 | }, 15 | every path/.style={rounded corners=1pt} 16 | } 17 | 18 | \begin{tikzpicture} 19 | \matrix[mtx] (Y) { 20 | \ABC & & \\ 21 | & \DEF & \\ 22 | \ABC & & \DEF \\ 23 | & \DEF & \\ 24 | \ABC & & \\ 25 | }; 26 | \begin{scope}[on background layer] 27 | \path[draw] (Y-3-1.east) -- (Y-3-1.west) -- ++(-0.5, 0); 28 | \path[->, draw] 29 | (Y-3-1.west) 30 | |- (Y-1-1.east) 31 | |- (Y-3-1.east) 32 | -| (Y-2-2.west) -- (Y-2-2.east) 33 | |- (Y-3-3.west) -- (Y-3-3.east) -- ++(0.5,0); 34 | \path[draw] 35 | (Y-3-1.west) 36 | |- (Y-5-1.east) 37 | |- (Y-3-1.east) 38 | -| (Y-4-2.west) -- (Y-4-2.east) 39 | |- (Y-3-3.west) -- (Y-3-3.east); 40 | \end{scope} 41 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/diagrama_venn4.pgf: -------------------------------------------------------------------------------- 1 | \def\first{(4,2.5) ellipse (2.7cm and 1.7cm)} 2 | \def\second{ 3 | (0,0) .. controls (1,2) and (3.5,1) .. (2,5) -- (0,5) -- (0,0)} 4 | \begin{tikzpicture} 5 | \fill[fill=darkgreen!20] \first; 6 | \begin{scope} 7 | \clip \first; 8 | \fill[fill=darkgreen!70] \second; 9 | \end{scope} 10 | \node (e1) at (1.85,2.5) {$A_1\cap B$}; 11 | \draw (0,0) rectangle (8,5); 12 | \draw[color=darkgreen] \first; 13 | \draw \second; 14 | \draw (0,5) .. controls (1,1) and (3,1) .. (2,0); 15 | \draw (3,0) .. controls (2,1) and (4,1) .. (2,5); 16 | \draw (4,5) .. controls (2,4) and (4,1) .. (5,0); 17 | \draw (4,0) .. controls (3,4) and (4,4) .. (8,0); 18 | \draw (5,5) .. controls (3,4) and (4,3) .. (6,0); 19 | \draw (7,5) .. controls (7,4) and (8,3) .. (6,0); 20 | \node (n1) at (6,4) {\textcolor{darkgreen}{$B$}}; 21 | \node (n2) at (0.7,2) {$A_2$}; \node (n3) at (1,4) {$A_1$}; 22 | \node (n2) at (2.5,2) {$A_3$}; \node (n3) at (1.5,0.5) {$A_4$}; 23 | \node (n2) at (3.3,0.3) {$A_5$}; \node (n3) at (4.2,2) {$\cdots$}; 24 | \node (n2) at (7,0.3) {$A_{n-1}$}; \node (n3) at (7.5,2) {$A_n$}; 25 | \end{tikzpicture} 26 | -------------------------------------------------------------------------------- /site/config.toml: -------------------------------------------------------------------------------- 1 | # Site settings 2 | baseurl = "http://leg.ufpr.br/~walmes/Tikz/" 3 | languageCode = "en-us" 4 | title = "WZ Tikz Gallery" 5 | themesDir = "./themes/" 6 | theme = "hugrid" 7 | # Enter your tracking code to enable Google Analytics 8 | # googleAnalytics = "UA-XXXXXXXX-Y" 9 | 10 | contentdir = "content" 11 | datadir = "data" 12 | layoutdir = "layouts" 13 | publishdir = "public" 14 | 15 | [params] 16 | # Meta 17 | title = "Walmes Zeviani · Tikz Gallery" 18 | subtitle = "My personal collection of Tikz drawings" 19 | author = "Walmes Zeviani" 20 | description = "TODO TODO" 21 | keywords = "LaTeX, Tikz, Drawing, Visualization, Fluxograms, Graphics" 22 | 23 | # Body background color 24 | bodybgcolor = "#f9f9f9" 25 | 26 | # Preview container button text 27 | buttontext = "Check the code on GitHub" 28 | 29 | # Footer text 30 | footertext = "Template made by [Codrops](http://tympanus.net/codrops/2013/03/19/thumbnail-grid-with-expanding-preview/), [Hugo](http://gohugo.io) and [Aerohub](https://github.com/aerohub)" 31 | 32 | # add extra-css 33 | # custom_css = ['css/extra1.css', 'css/extra2.css'] 34 | -------------------------------------------------------------------------------- /src/eqn_fatadi.pgf: -------------------------------------------------------------------------------- 1 | \tikzstyle{every picture}+=[remember picture] 2 | \newcommand{\nann}[2]{% 3 | \tikz[baseline] {% 4 | \node[% 5 | anchor=base,% 6 | inner sep=0pt,% 7 | outer sep=0pt,% 8 | % fill=green% 9 | ] (#1) {#2};% 10 | }% 11 | } 12 | 13 | \begin{tikzpicture}[ 14 | every path/.style={rounded corners, shorten <=3pt, >=stealth}, 15 | every node/.style={rounded corners=false}, 16 | ann/.style={font=\footnotesize, color=darkgreen}] 17 | 18 | \node (fat) { 19 | $\mu+ 20 | \nann{a}{$\alpha$}_{i}+ 21 | \nann{t}{$\tau$}_{j}+ 22 | \nann{g}{$\gamma$}_{ij}, 23 | \qquad \text{se cela fatorial}$ 24 | }; 25 | \path[->, draw] (a.north) |- ++(0.5,1) 26 | node[ann,right] {fator 1}; 27 | \path[->, draw] (t.north) |- ++(0.5,0.7) 28 | node[ann,right] {fator 2}; 29 | \path[->, draw] (g.north) |- ++(0.5,0.4) 30 | node[ann,right] {intera\c{c}\~ao}; 31 | 32 | \node[below=of fat] (adi) { 33 | $\mu+ 34 | \nann{th}{$\theta$}_{k}, 35 | \qquad \text{se cela adicional}$ 36 | }; 37 | \path[->, draw] (th.south) |- ++(0.5,-0.5) 38 | node[ann,right] {testemunhas}; 39 | 40 | \end{tikzpicture} 41 | -------------------------------------------------------------------------------- /src/dist_pois.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | poispf(\k,\l) = exp(-\l)*(\l^\k)/(\k!); 4 | }, 5 | hplot/.style={ycomb, mark=o}] 6 | 7 | \begin{axis}[ 8 | width=10cm, height=6cm, 9 | xlabel=$x$, ylabel=$p(x)$, 10 | xlabel style={at={(1,0)}, anchor=north west}, 11 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 12 | legend style={draw=none, fill=none, font=\footnotesize}, 13 | legend cell align=left, 14 | samples at={0,1,...,50}, 15 | yticklabel style={ 16 | /pgf/number format/fixed, 17 | /pgf/number format/fixed zerofill, 18 | % /pgf/number format/precision=2 19 | }] 20 | 21 | \addplot[hplot, black] {poispf(x, 5)}; 22 | \addlegendentry{$\lambda=5$} 23 | \addplot[hplot, red] {poispf(x, 10)}; 24 | \addlegendentry{$\lambda=10$} 25 | \addplot[hplot, blue] {poispf(x, 20)}; 26 | \addlegendentry{$\lambda=20$} 27 | \addplot[hplot, green] {poispf(x, 30)}; 28 | \addlegendentry{$\lambda=30$} 29 | 30 | \node at (axis description cs: 0.5, 0.8) 31 | {$p(x) = \dfrac{\text{e}^{-\lambda}\cdot \lambda^x}{x!}$}; 32 | 33 | \end{axis} 34 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/regressao_poisson.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | domain=-0.25:9, xscale=0.8, yscale=0.25, 3 | aponta/.style={ 4 | color=green!50!blue, rounded corners=5pt, -latex, thick 5 | }] 6 | \draw[-latex] (-0.2,0) -- (10,0) node[right] {$x$}; 7 | \draw[-latex] (0,-0.2) -- (0,20) node[above] (E) {$\textrm{E}(Y|x)$}; 8 | \def\A{0.2}; \def\B{0.27}; 9 | \draw[color=black, thick] 10 | plot[id=x] function{exp(\A+\B*x)} 11 | node[right] (eta) {$\exp\{\theta_0+\theta_1 x\}$}; 12 | \node (Q) at (5,25) {$Q(Y|x) = \eta(x, \theta)$}; 13 | \node (N) at (5,22) {$[Y|x]\sim$ Poisson($\lambda$)}; 14 | \path[aponta] (5.6,7.5) edge[bend left=10] (N); 15 | \draw[aponta] (Q) -| (E); 16 | \draw[aponta] (Q) -| (eta); 17 | \foreach[evaluate=\x as \lambda using exp(\A+\B*\x)] 18 | \x in {0.5, 3, ..., 9}{ 19 | \draw[color=gray, dashed] (\x,0) -- ++(0,20); 20 | \def\lim{20}; 21 | \begin{scope}[xshift=\x cm, rotate=90, yscale=6] 22 | \draw[color=black, very thick] 23 | plot[ycomb, samples=\lim+1, domain=0:\lim] 24 | function {-exp(-\lambda)*(\lambda)**x/gamma(x+1)}; 25 | \end{scope} 26 | } 27 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/eqn_regsimples.pgf: -------------------------------------------------------------------------------- 1 | \def\hd{0.7} 2 | \def\vd{0.7} 3 | \newcommand{\tm}[1]{\tikz[overlay, anchor=base] \node[red] (#1) {};} 4 | \tikzstyle{every picture}+=[remember picture] 5 | 6 | \begin{tikzpicture}[ 7 | >=stealth, 8 | every path/.style={->, color=darkgreen, thin, rounded corners}, 9 | every node/.style={color=black}, 10 | bx/.style={text width=3cm, font=\footnotesize, minimum height=4ex}, 11 | bxl/.append style={bx, left, align=flush right}, 12 | bxr/.append style={bx, right, align=flush left}] 13 | 14 | \node { 15 | $\tm{y}y = 16 | \tm{b0}\beta_0+ 17 | \tm{b1}\beta_1 18 | \tm{x}x+ 19 | \tm{er}\epsilon$ 20 | }; 21 | 22 | \draw (y)+(0.5ex,2ex) |- +(-\vd,\hd) node[bxl] 23 | {Resposta ou vari\'avel dependente}; 24 | \draw (x)+(0.5ex,2ex) |- +(\vd,\hd) node[bxr] 25 | {Preditora ou vari\'avel independente}; 26 | \draw (b0)+(1ex,-1ex) |- +(-\vd,-\hd) node[bxl] 27 | {Intercepto}; 28 | \draw (b1)+(1ex,-1ex) -- +(1ex,-1.5*\hd) 29 | node[bxr, below, align=center] 30 | {Taxa}; 31 | \draw (er)+(0.5ex,-1ex) |- +(\vd,-\hd) node[bxr] 32 | {Erro aleat\'orio $E(\epsilon) = 0$,\\ $V(\epsilon) = \sigma^2$}; 33 | 34 | \end{tikzpicture} 35 | -------------------------------------------------------------------------------- /src/reg_components.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | >=stealth, 3 | cx/.style={color=black, text width=2cm, font=\footnotesize}, 4 | pil/.style={->, color=darkgreen, rounded corners}, 5 | every node/.style={color=black}] 6 | 7 | \begin{axis}[ 8 | width=9cm, height=6cm, 9 | xlabel=$x$: preditora, ylabel=$y$: resposta] 10 | 11 | \addplot[color=darkgreen, thick, mark=none, domain=0:13] {2+3.4*x} 12 | node[pos=0.8, sloped, below] {$f(x)=\beta_0+\beta_1 x$}; 13 | \addplot[color=darkgreen, only marks, mark=o] 14 | coordinates { 15 | (1,8) 16 | (2,7) 17 | (3,11) 18 | (4,20) 19 | (5,12) 20 | (6,25) 21 | (7,24) 22 | }; 23 | \coordinate (pontoreta) at (axis cs: 10, 36); 24 | \coordinate (yfit) at (axis cs: 5, 19); 25 | \coordinate (yobs) at (axis cs: 5, 12); 26 | \node[cx, align=flush right] (compdet) 27 | at (axis description cs: 0.35, 0.9) 28 | {Componente determin\'{i}stico}; 29 | \draw[pil] (compdet) -| (pontoreta); 30 | \draw[pil, <->] (yfit) -- node[cx, right] 31 | {Componente aleat\'{o}rio $(\epsilon)$} (yobs); 32 | 33 | \end{axis} 34 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/exponential-poisson.pgf: -------------------------------------------------------------------------------- 1 | % set.seed(123) 2 | % y <- round(cumsum(rexp(30, 1.25)), digits = 2) 3 | % cat(y[y <= 10], sep = ", ") 4 | \begin{tikzpicture}[>=stealth'] 5 | 6 | \begin{scope} 7 | \coordinate (arrowstart) at (-0.5, 0); 8 | \node (arrowend) at (11.25, 0) {Tempo}; 9 | \draw[->] (arrowstart) -- (arrowend); 10 | 11 | \foreach \x in {0, 2, ..., 10}{ 12 | \draw (\x, -0.10) -- (\x, 0.10); 13 | } 14 | 15 | \foreach \x in {0.67, 1.84, 2.2, 2.22, 2.27, 2.52, 2.77, 2.89, 5.07, 5.09, 5.9, 6.28, 6.51, 6.81, 6.96, 7.64, 8.89, 9.27, 9.75}{ 16 | \draw[fill = cyan, fill opacity = 0.5] (\x, 0.2) circle [radius = 3pt]; 17 | } 18 | 19 | \draw[|<->|, color = magenta] (0.67, 0.75) -- (1.84, 0.75) node[right, text = black] 20 | {Intervalo entre eventos: $Y_1 \sim \textcolor{magenta}{\text{Exp}(\lambda)}$}; 21 | 22 | \coordinate (A) at (4, -0.3); 23 | \coordinate (B) at (6, -0.3); 24 | 25 | \draw [decorate, decoration = {brace, amplitude = 5pt}] (B) -- (A) 26 | node [black, midway, yshift = -1.5em] {N{\'u}mero de eventos por intervalo: $Y_2 \sim \textcolor{cyan}{\text{Pois}(\lambda)}$}; 27 | 28 | \end{scope} 29 | 30 | \end{tikzpicture}% 31 | -------------------------------------------------------------------------------- /src/michaelis_menten.pgf: -------------------------------------------------------------------------------- 1 | \def\xs{1} 2 | \def\ys{1.5} 3 | \def\A{2.5} 4 | \def\V{0.8} 5 | \def\q{0.8} 6 | \def\dx{-1.5} 7 | 8 | \begin{tikzpicture}[domain=0:5, xscale=\xs, yscale=\ys, >=latex] 9 | \begin{scope} 10 | \draw[->] (0,0) -- (5,0) node[below] {$x$}; 11 | \draw[->] (0,0) -- (0,3) node[left] {$\eta(x,\theta)$}; 12 | \draw[color=green!30!black, very thick, smooth] 13 | plot[id=x, domain=0:5] 14 | function{\A*x/(\V+x)}; 15 | \draw[dashed] (0,\A) 16 | node[left] {$\theta_a$} -- (5,\A); 17 | \draw[dashed] (\V,0) 18 | node[below] {$\theta_v$} -- ++(0,3); 19 | \draw[dashed, color=red] (0,\q*\A) 20 | node[left] {$q\theta_a$} -- (5,\q*\A); 21 | \draw[dashed] (0,0.5*\A) 22 | node[left] {$\theta_a/2$} -- (5,0.5*\A); 23 | \draw[dashed, color=red] (\V+2.4,0) 24 | node[below] {$\vartheta_q$} -- ++(0,3); 25 | \draw[|<->|] (\dx,0) -- (\dx,\q*\A) 26 | node[midway, left] {$q$}; 27 | \draw[|<->|] (\dx,\q*\A) -- (\dx,\A) 28 | node[midway, left] {$1-q$}; 29 | \node at (2.5,3.5) 30 | {$\eta(x,\theta) = 31 | \displaystyle\frac{\theta_a x}{\theta_v +x}$}; 32 | \end{scope} 33 | \end{tikzpicture} 34 | -------------------------------------------------------------------------------- /src/dist_weibull.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function = { 3 | weibullpdf(\x,\a,\b) = (\b/\a)*(\x/\a)^(\b-1)*exp(-(\x/\a)^(\b)); 4 | }] 5 | 6 | \def\parA{\delta} 7 | \def\parB{\beta} 8 | \def\va{y} 9 | 10 | \begin{axis}[ 11 | width = 9cm, height = 6cm, 12 | samples = 50, smooth, domain = 0:5, 13 | xlabel = $\va$, ylabel = $f(\va)$, 14 | % xlabel style = {at = {(1,0)}, anchor = north west}, 15 | % ylabel style = {rotate = -90, at = {(0,1)}, anchor = south east}, 16 | legend style = {draw = none, fill = none}, 17 | clip = false] 18 | 19 | \addplot[black, thick] {weibullpdf(x, 1, 1)}; 20 | \addlegendentry{$\parA = 1, \parB = 1$}; 21 | 22 | \addplot[cyan, thick] {weibullpdf(x, 3, 6)}; 23 | \addlegendentry{$\parA = 3, \parB = 6$}; 24 | 25 | \addplot[orange, thick] {weibullpdf(x, 2, 3)}; 26 | \addlegendentry{$\parA = 2, \parB = 3$}; 27 | 28 | \node[anchor = south] at (axis description cs: 0.5, 1.05) 29 | {$f(\va) = \displaystyle\frac{\parB}{\parA}\left( 30 | \frac{\va}{\parA} \right)^{\parB - 1} 31 | \exp\left\{-\left(\frac{\va}{\parA} \right)^{\parB} \right\}$}; 32 | \end{axis} 33 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/eqn_t_and_F.pgf: -------------------------------------------------------------------------------- 1 | \tikzstyle{every picture}+=[remember picture]% 2 | \newcommand{\nann}[2]{% 3 | \tikz[baseline] {% 4 | \node[anchor=base, inner sep=0pt, outer sep=0pt] (#1) {#2};% 5 | }% 6 | }% 7 | 8 | \begin{tikzpicture}[ 9 | every path/.style = {rounded corners, shorten <=-2pt, >=stealth}, 10 | every node/.style = {rounded corners = false}, 11 | ann/.style = {font = \footnotesize, align = left} 12 | ] 13 | 14 | \node { 15 | $ 16 | t^2 = \displaystyle\frac{ 17 | \overset{\nann{a1}{$\phantom{0}$}}{\hat{\sigma}_{h}^2}}{ 18 | \underset{\nann{a2}{$\phantom{0}$}}{s^2}} \overset{H_0}{\sim} \underset{\nann{a3}{$\phantom{0}$}}{F_{1, n - 1}} 19 | $ 20 | }; 21 | 22 | \path[->, draw] (a1) -- ++(0, 1) node[ann, above] { 23 | Estimador da vari{\^a}ncia sob $H_0$.\\ Fornece evid{\^e}ncia contra $H_0$.}; 24 | \path[->, draw] (a2) -- ++(0, -1) node[ann, below] { 25 | Estimador puro da vari{\^a}ncia.\\ N{\~a}o depende de $H_0$.}; 26 | \path[->, draw] (a3) |- ++(0.5, -0.35) node[ann, right] { 27 | Raz{\~a}o de\\ estimadores\\ independentes\\ de $\sigma^2$.}; 28 | 29 | 30 | \end{tikzpicture}%------------------------------------------------------------------------------ -------------------------------------------------------------------------------- /src/reparametrizacao.pgf: -------------------------------------------------------------------------------- 1 | \tikzset{ 2 | state/.style={ 3 | rectangle, rounded corners, draw=black, thick, 4 | minimum height=2em, minimum width=8em, inner sep=10pt, 5 | text centered 6 | } 7 | } 8 | 9 | \begin{tikzpicture}[>=latex, line width=0.75pt] 10 | \begin{scope} 11 | \node[state] (modelo1) {$f(x, \theta)$}; 12 | \node[below of=modelo1] {original}; 13 | \node (m1) [above right of=modelo1, node distance=3.5cm, 14 | matrix of math nodes, left delimiter=[,right delimiter={]}] 15 | { \theta_0 \\ \theta_1 \\ \vdots \\ \theta_p \\}; 16 | \node (m2) [right of=m1, node distance=2.5cm, 17 | matrix of math nodes, left delimiter=[,right delimiter={]}] 18 | { \theta_0 \\ \theta_1 \\ \vdots \\ \vartheta \\}; 19 | \node (modelo2) [below right of=m2, state, node distance=3.5cm] 20 | (modelo2) {$f(x, \theta_\vartheta)$}; 21 | \node[below of=modelo2] {reparametrizado}; 22 | \path[->, shorten >=1em] (modelo1) edge[bend left=30] (m1.west); 23 | \path[->] (m1.south) edge[bend right=70] 24 | node [midway, below] {reparametriza\c{c}\~{a}o} (m2.south); 25 | \path[<-, shorten >=1em] (modelo2) edge[bend right=30] (m2); 26 | \end{scope} 27 | \end{tikzpicture} 28 | -------------------------------------------------------------------------------- /src/cra-vg.pgf: -------------------------------------------------------------------------------- 1 | \def\tr{0.1} 2 | \def\ts{0.6} 3 | \def\al{1.3} 4 | \def\n{1.6} 5 | \def\I{0.3506} 6 | \def\ti{0.4071} 7 | \def\S{-0.1340} 8 | \def\Sangle{-42} 9 | \def\f1{0.8} 10 | 11 | \begin{tikzpicture}[domain=-3:5, xscale=1, yscale=5, >=latex] 12 | \draw[very thin,color=gray!30] (-3,0) 13 | grid[xstep=0.5, ystep=0.1] (5,0.7); 14 | \draw[->, line width=1pt] (-3,0) -- (5.25,0) 15 | node[below] {$\log(\psi)$}; 16 | \draw[->, line width=1pt] (-3,0) -- (-3,0.75) 17 | node[left] {$U(\psi)$}; 18 | \draw[color=green!30!black, thick, smooth] 19 | plot[id=x, domain=-3:5] 20 | function{\tr+(\ts-\tr)/(1+(\al*exp(x))**\n)**(1-1/\n)}; 21 | \node[left] (tr) at (-3,\tr) {$U_r$}; 22 | \node[left] (ts) at (-3,\ts) {$U_s$}; 23 | \draw[dashed] (\I,0) node[below] {$I$} -- (\I,\ti) -- (-3,\ti) 24 | node[left] {$U_i$}; 25 | \draw[color=green!30!black, dashed] 26 | plot[id=x, domain=-1.5:3] 27 | function{\ti+\S*(x-\I)}; 28 | \draw[|<->|] (\I,\ti)++(1,0) arc (0:\Sangle:0.8 and 0.15); 29 | \path (\I,\ti)++(0.5*1.5\Sangle/8:1) 30 | node[right=-1pt] {$\tan^{-1}(S)$}; 31 | \node[anchor=base] (vg) at (1,0.8) 32 | {$U(\psi) = U_r+\displaystyle\frac{U_s-U_r}{(1+(\alpha\psi)^n)^m}$}; 33 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/reparamet_cra.pgf: -------------------------------------------------------------------------------- 1 | \tikzset{ 2 | state/.style={ 3 | rectangle, rounded corners, draw=black, 4 | thick, minimum height=2em, 5 | inner sep=10pt, text centered 6 | } 7 | } 8 | 9 | \begin{tikzpicture}[->, >=latex, line width=0.75pt] 10 | \node[state] (pr0) { 11 | $\theta_r+\displaystyle\frac{\theta_s-\theta_r}{ 12 | (1+(\alpha\exp\{x\})^n)^m}$\\ 13 | }; 14 | \node[state, xshift=-3cm, below of=pr0, 15 | node distance=3cm, anchor=center] (pr1) { 16 | $\theta_r-S\cdot\displaystyle\frac{(1+1/m)^{m+1}}{ 17 | n(1+\exp\{n(x-I)\}/m)^m}$\\ 18 | }; 19 | \node[state, xshift=3cm, below of=pr0, 20 | node distance=6cm, anchor=center] (pr2) { 21 | $\theta_r+\displaystyle\frac{\theta_s-\theta_r}{ 22 | \left(1+\exp\left\{\displaystyle\frac{-S(x-I)(1+1/m)^{m+1}}{ 23 | \theta_s-\theta_r}\right\}/m\right)^m}$\\ 24 | }; 25 | \path (pr0) edge[bend right=30] 26 | node[midway, right, align=center, anchor=east] 27 | {$\theta_s \rightleftharpoons S$ \\ 28 | $\alpha \rightleftharpoons I $} (pr1) 29 | (pr0) edge[bend left=30] 30 | node[midway, left, align=center, anchor=west] 31 | {$n \rightleftharpoons S$\\ $\alpha \rightleftharpoons I $} (pr2); 32 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/dist_lognormal.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function = { 3 | lognormal(\x,\theta,\omega)= 4 | exp(-(ln(x)-\theta)^2/(2*\omega^2))/(x*\omega*(2*3.1415)^(-0.5)); 5 | }] 6 | 7 | \def\parA{\theta} 8 | \def\parB{\omega} 9 | \def\va{y} 10 | 11 | \begin{axis}[ 12 | width = 9cm, height = 6cm, 13 | samples = 250, smooth, domain = -0.2:10, 14 | xlabel = $\va$, ylabel = $f(\va)$, 15 | % xlabel style = {at = {(1,0)}, anchor = north west}, 16 | % ylabel style = {rotate = -90, at = {(0,1)}, anchor = south east}, 17 | legend style = {draw = none, fill = none}, 18 | clip = false] 19 | 20 | \addplot[black, thick] {lognormal(x, 0, 1)}; 21 | \addlegendentry{$\parA = 0.00, \parB = 1.00$}; 22 | 23 | \addplot[cyan, thick] {lognormal(x, 1.25, 0.5)}; 24 | \addlegendentry{$\parA = 1.25, \parB = 0.50$}; 25 | 26 | \addplot[orange, thick] {lognormal(x, 0.75, 0.25)}; 27 | \addlegendentry{$\parA = 0.75, \parB = 0.25$}; 28 | 29 | \node[anchor = south] at (axis description cs: 0.5, 1.05) 30 | {$f(\va) = \displaystyle\frac{1}{\va \parB \sqrt{2 \pi}} 31 | \exp\left\{-\frac{\left(\ln(\va) - \parA\right)^2}{2 \parB^2} 32 | \right\}$}; 33 | \end{axis} 34 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/reg_geom.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | >=stealth, 3 | % x={(0.866cm, -0.5cm)}, 4 | % y={(0.866cm, 0.5cm)}, 5 | % z={(0cm, 1cm)}, 6 | % scale=1.0, 7 | % inner sep=0pt, 8 | % outer sep=2pt, 9 | axis/.style={->}, 10 | vec/.style={thick, ->}, 11 | every node/.style={color=black}] 12 | 13 | \coordinate (O) at (-0.75,0.25,-0.5); 14 | \draw[dotted, draw=darkgreen, fill=darkgreen!20] 15 | (-2,0,-3.5) -- (3,0,-3.5) -- (4,0,3) -- (-1,0,3) -- cycle; 16 | % \draw[axis] (O) -- +(3, 0, 0) node [right] {x}; 17 | % \draw[axis] (O) -- +(0, 2, 0) node [right] {y}; 18 | % \draw[axis] (O) -- +(0, 0, 2) node [above] {z}; 19 | \draw[vec] (O) -- (2, 2, 0) node [above] {$y$}; 20 | \draw[vec, darkgreen] (O) -- (2, 0, 0) 21 | node[right] {$\hat{y}=X\hat{\beta}$}; 22 | \draw[vec, red] (O) -- (1.5, 0, 1.5) 23 | node[below] {$\bar{y}$}; 24 | \draw[red, dotted] (1.5,0,1.5) -- (3, 0, 3) 25 | node[below] {$C(\mathbf{1})$}; 26 | \draw[dashed, darkgreen, sloped] (2, 0, 0) -- (2,2,0) 27 | node[midway, below] {$||y-X\hat{\beta}||$}; 28 | \draw[red, dashed, sloped] (2,2,0) -- (1.5, 0, 1.5) 29 | node[midway, above] {$||y-\bar{y}||$}; 30 | \node[above left] at (3,0,-3.5) {$C(\mathbf{X})$}; 31 | \end{tikzpicture} 32 | -------------------------------------------------------------------------------- /src/fatadi_arranjo.pgf: -------------------------------------------------------------------------------- 1 | \def\d{1cm} 2 | \def\k{0.6} 3 | 4 | \begin{tikzpicture}[ 5 | yscale=0.6, 6 | node distance=1 and 0.5, 7 | fator1/.style={% 8 | fill=gray!50}, 9 | fator2/.style={% 10 | fill=darkgreen!80}, 11 | profator2/.style={% 12 | grow=down, xshift=0.1cm, solid, anchor=west, 13 | edge from parent path={ 14 | (\tikzparentnode.south) |- (\tikzchildnode.west) 15 | }, 16 | }, 17 | level1/.style ={level distance=1cm}, 18 | level2/.style ={level distance=2cm}, 19 | level3/.style ={level distance=3cm}, 20 | level 1/.style={sibling distance=1cm, level distance=0.5cm}] 21 | 22 | \node[fator1] (A1) {A1} 23 | child [profator2, level1] {node[fator2] {B1}} 24 | child [profator2, level2] {node[fator2] {B2}} 25 | child [profator2, level3] {node[fator2] {B3}}; 26 | \node[fator1, right=of A1] (A2) {A2} 27 | child [profator2, level1] {node[fator2] {B1}} 28 | child [profator2, level2] {node[fator2] {B2}} 29 | child [profator2, level3] {node[fator2] {B3}}; 30 | \node[fator1, right=of A2] (Tm) {$T-$}; 31 | \node[fator1, right=of Tm] (TM) {$T+$}; 32 | \draw (A1) |- ($(A2)+(0,\k)$); 33 | \draw (A2) |- ($(Tm)+(0,\k)$); 34 | \draw (Tm) |- ($(TM)+(0,\k)$) -- (TM); 35 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/dist_hiper.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | binom(\n,\x) = (\n!)/(\x!*(\n-\x)!); 4 | }, 5 | declare function={ 6 | hiperpf(\x,\N,\n,\K) = binom(\K, \x)*binom(\N-\K, \n-\x)/binom(\N, \n); 7 | }, 8 | hplot/.style={ycomb, mark=o}] 9 | 10 | \begin{axis}[ 11 | width=10cm, height=6cm, 12 | xlabel=$x$, ylabel=$p(x)$, 13 | xlabel style={at={(1,0)}, anchor=north west}, 14 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 15 | legend style={draw=none, fill=none, font=\footnotesize}, 16 | legend cell align=left, 17 | xtick={0,1,...,10}, 18 | ymax=0.75] 19 | 20 | \addplot[hplot, samples at={0,1,...,10}] 21 | (x, {hiperpf(x, 20, 10, 10)}); 22 | \addlegendentry{$N=20$, $n=10$, $K=10$} 23 | 24 | \addplot[hplot, samples at={0,1,...,10}, red] 25 | (x-0.1, {hiperpf(x, 50, 10, 25)}); 26 | \addlegendentry{$N=50$, $n=10$, $K=25$} 27 | 28 | \addplot[hplot, samples at={0,1,...,5}, blue] 29 | (x+0.1, {hiperpf(x, 50, 10, 5)}); 30 | \addlegendentry{$N=50$, $n=10$, $K=5$} 31 | 32 | \node[anchor=north] at (axis description cs: 0.25, 0.95) 33 | {$p(x) = \dfrac{\binom{K}{x} \binom{N-k}{n-x}}{\binom{N}{n}}$}; 34 | 35 | \end{axis} 36 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/reg_matricial.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | mtx/.style={ 3 | matrix of math nodes, 4 | left delimiter={[}, 5 | right delimiter={]} 6 | }, 7 | subtxt/.style={below, font=\footnotesize}] 8 | 9 | \matrix[mtx] (Y) {% 10 | y_1 \\ y_2 \\ \vdots \\ y_n\\ 11 | }; 12 | \matrix[mtx, right=of Y] (X) {% 13 | 1 & x_{11} & \ldots & x_{1k} \\ 14 | 1 & x_{21} & \ldots & x_{2k} \\ 15 | \vdots & & \ddots & \vdots \\ 16 | 1 & x_{n1} & \ldots & x_{nk} \\ 17 | }; 18 | \matrix[mtx, right=0.5cm of X] (beta) {% 19 | \beta_0 \\ \beta_1 \\ \vdots \\ \beta_k\\ 20 | }; 21 | \matrix[mtx, right=of beta] (E) {% 22 | \epsilon_1 \\ \epsilon_2 \\ \vdots \\ \epsilon_n\\ 23 | }; 24 | 25 | \node at ($(Y.east)!0.5!(X.west)$) {$=$};% 26 | \node at ($(beta.east)!0.5!(E.west)$) {$=$};% 27 | \node[above=2ex of X] (modmat) {$y = X \beta+\epsilon$}; 28 | \node[above=2ex of modmat] (mod) 29 | {$y = \beta_0+\beta_1 x_1+\beta_2 x_2+\cdots+\beta_k x_k+\epsilon$}; 30 | \node[subtxt] at (Y.south) {$n\times 1$}; 31 | \node[subtxt, align=center] at (X.south) {$n\times p$\\ $(p=k+1)$}; 32 | \node[subtxt] at (beta.south) {$p\times 1$}; 33 | \node[subtxt] at (E.south) {$n\times 1$}; 34 | \end{tikzpicture} 35 | -------------------------------------------------------------------------------- /src/eqn_QR.pgf: -------------------------------------------------------------------------------- 1 | \newcommand{\tm}[1]{\tikz[overlay, anchor=base] \node[red] (#1) {};} 2 | \tikzstyle{every picture}+=[remember picture] 3 | \tikzset{ 4 | >=stealth, 5 | every path/.style={->, color=darkgreen, thin}, 6 | every node/.style={color=black}, 7 | node distance=0.5cm 8 | } 9 | 10 | \begin{tikzpicture} 11 | \node at (0.5,-0) 12 | {$\tm{x}\underset{n\times p}{X} = 13 | \tm{q}\underset{n\times p}{Q} 14 | \tm{r}\underset{p\times p}{R}$}; 15 | \begin{scope}[xshift=0mm, yshift=-1cm] 16 | \node (a) at (0,0) {}; 17 | \node[right=1mm of a] (b) {}; 18 | \node[below=1cm of b] (c) {}; 19 | \node[below=1cm of a] (d) {}; 20 | \fill[darkgreen] 21 | (a.north west) -| (c.south east) -| (a.north west); 22 | \path[draw] (q)+(1.8ex,-2ex) 23 | to[out=-90, in=90] ($(a.north)!0.5!(b.north)$); 24 | \node (a) at (0.7,0) {}; 25 | \node[right=1mm of a] (b) {}; 26 | \node[below=1mm of b] (c) {}; 27 | \node[below=of a] (d) {}; 28 | \fill[darkgreen] 29 | (a.west) |- (b.north east) |- (c.south) -- cycle; 30 | \draw[-, darkgreen] 31 | (a.north west) |- (c.south east); 32 | \path[draw] (r)+(1.7ex,-2ex) 33 | to[out=-90, in=90] ($(a.north)!0.5!(b.north)$); 34 | \end{scope} 35 | \end{tikzpicture} 36 | -------------------------------------------------------------------------------- /src/caixa_texto1.pgf: -------------------------------------------------------------------------------- 1 | % http://tex.stackexchange.com/questions/22406/how-to-make-a-textbox-with-this-tikz-code 2 | 3 | \xdefinecolor{mycolor}{RGB}{62,96,111} % Neutral Blue 4 | \colorlet{bancolor}{mycolor} 5 | % \def\bancolor{mycolor} 6 | 7 | \newenvironment{mybox}[3][]{% 8 | \begin{tikzpicture}[#1]% 9 | \def\myboxname{#3}% 10 | % good options: minimum height, minimum width 11 | \node [draw, inner sep=1.5ex, text width=#2, align=justify] 12 | (BOXCONTENT) \bgroup\rule{0pt}{3ex}\ignorespaces 13 | }{% 14 | \egroup; 15 | \node [right, inner xsep=1em, fill=bancolor!75, outer sep=0pt, 16 | text height=2ex, text depth=.5ex] (BOXNAME) 17 | at ([shift={(-1em,0pt)}]BOXCONTENT.north west) {\myboxname}; 18 | \fill[bancolor] (BOXNAME.north east) -- +(-1em,1em) 19 | -- +(-1em,0) -- cycle; 20 | \fill[bancolor] (BOXNAME.south west) -- +(1em,-1em) 21 | -- +(1em,0) -- cycle; 22 | \end{tikzpicture} 23 | } 24 | 25 | \begin{mybox}{10em}{Test} 26 | This is the content 27 | \end{mybox} 28 | 29 | \begin{mybox}{25em}{Test it really good} 30 | This is the longer content 31 | This is the longer content 32 | This is the longer content 33 | This is the longer content 34 | This is the longer content 35 | \end{mybox} 36 | -------------------------------------------------------------------------------- /src/regressao_nao_linear.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | domain=0:9, xscale=0.8, yscale=0.25, 3 | aponta/.style={ 4 | color=green!50!blue, rounded corners=5pt, -latex, thick 5 | }] 6 | \draw[-latex] (-0.2,0) -- (10,0) node[right] {$x$}; 7 | \draw[-latex] (0,-0.2) -- (0,20) node[above] (E) {$\textrm{E}(Y|x)$}; 8 | \def\A{20}; \def\V{2}; 9 | \draw[color=black, thick] 10 | plot[id=x] function{\A*x/(\V+x)} 11 | node[right] (eta) {$\displaystyle\frac{\theta_a x}{\theta_v+x}$}; 12 | \node (Q) at (5,25) {$Q(Y|x) = \eta(x, \theta)$}; 13 | \node (N) at (5,22) {$[Y|x]\sim$ Normal($\mu$,$\sigma$)}; 14 | \path[aponta] (2.35,12) edge[bend left=10] (N); 15 | \draw[aponta] (Q) -| (E); 16 | \draw[aponta] (Q) -| (eta); 17 | \foreach[evaluate=\x as \y using \A*\x/(\V+\x)] 18 | \x in {0.5, 2.2, ..., 8.5}{ 19 | \draw[color=gray, dashed] (\x,0) -- ++(0,20); 20 | \def\sr{4.5} 21 | \begin{scope}[ 22 | xshift=\x cm, yshift=\y cm, 23 | rotate=-90, smooth, domain=-\sr:\sr] 24 | % \draw[color=gray] (-\sr,0) -- (\sr,0); 25 | % \draw[color=gray] (0,0) -- (0,1); 26 | \filldraw[fill opacity=0.3, fill=gray!70!black] 27 | plot[id=x] function{exp(-(x)**2/3)}; 28 | \end{scope} 29 | } 30 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/pgfplotstable_pgfcalendar.pgf: -------------------------------------------------------------------------------- 1 | % \usepackage{siunitx} da conflito com formatacao de datas do 2 | % \usepackage{pgfcalendar}. 3 | 4 | \pgfplotstableread{ 5 | date account1 account2 account3 6 | 2008-01-03 60 1200 400 7 | 2008-02-06 120 1600 410 8 | 2008-03-15 -10 1600 410 9 | 2008-04-01 1800 500 410 10 | 2008-05-20 2300 500 410 11 | 2008-06-15 800 1920 410 12 | }\accounts 13 | 14 | % requires: \usepackage{pgfcalendar} 15 | 16 | \pgfplotstableset{columns={date, account2}} 17 | \pgfplotstabletypeset[ 18 | every head row/.style={ 19 | before row=\toprule,after row=\midrule}, 20 | every last row/.style={ 21 | after row=\bottomrule}, 22 | columns/date/.style={string type}, 23 | columns/account2/.style={fixed, dec sep align}] 24 | \accounts 25 | 26 | % Pacote siunitx tem conflito com o pgfcalendar. Eles nao podem 27 | % coexistir no preambulo. O siunitx eh mais util e sera mantido. 28 | 29 | \hspace{1cm} 30 | 31 | \pgfplotstabletypeset[ 32 | columns={date, account1}, 33 | column type=r, 34 | columns/date/.style={date type={\monthname\ \year}}, 35 | columns/account1/.style={ 36 | fixed, dec sep align, 37 | fonts by sign={}{\color{red}} 38 | }] 39 | \accounts 40 | -------------------------------------------------------------------------------- /src/dist_binom.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | binompf(\k,\n,\p)=\n!/(\k!*(\n-\k)!)*\p^\k*(1-\p)^(\n-\k); 4 | }, 5 | hplot/.style={ycomb, mark=o}] 6 | 7 | \begin{axis}[ 8 | width=10cm, height=6cm, 9 | xlabel=$x$, ylabel=$p(x)$, 10 | xlabel style={at={(1,0)}, anchor=north west}, 11 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 12 | legend style={draw=none, fill=none, font=\footnotesize}, 13 | legend cell align=left, 14 | ymax=0.45, 15 | samples at={0,1,...,30}, 16 | yticklabel style={ 17 | /pgf/number format/fixed, 18 | /pgf/number format/fixed zerofill, 19 | /pgf/number format/precision=1 20 | }] 21 | 22 | \addplot[hplot] {binompf(x, 30, 0.3)}; 23 | \addlegendentry{$n=30$, $p=0.3$} 24 | 25 | \addplot[hplot, red] {binompf(x, 30, 0.7)}; 26 | \addlegendentry{$n=30$, $p=0.7$} 27 | 28 | \addplot[hplot, green] {binompf(x, 30, 0.9)}; 29 | \addlegendentry{$n=30$, $p=0.9$} 30 | 31 | \addplot[hplot, blue, samples at={0,1,...,10}] 32 | {binompf(x, 10, 0.3)}; 33 | \addlegendentry{$n=10$, $p=0.3$} 34 | 35 | \node at (axis description cs: 0.33, 0.8) 36 | {$p(x) = \binom{n}{p}\cdot p^x \cdot (1-p)^{n-x} $}; 37 | 38 | \end{axis} 39 | \end{tikzpicture} 40 | -------------------------------------------------------------------------------- /src/tree_3.pgf: -------------------------------------------------------------------------------- 1 | \usetikzlibrary{trees}% 2 | \begin{tikzpicture}[ 3 | font=\small, 4 | every node/.style={ 5 | % top color=white, 6 | % bottom color=blue!25, 7 | rectangle, 8 | rounded corners, 9 | minimum size=6mm, 10 | % draw=blue!75, 11 | very thick, 12 | % drop shadow, 13 | align=center 14 | }, 15 | edge from parent/.style={draw=blue!50,thick}, 16 | level 1/.style={sibling distance=6cm}, 17 | level 2/.style={sibling distance=2.5cm}, 18 | level 3/.style={sibling distance=1.75cm}, 19 | level distance=2cm, 20 | edge from parent fork down 21 | ] 22 | 23 | \node {Paletizador} % root 24 | child { node {Inicializaaaao\\de sistema} 25 | child { node {Sensor X}} 26 | child { node {Aaaaao Y}} 27 | } 28 | child { node {Sacos} 29 | child { node {Linha/Coluna} 30 | child { node {Garra}} 31 | child { node {Rodar Garra}} 32 | child { node {Aaaao Y2}} 33 | } 34 | child { node {Euro Pallet}} 35 | child { node {Disposaaaao $xyz$} 36 | child { node {$x=?$}} 37 | child { node {$y=?$}} 38 | child { node {$z=?$}} 39 | } 40 | } 41 | child { node {Sistema de despacho} 42 | child { node {Sensor de peso\\/contador}} 43 | child { node {Tapete rolante\\de saaaaada}} 44 | } 45 | ; 46 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/eqn_LU.pgf: -------------------------------------------------------------------------------- 1 | \newcommand{\tm}[1]{\tikz[overlay, anchor=base] \node[red] (#1) {};} 2 | \tikzstyle{every picture}+=[remember picture] 3 | \tikzset{ 4 | >=stealth, 5 | every path/.style={->, color=darkgreen, thin}, 6 | every node/.style={color=black}, 7 | node distance=0.5cm 8 | } 9 | 10 | \begin{tikzpicture} 11 | \node at (0.9,-0.3) 12 | {$\tm{l}\underset{p\times p}{L} 13 | \tm{u}\underset{p\times p}{L^\top} = 14 | \tm{xx}\underset{p\times p}{X^\top X}$}; 15 | \begin{scope}[yshift=-1.25cm] 16 | \node (a) at (0,0) {}; 17 | \node[right=of a] (b) {}; 18 | \node[below=of b] (c) {}; 19 | \node[below=of a] (d) {}; 20 | \draw[-, darkgreen] 21 | (a.north west) -| (c.south east); 22 | \fill[darkgreen] 23 | (a.north) -| (d.south west) -| (c.east) -- cycle; 24 | \path[draw] (l)+(1.8ex,-2ex) 25 | to[out=-90, in=90] ($(a.north)!0.5!(b.north)$); 26 | \node (a) at (1.1,0) {}; 27 | \node[right=of a] (b) {}; 28 | \node[below=of b] (c) {}; 29 | \node[below=of a] (d) {}; 30 | \fill[darkgreen] 31 | (a.west) |- (b.north east) |- (c.south) -- cycle; 32 | \draw[-, darkgreen] 33 | (a.north west) |- (c.south east); 34 | \path[draw] (u)+(1.7ex,-2ex) 35 | to[out=-90, in=90] ($(a.north)!0.5!(b.north)$); 36 | \end{scope} 37 | \end{tikzpicture} 38 | -------------------------------------------------------------------------------- /src/marcacao.pgf: -------------------------------------------------------------------------------- 1 | % http://tex.stackexchange.com/questions/3161/tikz-how-to-draw-an-arrow-in-the-middle-of-the-line 2 | 3 | \tikzset{ 4 | % style to apply some styles to each segment of a path 5 | on each segment/.style={ 6 | decorate, 7 | decoration={ 8 | show path construction, 9 | moveto code={}, 10 | lineto code={ 11 | \path [#1] (\tikzinputsegmentfirst) -- (\tikzinputsegmentlast); 12 | }, 13 | curveto code={ 14 | \path [#1] (\tikzinputsegmentfirst) .. controls 15 | (\tikzinputsegmentsupporta) and (\tikzinputsegmentsupportb) .. 16 | (\tikzinputsegmentlast); 17 | }, 18 | closepath code={ 19 | \path [#1] 20 | (\tikzinputsegmentfirst) -- (\tikzinputsegmentlast); 21 | }, 22 | }, 23 | }, 24 | % style to add an arrow in the middle of a path 25 | mid arrow/.style={ 26 | postaction={decorate, 27 | decoration={ 28 | markings, mark=at position .5 with {\arrow[#1]{stealth}} 29 | } 30 | } 31 | }, 32 | } 33 | 34 | \begin{tikzpicture} 35 | \path [draw=blue, postaction={on each segment={mid arrow=red}}] 36 | (.2,0) -- (3,1) arc (0:180:1.4 and 1) -- cycle 37 | (4,1) circle (.8) 38 | (6,1) ellipse (.5 and 1) 39 | (0,3) to [bend left] (3,4) 40 | (4,3) rectangle (6,4); 41 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/pet_logo1.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | % Essas definicoes tem que ficar aqui para nao dar esaco extra. 3 | \def\vone{0.4} 4 | \def\fone{1.4} 5 | \def\vtwo{0.105} 6 | \def\ftwo{1.4} 7 | \def\thecircle{(0,0.75) circle (1cm)} 8 | \def\thelowergauss{ 9 | plot[id=x, domain=-1:1] 10 | function{\fone*(2*pi*\vone)**(-0.5)*exp(-(x)**2/(2*\vone))} 11 | -- (1, -0.5) -- (-1,-0.5) -- cycle 12 | } 13 | \def\theuppergauss{ 14 | plot[id=x, domain=-1:1] 15 | function{\ftwo*(2*pi*\vtwo)**(-0.5)*exp(-(x)**2/(2*\vtwo))} 16 | -- (1, -0.5) -- (-1,-0.5) -- cycle 17 | } 18 | 19 | \begin{scope} 20 | \fill[blue, rounded corners=5pt] (-1.5,-0.8) rectangle (1.5,2.2); 21 | \fill[white] \thecircle; 22 | \end{scope} 23 | \begin{scope} 24 | \clip \thecircle; 25 | \fill[samples=100, blue] \thelowergauss; 26 | \end{scope} 27 | \begin{scope} 28 | \clip \thecircle; 29 | \fill[samples=100, blue] \theuppergauss; 30 | \end{scope} 31 | \begin{scope} 32 | \clip \thecircle; 33 | \clip \thelowergauss; 34 | \fill[samples=100, white] \theuppergauss; 35 | \end{scope} 36 | \draw[blue] \thecircle; 37 | \begin{scope}[scale=1] 38 | \node[color=white, text width=3cm, text centered] 39 | at (0, -0.5) {\footnotesize PET Estat\'istica UFPR}; 40 | \end{scope} 41 | \end{tikzpicture} 42 | -------------------------------------------------------------------------------- /src/regressao_binomial.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[% 2 | domain=-0.25:9, xscale=0.8, yscale=0.25, 3 | aponta/.style={ 4 | color=green!50!blue, rounded corners=5pt, -latex, thick 5 | }] 6 | 7 | \draw[-latex] (-0.2,0) -- (10,0) node[right] {$x$}; 8 | \draw[-latex] (0,-0.2) -- (0,20) node[above] (E) {$\textrm{E}(Y|x)$}; 9 | 10 | \def\A{-3}; \def\B{0.8}; 11 | \draw[color=black, thick] 12 | plot[id=x] function{20/(1+exp(-\A-\B*x))} 13 | node[right] (eta) 14 | {$\displaystyle\frac{n}{1+\exp\{-(\theta_0+\theta_1 x)\}}$}; 15 | 16 | \node (Q) at (5,25) {$Q(Y|x) = \eta(x, \theta)$}; 17 | \node (N) at (5,22) {$[Y|x]\sim$ Binomial($p$, $n$)}; 18 | \path[aponta] (5.8,14.5) edge[bend left=10] (N); 19 | 20 | \draw[aponta] (Q) -| (E); 21 | \draw[aponta] (Q) -| (eta); 22 | 23 | \foreach[evaluate=\x as \p using 1/(1+exp(-\A-\B*\x))] 24 | \x in {0.5, 2.2, ..., 8.5}{ 25 | \draw[color=gray, dashed] (\x,0) -- ++(0,20); 26 | \def\lim{20}; 27 | % \node[below] at (\x,0) {\p}; 28 | \begin{scope}[xshift=\x cm, rotate=90, yscale=4] 29 | \draw[color=black, very thick] 30 | plot[ycomb, samples=\lim+1, domain=0:\lim] 31 | function {-(gamma(\lim+1)/(gamma(x+1)* 32 | (gamma(\lim-x+1))))*\p**x*(1-\p)**(\lim-x)}; 33 | \end{scope} 34 | } 35 | 36 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/factorial-2k-lack-of-fit.pgf: -------------------------------------------------------------------------------- 1 | \usetikzlibrary{decorations.pathreplacing}% 2 | \begin{tikzpicture} 3 | \begin{axis}[ 4 | samples = 10, 5 | view = {-25}{30}, 6 | xtick = {-1, 0, 1}, 7 | ytick = {-1, 0, 1}, 8 | % ztick = {0}, 9 | xlabel = A, 10 | ylabel = B, 11 | zlabel = y, 12 | zlabel style = {rotate = -90}] 13 | 14 | \addplot3[surf, domain = -1.05:1.05, opacity = 0.25] {5 + x + y + 0.5 * x * y}; 15 | \draw[thick] (axis cs: 0, 0, 5) -- (axis cs: 0, 0, 8); 16 | \draw[dashed] (axis cs: 0, 0, 8) -- (axis cs: 1, 0, 8); 17 | \draw[dashed] (axis cs: 0, 0, 8) -- (axis cs: 0, 1, 8); 18 | \fill (axis cs: 0, 0, 8.0) circle (2pt) node[left] {$\bar{y}_{pc}$}; 19 | 20 | \draw (axis cs: 0, 0, 5.0) circle (2pt) node[left] {$\hat{y}$}; 21 | \fill (axis cs:-1, -1, 3.5) circle (2pt) node[right] {$\bar{y}_{(1)}$}; 22 | \fill (axis cs:-1, 1, 4.5) circle (2pt) node[right] {$\bar{y}_{b}$}; 23 | \fill (axis cs: 1, -1, 4.5) circle (2pt) node[left] {$\bar{y}_{a}$}; 24 | \fill (axis cs: 1, 1, 7.5) circle (2pt) node[left] {$\bar{y}_{ab}$}; 25 | 26 | \draw [decorate, -, decoration = {brace, amplitude = 1ex}, 27 | xshift = 5pt, yshift = 0pt] (axis cs: 0, 0, 8) -- (axis cs: 0, 0, 5) 28 | node [midway, xshift = 2pt, anchor = west] {LOF}; 29 | 30 | \end{axis} 31 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/efeito_manejo.pgf: -------------------------------------------------------------------------------- 1 | \def\xs{1} 2 | \def\ys{10} 3 | 4 | \begin{tikzpicture}[xscale=\xs, yscale=\ys, >=latex] 5 | % definicoes dos valores dos parametros e outras quantidades 6 | \def\al{1.3} 7 | \def\all{0.5} 8 | \def\n{1.6} 9 | \def\nn{1.9} 10 | 11 | % grid, eixos e anotacoes 12 | \draw[very thin,color=gray!30] (-3-0.2/\xs,0-0.2/\ys) 13 | grid[xstep=0.5, ystep=0.05] (5+0.2/\xs,0.4+0.2/\ys); 14 | \draw[->, line width=1pt] (-3,0) -- (5.25,0) node[below] {$r$}; 15 | \draw[->, line width=1pt] (-3,0) -- (-3,0.43) node[left] {$f(r)$}; 16 | \node[left] at (-3,0) {$0$}; 17 | 18 | % funcoes 19 | \draw[color=darkgreen, thick, smooth] plot[id=x, domain=-3:5] 20 | function{\n*(1-1/\n)*\al**\n*exp(\n*x)* 21 | (1+(\al*exp(x))**\n)**(-1+1/\n-1)}; 22 | \draw[color=red!30!black, thick, smooth] plot[id=x, domain=-3:5] 23 | function{\nn*(1-1/\nn)*\all**\nn*exp(\nn*x)* 24 | (1+(\all*exp(x))**\nn)**(-1+1/\nn-1)}; 25 | 26 | % textos 27 | \path[->, draw] (-0.5,0.2) to[out=180, in=0] ++(-0.75,0.05) 28 | node[anchor=east, text ragged left, text width=9ex, 29 | fill=white, inner sep=0pt] 30 | {antes do manejo}; 31 | \path[->, draw] (2,0.25) to[out=0, in=180] ++(0.75,0.05) 32 | node[anchor=west, text ragged, text width=8ex, 33 | fill=white, inner sep=0pt] 34 | {ap\'os o manejo}; 35 | \end{tikzpicture} 36 | -------------------------------------------------------------------------------- /src/naolinear5curvas.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture} 2 | \def\xs{0.7}; \def\ys{1.2} 3 | % Michaelis-Menten 4 | \def\A{2.3}; \def\V{1} 5 | % Logistico 6 | \def\Ass{2.5}; \def\xhaf{1.6}; \def\Scal{0.3} 7 | % Exponencial decaimento 8 | \def\Int{2.5}; \def\B{0.6} 9 | % Linear-plato 10 | \def\bz{0.25}; \def\bu{0.5}; \def\xb{2} 11 | % Bleasdale-Nelder 12 | \def\ty{2.5}; \def\tx{1}; \def\tc{0.2} 13 | \begin{scope}[xscale=\xs, yscale=\ys, >=latex, domain=0:4.8] 14 | \draw[->] (0-0.2*\ys,0) -- (5,0) node[below] {$x$}; 15 | \draw[->] (0,0-0.2*\xs) -- (0,3) 16 | node[left] {$f(x,\boldsymbol{\theta})$}; 17 | \draw[color=green!80!black, ultra thick, smooth, dotted] 18 | plot[id=x] function{\Ass/(1+exp(-(x-\xhaf)/\Scal))} 19 | node[right] {1}; 20 | \draw[color=darkgreen, thick, smooth, dashed] 21 | plot[id=x] function{\A*x/(\V+x)} 22 | node[right] {2}; 23 | \draw[color=green!50!black, thick, smooth] 24 | plot[id=x] function{\ty*(x/\tx)*(1-\tc*(1-x/\tx))**(-1/\tc)} 25 | node[right] {4}; 26 | \draw[color=darkgreen, ultra thick, smooth] 27 | plot[id=x] function{\bz+\bu*x*(x<\xb)+\bu*\xb*(x>\xb)} 28 | node[right] {3}; 29 | \draw[color=green!10!black, thin, smooth] 30 | plot[id=x] function{\Int*exp(-\B*x)} 31 | node[right] {5}; 32 | \end{scope} 33 | \end{tikzpicture} 34 | -------------------------------------------------------------------------------- /src/dist_normal.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | normalpdf(\x,\mu,\sigma)= 4 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 5 | }, 6 | hplot/.style={ycomb, mark=o, dashed}] 7 | 8 | \begin{axis}[ 9 | width=12cm, height=6cm, 10 | samples=50, 11 | xlabel=$x$, ylabel=$f(x)$, 12 | xlabel style={at={(1,0)}, anchor=north west}, 13 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 14 | legend style={draw=none, fill=none}, 15 | domain=-6:9, 16 | legend cell align=left, 17 | xmin=-7, xmax=11] 18 | 19 | \addplot [smooth, thick] {normalpdf(x,0,1)} 20 | node[pos=0.47, pin={right:$\mu=0,\sigma^2=1$}] {}; 21 | \addplot [smooth, blue] {normalpdf(x,0,2)} 22 | node[pos=0.6, pin={45:$\mu=0,\sigma^2=2$}] {}; 23 | \addplot [smooth, red] {normalpdf(x,-2,1)} 24 | node[pos=0.25, pin={[text centered, text width=8ex] 25 | 200:$\mu=-1$, $\sigma^2=1$}] {}; 26 | 27 | \addplot [hplot, samples at={0}] {normalpdf(x,0,1)}; 28 | \addplot [hplot, samples at={0}, blue] {normalpdf(x,0,2)}; 29 | \addplot [hplot, samples at={-2}, red] {normalpdf(x,-2,1)}; 30 | 31 | \node[anchor=north east] at (axis description cs: 0.975, 0.95) 32 | {$f(x) = \dfrac{1}{\sqrt{2\pi\sigma^2}}\cdot 33 | \exp\left\{-\frac{(x-\mu)^2}{2\sigma^2}\right\}$}; 34 | 35 | \end{axis} 36 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/file_tree.pgf: -------------------------------------------------------------------------------- 1 | % http://tex.stackexchange.com/questions/23647/drawing-a-directory-listing-a-la-the-tree-command-in-tikz 2 | 3 | \tikzset{ 4 | every node/.style={ 5 | thick, anchor=west, rounded corners, 6 | font={\scriptsize\ttfamily}, inner sep=2.5pt}, 7 | selected/.style={draw=blue,fill=blue!10}, 8 | root/.style={selected, fill=blue!30} 9 | } 10 | 11 | \begin{tikzpicture}[% 12 | scale=.7, 13 | grow via three points={ 14 | one child at (0.5,-0.65) and two children 15 | at (0.5,-0.65) and (0.5,-1.1) 16 | }, 17 | edge from parent path={ 18 | (\tikzparentnode.south) |- (\tikzchildnode.west) 19 | }] 20 | 21 | \node [root] {src} 22 | child { node [selected] {asf} 23 | child { node [selected] {avr32} 24 | child { node [selected] {drivers} 25 | child { node [selected] {canif} 26 | child { node {canif.h}} 27 | child { node {canif.c}} 28 | } 29 | } 30 | } 31 | } 32 | child { node at (0,-3.5) [selected] {net} 33 | child { node [selected] {can} 34 | child { node {can.h}} 35 | child { node {can\_mob.h}} 36 | child { node {can\_mob.c}} 37 | child { node {can\_port.h}} 38 | child { node {can\_port.c}} 39 | child { node {can\_trcv.h}} 40 | child { node {can\_trcv.c}} 41 | } 42 | } 43 | child { node at (0,-8) {\dots}}; 44 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/ponto_erro.pgf: -------------------------------------------------------------------------------- 1 | %% http://tex.stackexchange.com/questions/240180/pgfplots-conditional-data-filtering 2 | 3 | \begin{filecontents*}{mydata.dat} 4 | C P1 P2 P3 sigP3 5 | 1 1.12E-4 0.06189 0.1865 0.0080 6 | 1 6.03E-3 0.00000 0.2517 0.0046 7 | 1 2.64E-2 0.00000 0.2247 0.0165 8 | 2 6.49E-5 0.00000 0.1906 0.0043 9 | 2 1.27E-5 0.00296 0.2120 0.0039 10 | 2 3.34E-4 0.00865 0.1709 0.0050 11 | 3 1.59E-2 0.01857 0.1596 0.0216 12 | 3 7.10E-4 0.01857 0.2547 0.0316 13 | 3 3.23E-5 0.00526 0.1557 0.0051 14 | 3 2.33E-4 0.01857 0.2008 0.0136 15 | 3 5.80E-4 0.01857 0.2389 0.0172 16 | \end{filecontents*} 17 | 18 | \pgfplotsset{ 19 | legend cell align=right, 20 | legend style={font=\footnotesize,legend pos=outer north east} 21 | } 22 | 23 | \begin{tikzpicture} 24 | \begin{semilogxaxis}[ 25 | enlargelimits=false, axis on top, 26 | width=12cm, height=8cm, 27 | xlabel={$\Pi_1$}, 28 | ylabel={$\Pi_3$}, 29 | ymin=0.1, ymax=0.35, 30 | xmin=1E-5, xmax=1E-1, 31 | log basis x=10] 32 | 33 | \pgfplotsinvokeforeach{1,2,3}{ 34 | \addplot+[only marks, error bars/.cd, y dir=both, y explicit] 35 | table[x=P1,y=P3, y error=sigP3, 36 | restrict expr to domain={\thisrow{C}}{#1:#1}]{mydata.dat}; 37 | \addlegendentry{Cond. #1}; 38 | } 39 | \end{semilogxaxis} 40 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/barras.pgf: -------------------------------------------------------------------------------- 1 | \pgfplotsset{ 2 | select row/.style={ 3 | x filter/.code={\ifnum\coordindex=#1\else\def\pgfmathresult{}\fi} 4 | } 5 | } 6 | 7 | \pgfplotstableread[col sep=comma,header=false]{ 8 | 1999/00,167.1 9 | 2000/1,172.5 10 | 2001/2,175 11 | 2002/3,179.3 12 | 2003/4,184.4 13 | 2004/5,188 14 | 2005/6,201.7 15 | 2006/7,208.3 16 | 2007/8,210.2 17 | 2008/9,210.5 18 | 2009/10,209.8 19 | 2010/11,207.5 20 | 2011/12,203.4 21 | 2012/13,198.2 22 | % 2013/14(YTD),97 23 | }\datatable 24 | 25 | \begin{tikzpicture}[scale=0.8] 26 | \begin{axis}[ 27 | % title=Australia's Primary Energy Consumption by sector - 2012, 28 | ybar, bar shift=0pt, 29 | enlarge y limits=0.1, 30 | % xmin=0, 31 | xtick={0,...,13}, 32 | xticklabels from table={\datatable}{0}, 33 | ymajorgrids = true, 34 | bar width=3mm, 35 | width=12cm, height=9cm, 36 | xlabel={year}, 37 | ylabel={TWh}, 38 | x tick label style={font=\footnotesize,rotate=45, anchor=east}, 39 | nodes near coords align={horizontal}] 40 | 41 | \pgfplotsinvokeforeach{0,...,13}{ 42 | \addplot table [x expr=\coordindex, select row=#1] {\datatable}; 43 | } 44 | \node[ 45 | pin={[pin distance=1cm, pin edge={<-,>=stealth'}, 46 | shift={(-1.2cm,0.5cm)}] 47 | Tasmania entry to NEM}] at (axis cs:5,190) {}; 48 | \end{axis} 49 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/dist_normal_2.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | normalpdf(\x,\mu,\sigma)= 4 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 5 | }, 6 | hplot/.style={ycomb, mark=o, dashed}] 7 | 8 | \begin{axis}[ 9 | width=8cm, 10 | height=6cm, 11 | samples=50, 12 | xlabel=$y$, ylabel=$f(y)$, 13 | legend style={draw=none, fill=none}, 14 | domain=-5:5, 15 | legend cell align=left, 16 | % xmin=-7, xmax=11 17 | clip=false] 18 | 19 | \addplot [smooth, thick, fill = cyan, fill opacity=0.3] {normalpdf(x,0,1)} 20 | node[pos=0.57, pin={[text opacity=1, text width=5em]right:$\mu=0$\\ $\sigma^2=1$}] {}; 21 | \addplot [ycomb, samples at={0}] {normalpdf(x,0,1)}; 22 | 23 | \node[anchor=north] at (axis description cs: 0.5, 1.30) 24 | {$f(y) = \dfrac{1}{\sqrt{2\pi\sigma^2}}\cdot 25 | \exp\left\{-\displaystyle\frac{(y-\mu)^2}{2\sigma^2}\right\}$}; 26 | 27 | \end{axis} 28 | \end{tikzpicture}\addplot [hplot, samples at={0}] {normalpdf(x,0,1)}; 29 | \addplot [hplot, samples at={0}, blue] {normalpdf(x,0,2)}; 30 | \addplot [hplot, samples at={-2}, red] {normalpdf(x,-2,1)}; 31 | 32 | \node[anchor=north east] at (axis description cs: 0.975, 0.95) 33 | {$f(x) = \dfrac{1}{\sqrt{2\pi\sigma^2}}\cdot 34 | \exp\left\{-\frac{(x-\mu)^2}{2\sigma^2}\right\}$}; 35 | 36 | \end{axis} 37 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/consistency-of-estimator.pgf: -------------------------------------------------------------------------------- 1 | % https://tex.stackexchange.com/questions/243521/how-can-i-rotate-a-function 2 | \pgfmathdeclarefunction{gauss}{2}{% 3 | \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((\x-#1)^2)/(2*#2^2))}% 4 | }% 5 | \begin{tikzpicture}[ 6 | scale = 0.5, 7 | >=stealth', 8 | node distance = 4mm, 9 | domain = -3:3, 10 | samples = 60] 11 | 12 | \begin{scope} 13 | \foreach \var [count = \pos] in {0.8, 0.6, 0.4, 0.3, 0.2, 0.15} { 14 | \draw[draw = orange, fill = orange!50, thick, smooth, domain = -4*\var:4*\var] 15 | plot ({gauss(0, \var) + 2.2*\pos - 1.75}, 1 + \x - 0.14*\pos); 16 | } 17 | \draw[dashed] (-0.25, 0) node[left] {$\theta$} -- +(15, 0); 18 | \draw[->] (-0.1, -3) -- +(15, 0) node[below] {$n$}; 19 | \draw[->] (0, -3.1) -- (0, 4) node[left] {$\hat{\theta}_1$}; 20 | \end{scope} 21 | 22 | \begin{scope}[yshift = -8cm] 23 | \foreach \var [count = \pos] in {0.6, 0.5, 0.4, 0.3, 0.2, 0.15} { 24 | \draw[draw = blue, fill = blue!50, thick, smooth, domain = -5*\var:5*\var] 25 | plot ({gauss(0, 1.5*\var) + 2.2*\pos - 1.75}, \x); 26 | } 27 | \draw[dashed] (-0.25, 0) node[left] {$\theta$} -- +(15, 0); 28 | \draw[->] (-0.1, -3) -- +(15, 0) node[below] {$n$}; 29 | \draw[->] (0, -3.1) -- (0, 4) node[left] {$\hat{\theta}_2$}; 30 | \end{scope} 31 | 32 | \end{tikzpicture}%------------------------------------------------------ -------------------------------------------------------------------------------- /src/dist_duas_normais.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | normalpdf(\x,\mu,\sigma)= 4 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 5 | }] 6 | 7 | \def\muA{3} 8 | \def\muB{6} 9 | \def\sA{1} 10 | \def\sB{1} 11 | \def\k{4.1} 12 | \def\xmin{-1} 13 | \def\xmax{10} 14 | \def\ymin{-0.01} 15 | \def\ymax{0.43} 16 | 17 | \begin{axis}[ 18 | width=10cm, height=5cm, 19 | samples=50, 20 | domain=\xmin:\xmax, 21 | xlabel=$x$, ylabel=$f(x)$, 22 | xlabel style={at={(1,0)}, anchor=north west}, 23 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 24 | xticklabels=\empty, 25 | yticklabels=\empty, 26 | extra x ticks={\k,\muA,\muB}, 27 | extra x tick labels={\k,\muA,\muB}, 28 | extra tick style={grid=major, color=black, dashed, thick}, 29 | legend style={draw=none, fill=none}, 30 | every axis legend/.append style={at={(0.5,1.03)}, anchor=south}] 31 | 32 | \addplot [smooth] {normalpdf(x,\muA,\sA)}; 33 | \addlegendentry{$\mu_f=\muA$, $\sigma_f=\sA$}; 34 | \addplot [smooth, thick] {normalpdf(x,\muB,\sB)}; 35 | \addlegendentry{$\mu_m=\muB$, $\sigma_m=\sB$}; 36 | \addplot [ycomb, mark=o, samples at={\muA}, dotted] 37 | {normalpdf(x,\muA,\sA)}; 38 | \addplot [ycomb, mark=o, samples at={\muB}, dotted, blue] 39 | {normalpdf(x,\muB,\sB)}; 40 | \end{axis} 41 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/fatadi_arranjo_herbi.pgf: -------------------------------------------------------------------------------- 1 | \def\d{1cm} 2 | \def\k{1.4} 3 | 4 | \begin{tikzpicture}[ 5 | yscale=0.6, 6 | node distance=1 and 0.5, 7 | fator1/.style={% 8 | fill=gray!50, text width=2.5cm, text centered, minimum height=3em}, 9 | fator2/.style={% 10 | fill=darkgreen!80, text width=1.5cm, text centered}, 11 | profator2/.style={% 12 | grow=down, xshift=-0.2cm, solid, %anchor=west, 13 | edge from parent path={ 14 | (\tikzparentnode.south west) |- (\tikzchildnode.west) 15 | }, 16 | }, 17 | level1/.style ={level distance=1.5cm}, 18 | level2/.style ={level distance=2.5cm}, 19 | level3/.style ={level distance=3.5cm}] 20 | 21 | \node[fator1] (H1) {Herbic\'{i}da\\ A} 22 | child [profator2, level1] {node[fator2] {1 L}} 23 | child [profator2, level2] {node[fator2] {2 L}} 24 | child [profator2, level3] {node[fator2] {3 L}}; 25 | \node[fator1, right=of H1] (H2) {Herbic\'{i}da\\ B} 26 | child [profator2, level1] {node[fator2] {1 L}} 27 | child [profator2, level2] {node[fator2] {2 L}} 28 | child [profator2, level3] {node[fator2] {3 L}}; 29 | \node[fator1, right=of H2] (Tm) 30 | {Sem herbic\'ida \\ \textbf{Sem} capina}; 31 | \node[fator1, right=of Tm] (TM) 32 | {Sem herbic\'ida \\ \textbf{Com} capina}; 33 | \draw (H1) |- ($(H2)+(0,\k)$); 34 | \draw (H2) |- ($(Tm)+(0,\k)$); 35 | \draw (Tm) |- ($(TM)+(0,\k)$) -- (TM); 36 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/modelo_decaimento_CV.pgf: -------------------------------------------------------------------------------- 1 | \def\bzero{0.1} 2 | \def\bum{1} 3 | \def\boti{4} 4 | \def\dd{-3.5} 5 | 6 | \begin{tikzpicture}[domain=1:8, xscale=1, yscale=5, >=latex] 7 | \draw[->, line width=1pt] (0,0) -- (10,0) node[below] {$n$}; 8 | \draw[->, line width=1pt] (0,0) -- (0,1.2) node[left] {$CV(n)$}; 9 | \draw[color=green!30!black, thick, smooth, samples=50] 10 | plot[id=x, domain=0.9:9.7] 11 | function{\bzero+(\bum-\bzero)/(1+((1-0.15)/0.15)*((x-1)/\boti))}; 12 | \draw[dashed] (1,0) node[below] {$1$} |- (0,\bum) 13 | node[left] {$b_1 = CV(1)$}; 14 | \draw[dashed] (0,\bzero) node[left] 15 | {$b_0 = \displaystyle\lim_{n\to\infty} CV(n)$} -- (10,\bzero); 16 | \draw[dashed] (\boti,0) node[below] {$b_2$} |- (0,0.28) 17 | node[left] {$b_0+q(b_1-b_0)$}; 18 | \draw [decorate, decoration={brace,amplitude=4pt}] 19 | (\dd,0.1) -- (\dd,0.28) node [black,midway,left=4pt] {$q$}; 20 | \draw [decorate, decoration={brace,amplitude=4pt}] 21 | (\dd,0.28) -- (\dd,1) node [black,midway,left=4pt] {$1-q$}; 22 | \node[anchor=base, fill=white] (vg) at (6,1) 23 | {$\displaystyle CV(n) = b_0+\frac{b_1-b_0}{ 24 | 1+\displaystyle\frac{1-q}{q}\cdot\frac{n-1}{b_2-1}}$}; 25 | \path[->] (\boti,0.28) edge[bend left=10] 26 | node [at end,right,fill=white, text width=5cm, text ragged] 27 | {tamanho {\'o}timo de parcela correspondente {\`a} $q$.} ++(1,0.2); 28 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/testHipProp1.pgf: -------------------------------------------------------------------------------- 1 | \def\zright{1.645} 2 | \def\muzero{0} 3 | \def\muone{-1.95} 4 | 5 | \pgfplotsset{ 6 | myplot/.style={ 7 | width=12cm, height=6cm, 8 | xlabel=$z$, ylabel=$f(z)$, 9 | samples=50, 10 | legend style={draw=none, fill=none}, 11 | } 12 | } 13 | 14 | \begin{tikzpicture}[ 15 | >=stealth, 16 | every node/.style={rounded corners}, 17 | Red/.style={ 18 | draw=none, text opacity=1, fill=red!70!blue, fill opacity=0.75 19 | }, 20 | Yellow/.style={ 21 | draw=none, text opacity=1, fill=yellow, fill opacity=0.25 22 | }, 23 | declare function={ 24 | normalpdf(\x,\mu,\sigma)= 25 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 26 | }] 27 | 28 | \begin{axis}[myplot] 29 | \addplot[Red, smooth, domain=\zright:5] 30 | {normalpdf(x,\muzero,1)} \closedcycle; 31 | \addplot[Yellow, smooth, domain=-5:\zright] 32 | {normalpdf(x,\muzero,1)} \closedcycle; 33 | \addplot[smooth, thick, domain=-4:4] 34 | {normalpdf(x,0,1)}; 35 | \path[<->, draw] (axis cs: \zright,0) 36 | to[out=90, in=180] (axis description cs: 0.75,0.4) 37 | node[right] {$z_{\alpha}=\zright$}; 38 | \path[<->, draw] (axis cs: \muone,0) 39 | to[out=90, in=0] (axis description cs: 0.28,0.25) 40 | node[left] {$z_0=\muone$}; 41 | \node at (axis description cs: 0.5,0.3) {$1-\alpha = 0.95$}; 42 | \end{axis} 43 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/hypothesis-test-intuition.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[>=stealth, 2 | every node/.style = {rounded corners}, 3 | declare function={ 4 | normalpdf(\x,\mu,\sigma)= 5 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 6 | }, 7 | mynode/.style = {draw = none, solid, fill = orange!40, rounded corners = 2pt}] 8 | 9 | \begin{axis}[ 10 | samples = 150, 11 | xlabel = $\hat{p}$, 12 | width = 9cm, height = 7cm, 13 | yticklabels = {,,}, 14 | ymax = 12.5, 15 | ] 16 | 17 | \addplot[smooth, thick, domain = 0:1, draw = none, fill = magenta!10] {normalpdf(x, 0.5, 0.05)}; 18 | \addplot[smooth, thick, domain = 0:1] {normalpdf(x, 0.5, 0.05)}; 19 | 20 | \addplot +[<-, mark = none, black] coordinates {(0.5, 0) (0.5, 10)} 21 | node[mynode, fill = cyan!40, above] {$p_0 = 0,\!5$}; 22 | 23 | \addplot +[<-, mark = none, dashed, black] coordinates {(0.54, 0) (0.54, 8.25)} 24 | node[mynode, above] {$\hat{p} = 0,\!54$}; 25 | \addplot +[<-, mark = none, dashed, black] coordinates {(0.65, 0) (0.65, 4)} 26 | node[mynode, above] {$\hat{p} = 0,\!65$}; 27 | \addplot +[<-, mark = none, dashed, black] coordinates {(0.92, 0) (0.92, 2)} 28 | node[mynode, above] {$\hat{p} = 0,\!92$}; 29 | 30 | \node[below right] at (rel axis cs: 0.025, 0.975) {$n = 100$}; 31 | 32 | \end{axis} 33 | 34 | \end{tikzpicture}%------------------------------------------------------ -------------------------------------------------------------------------------- /src/caixa_texto2.pgf: -------------------------------------------------------------------------------- 1 | % https://blog.karssen.org/2009/09/14/using-tikz-to-generate-an-abstract-box-in-latex/ 2 | 3 | \tikzset{ 4 | abstractbox/.style={ 5 | draw=black, fill=white, rectangle, 6 | inner sep=10pt, style=rounded corners, 7 | drop shadow={fill=black, opacity=1} 8 | }, 9 | abstracttitle/.style={fill=white} 10 | } 11 | 12 | \newcommand{\boxabstract}[2][fill=white]{ 13 | \begin{tikzpicture} 14 | \node [abstractbox, #1] (box) 15 | {\begin{minipage}{0.80\linewidth} 16 | \setlength{\parindent}{2mm} % Indentar. 17 | \footnotesize #2 18 | \end{minipage}}; 19 | \node[abstracttitle, right=10pt] at (box.north west) {Abstract}; 20 | \node[draw=none, fit=(box)] {}; 21 | \end{tikzpicture} 22 | } 23 | 24 | \boxabstract{ 25 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum 26 | egestas tempor bibendum. Pellentesque et elit eu tellus malesuada 27 | consequat. Donec lacinia volutpat tortor quis aliquet. Vestibulum 28 | posuere vehicula massa non ornare. Praesent condimentum maximus 29 | consectetur. Cras porttitor eget augue vitae lacinia. Nunc eu bibendum 30 | mauris. Sed a libero velit. Nunc sed posuere leo, a bibendum 31 | dui. Vivamus quis purus accumsan, euismod sem pellentesque, facilisis 32 | nisl. Donec a massa pulvinar, ultrices arcu nec, ultricies 33 | enim. Quisque id condimentum orci. Fusce id vulputate leo, vel ornare 34 | lorem. 35 | } 36 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | body, td, caption { 2 | font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; 3 | background-color: white; 4 | font-size: 16px; 5 | } 6 | 7 | tt, code, pre { 8 | font-family: "Inconsolata", "Andale Mono", monospace; 9 | } 10 | 11 | /* Controla o título. */ 12 | #header { 13 | text-align: center; 14 | border-bottom: 1px solid black; 15 | margin-bottom: 20px; 16 | } 17 | 18 | /* Controla o sumário. */ 19 | /* #TOC { display: block; } */ 20 | /* h1.title {} */ 21 | /* h4.author {} */ 22 | /* code { font-size: 16px; } */ 23 | 24 | p { 25 | /* margin: 0px 0px 10px; */ 26 | text-indent: 1em; 27 | text-align: justify; 28 | } 29 | 30 | pre { 31 | word-break: keep-all; 32 | } 33 | 34 | pre code { 35 | font-size: 14px; 36 | } 37 | 38 | pre:not([class]) code { 39 | background-color: #92BFB1; 40 | } 41 | pre, code { 42 | background-color: #62BFB1; 43 | border-radius: 3px; 44 | color: #333; 45 | } 46 | 47 | /* R output */ 48 | pre:not([class]) code { 49 | background-color: #D4D4D4; 50 | } 51 | pre:not([class]), code { 52 | background-color: #D4D4D4; 53 | } 54 | 55 | /* R input */ 56 | pre, code { 57 | border-radius: 3px; 58 | background-color: #EDEDED; 59 | color: #333; 60 | } 61 | 62 | img { 63 | max-width: 100% !important; 64 | display: block; 65 | margin: auto; 66 | } 67 | 68 | .MathJax { 69 | font-size: 80% !important; 70 | } 71 | -------------------------------------------------------------------------------- /src/confidence-interval-mean-z-scores.pgf: -------------------------------------------------------------------------------- 1 | \pgfplotsset{ 2 | myplot/.style={ 3 | width = 12cm, height = 6cm, 4 | xlabel = $z$, ylabel = $f(z)$, 5 | samples = 75, 6 | xlabel style = {at = {(1,0)}, anchor = west}, 7 | ylabel style = {rotate = -90, at = {(0, 1)}, anchor = south west}, 8 | legend style = {draw = none, fill = none}, 9 | } 10 | } 11 | 12 | \begin{tikzpicture}[>=stealth, 13 | every node/.style={rounded corners}, 14 | declare function={ 15 | normalpdf(\x,\mu,\sigma)= 16 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 17 | }] 18 | 19 | \begin{axis}[myplot, smooth] 20 | 21 | \foreach \zValue/\al/\pos in {1.645/0.05/0.25, 1.960/0.025/0.20, 2.576/0.005/0.15} { 22 | \addplot[domain = -4:-\zValue, draw = none, fill = cyan, opacity = 0.15] {normalpdf(x, 0, 1)} \closedcycle; 23 | \addplot[domain = \zValue:4, draw = none, fill = orange, opacity = 0.15] {normalpdf(x, 0, 1)} \closedcycle; 24 | \edef\temp{\noexpand 25 | \path[<->, draw] (axis cs: -\zValue, 0) to[out = 90, in = 0] 26 | (axis cs: -2, \pos) node[left] {$-z_{\al} = -\zValue$}; 27 | } 28 | \temp 29 | \edef\temp{\noexpand 30 | \path[<->, draw] (axis cs: \zValue, 0) to[out = 90, in = 180] 31 | (axis cs: 2, \pos) node[right] {$z_{\al} = \zValue$}; 32 | } 33 | \temp 34 | } 35 | 36 | \addplot[smooth, thick, domain = -4:4, color = gray] {normalpdf(x,0,1)}; 37 | 38 | \end{axis} 39 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/regressao_nao_linear_hetero.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | domain=0:9, xscale=0.8, yscale=0.25, 3 | aponta/.style={ 4 | color=green!50!blue, rounded corners=5pt, -latex, thick 5 | }] 6 | 7 | \draw[-latex] (-0.2,0) -- (10,0) node[right] {$x$}; 8 | \draw[-latex] (0,-0.2) -- (0,20) node[above] (E) {$\textrm{E}(Y|x)$}; 9 | \def\A{18}; \def\V{2}; 10 | \draw[color=black, thick] 11 | plot[id=x] function{\A*x/(\V+x)} 12 | node[right] (eta) {$\displaystyle\frac{\theta_a x}{\theta_v+x}$}; 13 | \node (Q) at (5,25) {$Q(Y|x) = \eta(x, \theta)$}; 14 | \node (N) at (5,22) {$[Y|x]\sim$ Normal($\mu$,$\sigma$)}; 15 | \node[below right of=E, anchor=west] (V) {$\textrm{V}(Y|x)$}; 16 | \path[aponta] (3.2,11.8) edge[bend left=10] (N); 17 | \draw[aponta] (Q) -| (E); 18 | \draw[aponta] (Q) -| (V); 19 | \draw[aponta] (Q) -| (eta); 20 | \foreach[ 21 | evaluate=\x as \y using \A*\x/(\V+\x), 22 | evaluate=\y as \s using (\y^1.25)/20] 23 | \x in {0.8, 3, ..., 8}{ 24 | \draw[color=gray, dashed] (\x,0) -- ++(0,20); 25 | \def\factor{2.3} 26 | \begin{scope}[ 27 | xshift=\x cm, yshift=\y cm, 28 | rotate=-90, smooth, domain=(-4*\s):(4*\s)] 29 | \draw[color=gray] (-2*\s,0) -- (2*\s,0); 30 | \filldraw[fill opacity=0.3, fill=gray!70!black] 31 | plot[id=x] 32 | function{\factor*(2*3.14)**(-0.5)*(1/\s)* 33 | exp(-(x)**2/(2*\s**2))}; 34 | \end{scope} 35 | } 36 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/vangenuchten.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[domain=-3:5, xscale=1.5, yscale=8, >=latex] 2 | \def\tr{0.1}; \def\ts{0.6}; \def\al{1.3} 3 | \def\n{1.6}; \def\I{0.3506} 4 | % -log(al)+log(m)/n = -log(al)+log(1-1/n)/n 5 | \def\ti{0.4071}; \def\S{-0.1340}; \def\Sangle{-42}; \def\f1{0.8} 6 | \draw[very thin,color=gray!30] (-3,0) 7 | grid[xstep=0.5, ystep=0.1] (5,0.7); 8 | \draw[->, line width=1pt] (-3,0) -- (5.25,0) node[below] {$\log(x)$}; 9 | \draw[->, line width=1pt] (-3,0) -- (-3,0.75) node[left] {$\eta(x)$}; 10 | \draw[color=green!30!black, thick, smooth] 11 | plot[id=x, domain=-3:5] 12 | function{\tr+(\ts-\tr)/(1+(\al*exp(x))**\n)**(1-1/\n)} 13 | node[right] {}; 14 | \node[left] (tr) at (-3,\tr) {$\theta_r$}; 15 | \node[left] (ts) at (-3,\ts) {$\theta_s$}; 16 | \draw[dashed] (\I,0) node[below] {$I$} -- (\I,\ti) -- (-3,\ti) 17 | node[left] {$\theta_i$}; 18 | \draw[color=green!30!black, dashed] 19 | plot[id=x, domain=-1.5:3] 20 | function{\ti+\S*(x-\I)} 21 | node[right] {}; 22 | \draw [decorate, decoration={brace,amplitude=5pt}] 23 | (-3.5,\tr) -- (-3.5,\ts) node [black,midway,left=3pt] {$\Delta$}; 24 | \draw[|<->|] (\I,\ti)++(1,0) arc (0:\Sangle:0.8 and 0.15); 25 | \path (\I,\ti)++(0.5*1.5\Sangle/8:1) 26 | node[right=-1pt] {$\tan^{-1}(S)$}; 27 | \node[anchor=base] (vg) at (1,0.8) 28 | {$\eta(x) = \theta_r+\displaystyle\frac{\theta_s-\theta_r}{ 29 | (1+(\theta_a x)^{\theta_n})^{\theta_m}}$}; 30 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/linear_plato.pgf: -------------------------------------------------------------------------------- 1 | % \tikzstyle{aponta}=[-latex, dashed] 2 | % \tikzstyle{eixos}=[-latex] 3 | % \tikzstyle{fun}=[very thick] 4 | \tikzset{% 5 | aponta/.style={-latex, dashed}, 6 | eixos/.style={-latex}, 7 | fun/.style={very thick} 8 | }% 9 | 10 | \begin{tikzpicture}[domain=0:10, xscale=0.75, yscale=0.75]% 11 | % \draw[very thin,color=gray!30] (0,0) grid (10,10); 12 | % \draw[draw=gray!30] (-1,-1) rectangle (11,11); 13 | \draw[eixos] (-0.2,0) -- (10,0) node[below] {$x$}; 14 | \draw[-latex] (0,-0.2) -- (0,10) node[left] (E) {$\eta(x)$}; 15 | 16 | \def\A{3}; \def\B{1}; \def\C{4.5}; 17 | \draw[fun, color=green!60!black] 18 | plot[id=x, samples=100] 19 | function{\A+\B*x*(x<\C)+\B*\C*(x>\C)}; 20 | 21 | \coordinate (b) at (\C,\A+\B*\C); 22 | \draw (0,\A) circle (3pt) node[left] {$\theta_0$}; 23 | \draw (b) circle (3pt); 24 | \draw[aponta] (b) -- (\C,0) node[below] {$\theta_b$}; 25 | \draw[|<->|] (1,4) -- (3,4) 26 | node[midway, below, fill=white] {$\Delta x$}; 27 | \draw[|<->|] (3,4) -- (3,6) 28 | node[midway, right, fill=white] {$\Delta y$}; 29 | \node[fill=white] (b1) at (2,2) 30 | {$\theta_1 = \frac{\Delta y}{\Delta x}$}; 31 | 32 | \def\desc{-1} 33 | \draw[->|] (1,\desc) -- (\C,\desc) 34 | node[midway, below=3pt] {linear}; 35 | \draw[dashed] (0,\desc) -- (1,\desc); 36 | \draw[|<-] (\C,\desc) -- (9,\desc) 37 | node[midway, below=3pt] {plat\^o}; 38 | \draw[dashed] (9,\desc) -- (10,\desc); 39 | 40 | \end{tikzpicture}% 41 | -------------------------------------------------------------------------------- /src/reg_lof.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function={ 3 | normal(\m,\s)= 4 | 1/(2*\s*sqrt(pi))*exp(-(x-\m)^2/(2*\s^2)); 5 | }, 6 | declare function={ 7 | reg(\x,\a,\b)=\a+\b*\x; 8 | }, 9 | declare function={ 10 | qua(\x,\a,\b,\c)=\a+\b*\x+\c*\x^2; 11 | }, 12 | >=stealth, 13 | cx/.style={fill=white, font=\footnotesize}, 14 | pth/.style={draw, ->, color=darkgreen}] 15 | 16 | \begin{axis}[ 17 | width=9cm, height=6cm, 18 | xlabel=$x$: preditora, 19 | ylabel=$y$: resposta, 20 | xtick=\empty, 21 | xticklabels=\empty, 22 | yticklabels=\empty, 23 | extra x ticks={-0.9,-0.4,0.1,0.6}, 24 | extra x tick labels={$x_1$,$x_2$,$x_3$,$x_4$}, 25 | extra tick style={grid=major}] 26 | 27 | \addplot[color=black, thick, domain=-1:1, samples=2] 28 | (x, {reg(x,-0.75,3.5)}); 29 | \addplot[color=black, thick, domain=-1:1, 30 | samples=20, color=darkgreen] 31 | (x, {qua(x,0,3,-2)}); 32 | 33 | \draw[draw=red] (axis cs:9,9) -- node[pos=0.65, above, sloped] 34 | {\footnotesize $E(y) = \beta_0+\beta_1 x$} ++(axis cs:1.5,1.5); 35 | 36 | \pgfplotsinvokeforeach{-0.9,-0.4,0.1,0.6}{ 37 | \addplot[domain=-2:2, samples=30, 38 | fill=darkgreen, fill opacity=0.25, draw=none] 39 | ({#1+0.5*normal(0,0.5)}, {x+qua(#1,0,3,-2)}); 40 | \draw[dashed] (axis cs:#1, {qua(#1,0,3,-2)}) -- 41 | (axis cs:#1+0.28, {qua(#1,0,3,-2)}); 42 | } 43 | 44 | \end{axis} 45 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/reg_model_3d.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | >=stealth, 3 | declare function={ 4 | normal(\m,\s)=1/(2*\s*sqrt(pi))*exp(-(x-\m)^2/(2*\s^2)); 5 | }, 6 | declare function={ 7 | reg(\x,\a,\b)=\a+\b*\x; 8 | }] 9 | 10 | \begin{axis}[ 11 | width=9cm, 12 | height=7cm, 13 | view={45}{50}, 14 | xlabel=$x$: preditora, 15 | ylabel=$y$: resposta, 16 | zlabel=densidade, 17 | xlabel style={rotate=-25}, 18 | ylabel style={rotate=25}, 19 | zlabel style={rotate=0}, 20 | samples=60, 21 | domain=-4:12, 22 | % title=Regress\~{a}o linear simples, 23 | % grid=both, 24 | % minor tick num=2, 25 | % xtick={1,3,5,7}, 26 | % xticklabel=\empty, 27 | xtick=\empty, 28 | ztick=\empty, 29 | ytick=\empty, 30 | samples y=0, 31 | zmin=0, 32 | area plot/.style={ 33 | fill opacity=0.5, 34 | draw=none, 35 | fill=darkgreen, 36 | mark=none, 37 | smooth 38 | }] 39 | 40 | \addplot3[smooth, mark=none, color=black, thick, 41 | domain=0:8, samples=10] (x,{reg(x,0,1)},0); 42 | \pgfplotsinvokeforeach{1,3,...,7}{ 43 | \addplot3 [area plot] (#1,x,{normal(#1,1)}); 44 | \draw [dashed] (axis cs:#1,#1,0) -- (axis cs:#1,#1,0.28); 45 | \draw [gray, dashed] (axis cs:#1,-4,0) -- (axis cs:#1,12,0); 46 | } 47 | \draw[<-, shorten <=2pt, shorten >=0pt] 48 | (axis cs:6,6,0) -- (axis cs:6,6,0.3) 49 | node[above] {$E(Y)=X\beta$}; 50 | \end{axis} 51 | \end{tikzpicture} 52 | -------------------------------------------------------------------------------- /src/regressao_beta.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | domain=-0.25:9, xscale=0.8, yscale=5, 3 | aponta/.style={ 4 | color=green!50!blue, rounded corners=5pt, -latex, thick 5 | }]% 6 | 7 | \draw[-latex] (-0.2,0) -- (10,0) node[right] {$x$}; 8 | \draw[-latex] (0,-0.01) -- (0,1) node[above] (E) {$\textrm{E}(Y|x)$}; 9 | 10 | \def\A{-3}; \def\B{0.8}; 11 | \draw[color=black, thick] 12 | plot[id=x] function{1/(1+exp(-\A-\B*x))} 13 | node[right] (eta) 14 | {$\displaystyle\frac{1}{1+\exp\{-(\theta_0+\theta_1 x)\}}$}; 15 | 16 | \node (Q) at (5,25/20) {$Q(Y|x) = \eta(x, \theta)$}; 17 | \node (N) at (5,22/20) {$[Y|x]\sim$ Beta($\mu$, $\phi$)}; 18 | \path[aponta] (3.9,12/20) edge[bend left=10] (N); 19 | 20 | \draw[aponta] (Q) -| (E); 21 | \draw[aponta] (Q) -| (eta); 22 | 23 | \def\parphi{40}; 24 | \def\parmu{0.5}; \def\factor{0.14} 25 | 26 | \foreach[evaluate=\x as \parmu using 1/(1+exp(-\A-\B*\x))] 27 | \x in {1, 2.4, ..., 7}{ 28 | \draw[color=gray, dashed] (\x,0) -- ++(0,1); 29 | \begin{scope}[xshift=\x cm, rotate=90, yscale=1] 30 | % \draw (\parmu,0) -- ++(0,-0.5); 31 | \filldraw[fill opacity=0.3, fill=gray!70!black] 32 | plot[domain=(\parmu-0.25):(\parmu+0.25), smooth, samples=100] 33 | function {-\factor*gamma(\parphi)/(gamma(\parphi*\parmu)* 34 | gamma((1-\parmu)*\parphi))*x**(\parmu*\parphi-1)* 35 | (1-x)**((1-\parmu)*\parphi-1)}; 36 | \end{scope} 37 | } 38 | 39 | \end{tikzpicture}% 40 | -------------------------------------------------------------------------------- /src/reg_sqr.pgf: -------------------------------------------------------------------------------- 1 | %% http://tex.stackexchange.com/questions/87674/how-to-coherently-combine-3d-and-contour-plots-with-pgfplots 2 | \newcommand\expr[2]{5+#1^2+#2^2-0.9*#2*#1}% 3 | 4 | \begin{tikzpicture}% 5 | \begin{axis}[ 6 | domain=-2:2.5, 7 | domain y=-2:2.5, 8 | view={-40}{12}, 9 | xlabel=$\beta_0$, 10 | ylabel=$\beta_1$, 11 | zlabel={$SSE(\beta_0, \beta_1)$}, 12 | zmin=-2, 13 | xticklabels=\empty, 14 | yticklabels=\empty, 15 | zticklabels=\empty] 16 | 17 | \addplot3[ 18 | contour gnuplot={ 19 | output point meta=rawz, 20 | number=30, 21 | labels=false, 22 | }, 23 | samples=30, 24 | z filter/.code=\def\pgfmathresult{-2}, 25 | ] {\expr{x}{y}}; 26 | 27 | \addplot3[ 28 | surf, 29 | samples=20, 30 | opacity=0.75, 31 | mesh/interior colormap={blueblack}{ 32 | color=(darkgreen) color=(orange)}, 33 | miter limit=1, 34 | ] {\expr{x}{y}}; 35 | 36 | \addplot3[ 37 | contour gnuplot={number=9, labels=false} 38 | ] {\expr{x}{y}}; 39 | 40 | \draw (axis cs:-2,0,-2) -- (axis cs:2.5,0,-2); 41 | \draw (axis cs:0,-2,-2) -- (axis cs:0,2.5,-2); 42 | 43 | \path[draw, ->, >=stealth] (axis cs:1,-1,4) 44 | node[right] {$\min\, SSE$} 45 | to[out=180, in=-90] (axis cs:0,0,4); 46 | \path[draw, ->, >=stealth] (axis cs:-1,1,4) 47 | node[left] {$\hat\beta$} 48 | to[out=0, in=90] (axis cs:0,0,-2); 49 | 50 | \end{axis} 51 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/dist_expon.pgf: -------------------------------------------------------------------------------- 1 | \pgfplotsset{ 2 | myplot/.style={ 3 | width=7cm, height=6cm, 4 | samples=50, domain=0:5, smooth, no marks, 5 | xlabel=$x$, 6 | xlabel style={at={(1,0)}, anchor=north west}, 7 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 8 | legend style={draw=none, fill=none}, 9 | % title={Distribui\c{c}\~{a}o Exponencial} 10 | } 11 | } 12 | 13 | \begin{tikzpicture}[ 14 | declare function={ 15 | exppdf(\x,\lambda) = \lambda*exp(-\lambda*\x); 16 | }, 17 | declare function={ 18 | expcdf(\x,\lambda) = 1-exp(-\lambda*\x); 19 | }] 20 | 21 | \begin{axis}[myplot, ylabel=$f(x)$] 22 | \addplot[color=black] {exppdf(x,2)}; 23 | \addlegendentry{$\lambda=2$}; 24 | \addplot[color=red] {exppdf(x,1)}; 25 | \addlegendentry{$\lambda=1$}; 26 | \addplot[color=blue] {exppdf(x,0.5)}; 27 | \addlegendentry{$\lambda=\frac{1}{2}$}; 28 | \node[rotate=0] at (axis cs: 3, 0.85) 29 | {$f(x) = \displaystyle \lambda \text{e}^{-\lambda x}$}; 30 | \end{axis} 31 | 32 | \begin{axis}[myplot, xshift=7cm, ylabel=$F(x)$, legend pos=south east] 33 | \addplot[color=black] {expcdf(x,2)}; 34 | \addlegendentry{$\lambda=2$}; 35 | \addplot[color=red] {expcdf(x,1)}; 36 | \addlegendentry{$\lambda=1$}; 37 | \addplot[color=blue] {expcdf(x,0.5)}; 38 | \addlegendentry{$\lambda=\frac{1}{2}$}; 39 | \node at (axis cs: 2, 0.1) 40 | {$F(x) = \displaystyle \lambda \text{e}^{-\lambda x}$}; 41 | \end{axis} 42 | 43 | \end{tikzpicture} 44 | -------------------------------------------------------------------------------- /src/esperanca.pgf: -------------------------------------------------------------------------------- 1 | \pgfplotsset{ 2 | myplot/.style={ 3 | width=10cm, height=7cm, 4 | mark=*, 5 | nodes near coords, 6 | point meta=explicit symbolic, % permite usar a 3 coluna como label. 7 | every node near coord/.append style={font=\footnotesize}, 8 | nodes near coords align={vertical} 9 | } 10 | } 11 | 12 | \pgfplotstableset{ 13 | create on use/new/.style={ 14 | create col/expr={\thisrow{px}*30} 15 | } 16 | } 17 | 18 | \begin{filecontents*}{distrprob.dat} 19 | i x px PX f F 20 | 1 0 0.421875 0.421875 27/64 27/64 21 | 2 50 0.140625 0.562500 9/64 36/64 22 | 3 100 0.281250 0.843750 18/64 54/64 23 | 4 250 0.046875 0.890625 3/64 57/64 24 | 5 500 0.093750 0.984375 6/64 63/64 25 | 6 1000 0.015625 1.000000 1/64 64/64 26 | \end{filecontents*} 27 | 28 | \begin{tikzpicture}[>=stealth] 29 | \begin{axis}[ 30 | myplot, 31 | hide y axis, 32 | axis x line*=bottom, 33 | xmin=0, xmax=1000, 34 | domain=0:1000, 35 | height=2.0cm, 36 | enlarge x limits=0.05, 37 | clip=false] 38 | 39 | \addplot[ 40 | scatter, only marks, ycomb, 41 | visualization depends on=\thisrow{px} \as\wtwo, 42 | scatter/@pre marker code/.append style={ 43 | /tikz/mark size=\wtwo*20} 44 | ] table [x=x, y=px] {distrprob.dat}; 45 | 46 | \draw[<-, very thick, darkgreen] (axis cs: 109.375, 0) -- 47 | (axis cs: 109.375, -0.5) node[below] {$E(X) = 109.375$}; 48 | 49 | \end{axis} 50 | \end{tikzpicture} 51 | -------------------------------------------------------------------------------- /src/pgfplotstable_sunitx.pgf: -------------------------------------------------------------------------------- 1 | \pgfplotstableread{ 2 | size min max avg med 3 | 1 2e-03 3e-03 2.5e-03 2.4e-03 4 | 10 2.02e-03 3.02e-03 2.72e-03 2.32e-03 5 | 123456789 2.02 123.72e9 2.72e9 2.32e-03 6 | }{\loadedtable} 7 | 8 | % require \usepackage{sunitx} 9 | \sisetup{ 10 | math-rm=\mathrm, 11 | text-rm=\rmfamily, 12 | table-format=3.2e+3, 13 | round-precision=2, 14 | round-mode=places, 15 | scientific-notation=engineering, 16 | group-digits=integer, 17 | group-separator={,}, 18 | exponent-product=\cdot, 19 | } 20 | 21 | \pgfplotstabletypeset[ 22 | header=true, 23 | string type, 24 | multicolumn names, 25 | columns={size,med,min,avg,max}, 26 | assign column name/.code={ 27 | \pgfkeyssetvalue{/pgfplots/table/column name}{ 28 | \multicolumn{1}{c}{\multirow{2}{*}{#1}} 29 | } 30 | }, 31 | columns/size/.style={ 32 | column name={\shortstack{Instance\\Size}}, 33 | column type={S[scientific-notation=false, table-format=9]}, 34 | int detect 35 | }, 36 | columns/min/.style={column name=Minimum, column type=S}, 37 | columns/avg/.style={column name=Average, column type=S}, 38 | columns/med/.style={column name=Median, column type=S}, 39 | columns/max/.style={column name=Maximum, column type=S}, 40 | every head row/.style={ 41 | before row=\toprule, 42 | after row=\\ \midrule 43 | }, 44 | every last row/.style={after row=\bottomrule}]{\loadedtable} 45 | -------------------------------------------------------------------------------- /src/two-phases-sampling.pgf: -------------------------------------------------------------------------------- 1 | \usetikzlibrary{trees}% 2 | \begin{tikzpicture}[ 3 | grow = right, 4 | ->, 5 | >=latex', 6 | level 1/.style = {level distance = 2.0cm, sibling distance = 1.5cm}, 7 | edge from parent path = { 8 | (\tikzparentnode.east) -| +(0.25,0) |- (\tikzchildnode.west) 9 | }, 10 | % edge from parent fork right, 11 | bag/.style={ 12 | text width = 7em, 13 | text centered, 14 | anchor = west, 15 | fill = gray!50, 16 | rounded corners, 17 | minimum height = 2em}, 18 | ] 19 | 20 | \node[bag] {Primeira amostra ($n_1$)} 21 | child { 22 | node[bag, fill = orange!50!white] (rj1) {$d_1 \geq Re_1$} 23 | } 24 | child { 25 | node[bag, fill = yellow!90!white] {$Ac_1 < d_1 < Re_1$} 26 | child { 27 | node[bag] {Primeira amostra ($n_2$)} 28 | child { 29 | node (b) [bag, fill = orange!50!white] {$d_2 > (Ac_2 - d_1)$} 30 | } 31 | child { 32 | node (a) [bag, fill = cyan!50!white] {$d_2 \leq (Ac_2 - d_1)$} 33 | } 34 | } 35 | } 36 | child { 37 | node[bag, fill = cyan!50!white] (ac1) {$d_1 \leq Ac_1$} 38 | } 39 | ; 40 | 41 | \node[bag, above = 3em of a, fill = cyan!90!white] (ac) {Aceitar lote}; 42 | \node[bag, below = 3em of b, fill = orange!90!white] (rj) {Rejeitar lote}; 43 | 44 | \path[draw] (ac1) |- (ac); 45 | \path[draw] (rj1) |- (rj); 46 | 47 | \path[draw] (a) -- (ac); 48 | \path[draw] (b) -- (rj); 49 | 50 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/dist_gamma.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | declare function = { 3 | gamma(\z) = 4 | (2.506628274631*sqrt(1/\z)+0.20888568*(1/\z)^(1.5)+ 5 | 0.00870357*(1/\z)^(2.5)-(174.2106599*(1/\z)^(3.5))/25920- 6 | (715.6423511*(1/\z)^(4.5))/1244160)*exp((-ln(1/\z)-1)*\z); 7 | }, 8 | declare function = { 9 | gammapdf(\x,\a,\b) = (\b^\a)*\x^(\a-1)*exp(-\b*\x)/gamma(\a); 10 | }] 11 | 12 | \def\parA{r} 13 | \def\parB{\lambda} 14 | \def\va{y} 15 | 16 | \begin{axis}[ 17 | width = 9cm, height = 6cm, 18 | samples = 150, no marks, smooth, 19 | xlabel = $y$, ylabel = $f(y)$, 20 | % xlabel style = {at = {(1,0)}, anchor = north west}, 21 | % ylabel style = {rotate = -90, at = {(0,1)}, anchor = south east}, 22 | legend style = {draw = none, fill = none}, 23 | domain = 0:22, 24 | clip = false] 25 | 26 | \addplot[black, thick] {gammapdf(x,3,1)}; 27 | \addlegendentry{$\parA = 3, \parB = 1$} 28 | 29 | \addplot[orange, thick] {gammapdf(x,8,1)}; 30 | \addlegendentry{$\parA = 8, \parB = 1$} 31 | 32 | \addplot[cyan, thick] {gammapdf(x,8,2)}; 33 | \addlegendentry{$\parA = 8, \parB = 2$} 34 | 35 | % \node[anchor = east] at (axis description cs: 1, 0.5) 36 | % {$f(\va) = \dfrac{\parB^{\parA}}{\Gamma(\parA)}\cdot 37 | % \va^{\parA-1} \cdot \exp\{-\parB \va\}$}; 38 | 39 | \node[anchor = south] at (axis description cs: 0.5, 1.05) 40 | {$f(\va) = \dfrac{\parB^{\parA}}{\Gamma(\parA)}\cdot 41 | \va^{\parA-1} \cdot \exp\{-\parB \va\}$}; 42 | 43 | \end{axis} 44 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/class-interval.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[>=stealth'] 2 | 3 | \begin{scope}e 4 | \coordinate (arrowstart) at (-0.5, 0); 5 | \node (arrowend) at (7.75, 0) {$y$}; 6 | \draw[->] (arrowstart) -- (arrowend); 7 | 8 | \foreach \x in {0, 1, ..., 7}{ 9 | \draw (\x, -0.10) -- (\x, 0.10); 10 | \node[below] (y\x) at (\x, -0.10) {$y_{\x}$}; 11 | } 12 | 13 | \foreach \x in {0.67, 1.84, 2.2, 2.22, 2.27, 2.52, 2.77, 2.89, 5.07, 5.09, 5.9, 6.28, 6.51, 6.81, 6.96, 7.64, 8.89, 9.27, 9.75}{ 14 | \draw[fill = cyan, fill opacity = 0.5] (\x/1.5, 0.2) circle [radius = 3pt]; 15 | } 16 | 17 | \draw [decorate, decoration = {brace, amplitude = 4pt}] (0.67/1.5, 0.5) -- (9.75/1.5, 0.5) 18 | node [black, midway, yshift = 1.1em] {Amplitude amostral}; 19 | 20 | \draw [decorate, decoration = {brace, amplitude = 4pt}] (y4.south) -- (y3.south) 21 | node [black, midway, yshift = -1.1em] {Amplitude de classe}; 22 | 23 | \draw [decorate, decoration = {brace, amplitude = 4pt}] (7, -1.5) -- (0, -1.5) 24 | node [black, midway, yshift = -1.1em] {Amplitude de classes total}; 25 | 26 | \node (rot) at (7.25, -1.1) {Limite de classe}; 27 | \draw[->] (y6) edge[out=-90, in = 90] (rot); 28 | 29 | \end{scope} 30 | 31 | \begin{scope}[xshift= 12cm] 32 | \node { 33 | \begin{minipage}{5cm} 34 | Nota{\c c}{\~ a}o\\ 35 | \begin{tabular}{|c|c|c|} 36 | $a < y \leq b$ & $(a, b]$ & $a \vlongdash b$\\ 37 | $a \leq y < b$ & $[a, b)$ & $a \longdashv b$\\ 38 | \end{tabular} 39 | \end{minipage} 40 | }; 41 | 42 | \end{scope} 43 | 44 | \end{tikzpicture}% 45 | -------------------------------------------------------------------------------- /src/dist_t_quantil.pgf: -------------------------------------------------------------------------------- 1 | % http://tex.stackexchange.com/questions/80345/student-t-distribution-with-tikz 2 | 3 | \begin{tikzpicture}[ 4 | >=stealth, 5 | declare function={ 6 | gamma(\z)= 7 | (2.506628274631*sqrt(1/\z)+0.20888568*(1/\z)^(1.5)+ 8 | 0.00870357*(1/\z)^(2.5)-(174.2106599*(1/\z)^(3.5))/25920- 9 | (715.6423511*(1/\z)^(4.5))/1244160)*exp((-ln(1/\z)-1)*\z); 10 | }, 11 | declare function={ 12 | student(\x,\n)= 13 | gamma((\n+1)/2)/(sqrt(\n*pi)* 14 | gamma(\n/2))*((1+(\x*\x)/\n)^(-(\n+1)/2)); 15 | }, 16 | declare function={ 17 | normalpdf(\x,\mu,\sigma)= 18 | (2*3.1415*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2)); 19 | }] 20 | 21 | \begin{axis}[ 22 | width=8cm, height=5cm, 23 | samples=30, 24 | xlabel=$t$, ylabel=$f(t)$, 25 | xlabel style={at={(1,0)}, anchor=north west}, 26 | ylabel style={rotate=-90, at={(0,1)}, anchor=south east}, 27 | legend style={draw=none, fill=none}, 28 | domain=-5:5, xmin=-5.5, xmax=5.5] 29 | 30 | %% Quantil para \nu=5 e \alpha=0.05 31 | \addplot[domain=2.015:5, draw=none, fill=darkgreen, samples=30] 32 | {student(x,5)} \closedcycle; 33 | 34 | \addplot[smooth, thick, samples=100] {student(x,5)} 35 | node[pos=0.55, anchor=mid west, xshift=2em, 36 | append after command={ 37 | (\tikzlastnode.west) edge [thin, gray] +(-2em,0)}] 38 | {$\nu=5$}; 39 | 40 | \path[<->, draw] (axis cs: 2.015, 0.0) to[out=90, in=-90] 41 | (axis description cs: 0.82, 0.3) node[above] {$t_{\alpha}=2.0150$}; 42 | 43 | \end{axis} 44 | \end{tikzpicture} 45 | -------------------------------------------------------------------------------- /src/sampling-plan-1.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | decision/.style = { 3 | diamond, 4 | aspect=1.5, 5 | draw, 6 | fill=gray!20!black, 7 | text=white, 8 | text width=5em, 9 | text centered, 10 | inner sep=1pt}, 11 | block/.style = { 12 | rectangle, 13 | draw, 14 | fill=gray!30!white, 15 | minimum height=2em, 16 | text centered, 17 | rounded corners}, 18 | line/.style = { 19 | draw, 20 | -latex', 21 | line width=1pt, 22 | rounded corners}] 23 | 24 | \renewcommand{\baselinestretch}{0.5} 25 | 26 | \node (def) [block] {Definir plano de amostragem ($n$, $Ac$)}; 27 | \node (ins) [block, below=4em of def] {Inspecionar amostra de tamanho $n$}; 28 | \node [above=0ex of ins.north east, anchor=south east, align=right, text width=2cm] { 29 | \footnotesize Inspe{\c c}{\~ a}o\\ para aceita{\c c}{\~ a}o}; 30 | 31 | \node (dAc) [decision, below=2em of ins] {Comparar $d$ e $Ac$}; 32 | 33 | \node (ace) [block, fill=cyan!90!white, right=5em of dAc] {Aceitar o lote}; 34 | 35 | \node (rej) [block, fill=orange!90!white, left=5em of dAc] {Rejeitar o lote}; 36 | \node (trc) [block, below=2em of dAc] {Inspecionar todo o lote e trocar itens defeituosos}; 37 | \node [above=0ex of trc.north east, anchor=south east] { 38 | \footnotesize Inspe{\c c}{\~ a}o retificadora}; 39 | 40 | \path [line] (def) -- (ins); 41 | \path [line] (ins) -- (dAc); 42 | 43 | \path [line] (dAc) -- node [above] {$d \leq Ac$} (ace); 44 | \path [line] (dAc) -- node [above] {$d > Ac$} (rej); 45 | 46 | \path [line] (rej) |- (trc); 47 | 48 | \end{tikzpicture}% -------------------------------------------------------------------------------- /src/tipos_de_testes.pgf: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[ 2 | domain=-0.25:10.25, xscale=0.75, yscale=0.5, 3 | aponta/.style={ 4 | color=green!50!blue, rounded corners=5pt, -latex, thick 5 | }, 6 | cotas/.style={|<->|, >=latex}] 7 | 8 | \draw[-latex] (-0.2,0) -- (10,0) node[right] {$\theta$}; 9 | \draw[-latex] (0,-0.2) -- (0,10) node[above] (E) {$\ell(\theta)$}; 10 | \def\Y{9}; \def\X{5}; \def\C{-0.25} 11 | \def\dX{3}; \def\dY{2.25}; \def\D{1.5} 12 | \draw[color=black, thick] 13 | plot[id=x] function{\Y+\C*(x-\X)**2} 14 | node[right] {$\widetilde{\ell(\theta)}$}; 15 | \draw[color=green!60!black, thick, thick] 16 | plot[id=x] function{\Y*(x/\X)**\D*exp(\D*(1-x/\X))} 17 | node[color=black, right] {$\ell(\theta)$}; 18 | \coordinate (llmax) at (\X,\Y); 19 | \coordinate (llmaxy) at (0,\Y); 20 | \coordinate (llmaxx) at (\X,0); 21 | \coordinate (llhzero) at (\X+\dX,\Y-\dY); 22 | \coordinate (llhzeroy) at (0,\Y-\dY); 23 | \coordinate (llhzerox) at (\X+\dX,0); 24 | \draw[dashed] (llmaxy) node[left] {$\ell(\hat\theta)$} -| 25 | (llmaxx) node[below] {$\hat\theta$}; 26 | \draw[dashed] (llhzeroy) node[left] {$\ell(\theta_0)$} -| 27 | (llhzerox) node[below] {$\theta_0$}; 28 | \def\yshift{-1.5} 29 | \draw[cotas] (\X,\yshift) -- ++(\dX,0) node [midway, above] {Wald}; 30 | \def\xshift{1} 31 | \draw[cotas] (\X+\dX+\xshift,\Y) -- ++(0,-\dY) 32 | node [midway, right, text width=3cm] {deviance\\ LRT}; 33 | \def\raio{1.25} 34 | \draw[cotas] (\X+\dX-\raio,\Y-\dY) arc (180:127:\raio cm); 35 | \node[left] at (\X+\dX/1.6,\Y-\dY/1.4) {escore}; 36 | \end{tikzpicture} -------------------------------------------------------------------------------- /src/preenchimento.pgf: -------------------------------------------------------------------------------- 1 | \makeatletter 2 | \pgfdeclarepatternformonly[% 3 | \hatchdistance,\hatchthickness]{flexible hatch} 4 | {\pgfqpoint{0pt}{0pt}} 5 | {\pgfqpoint{\hatchdistance}{\hatchdistance}} 6 | {\pgfpoint{\hatchdistance-1pt}{\hatchdistance-1pt}}% 7 | { 8 | \pgfsetcolor{\tikz@pattern@color} 9 | \pgfsetlinewidth{\hatchthickness} 10 | \pgfpathmoveto{\pgfqpoint{0pt}{0pt}} 11 | \pgfpathlineto{\pgfqpoint{\hatchdistance}{\hatchdistance}} 12 | \pgfusepath{stroke} 13 | } 14 | \makeatother 15 | 16 | \begin{tikzpicture}[ 17 | hatch distance/.store in=\hatchdistance, 18 | hatch distance=10pt, 19 | hatch thickness/.store in=\hatchthickness, 20 | hatch thickness=2pt] 21 | 22 | \begin{axis}[ 23 | width=10cm, height=6cm, 24 | xlabel={z}, 25 | axis on top, 26 | legend style={ 27 | draw=none, legend cell align=left, legend plot pos=left}] 28 | 29 | \addplot [mark=none, domain=0:1, samples=100, 30 | pattern=flexible hatch, hatch distance=10pt, 31 | hatch thickness=2pt, draw=darkgreen, pattern color=darkgreen, 32 | area legend] {1/sqrt(2*pi)*exp(-x^2/2)} \closedcycle; 33 | \addlegendentry{Intervalo 1} 34 | 35 | \addplot [mark=none, domain=-2:-0.5, samples=100, 36 | pattern=flexible hatch, hatch distance=5pt, 37 | hatch thickness=0.75pt, draw=darkgreen, pattern color=darkgreen, 38 | area legend] {1/sqrt(2*pi)*exp(-x^2/2)} \closedcycle; 39 | \addlegendentry{Intervalo 2} 40 | 41 | \addplot[color=black, thick, domain=-5:5, samples=100] 42 | {1/sqrt(2*pi)*exp(-x^2/2)}; 43 | \addlegendentry{z} 44 | 45 | \end{axis} 46 | \end{tikzpicture} --------------------------------------------------------------------------------